rogden / tailwind-config-viewer

A local UI tool for visualizing your Tailwind CSS configuration file.
2.01k stars 111 forks source link

eslint warning in stickyEvents #33

Closed olets closed 3 years ago

olets commented 3 years ago

prepublishOnly has this warning:

 warning  in ./src/lib/stickyEvents.js

Module Warning (from ./node_modules/thread-loader/dist/cjs.js):

/Users/home/Sites/olets/tailwind-config-viewer/src/lib/stickyEvents.js
  69:7  error  Unexpected console statement  no-console

The full eslint context is

Module Warning (from ./node_modules/eslint-loader/index.js):
error: Unexpected console statement (no-console) at src/lib/stickyEvents.js:69:7:
  67 |   enableEvents () {
  68 |     if (window.self !== window.top) {
> 69 |       console.warn('StickyEvents: There are issues with using IntersectionObservers in an iframe, canceling initialization. Please see https://github.com/w3c/IntersectionObserver/issues/183')
     |       ^
  70 |
  71 |       return
  72 |     }