My javascript code is working perfectly except ESLint is showing that I have errors, such as:
"ERROR: 'myFunction' is defined but never used. [no-unused-vars]"
and
"ERROR: 'document' is not defined. [no-undef]"
This is only a problem because I am using an external js file. What can I put into "brackets.json" or "defaultPreferences.json" to stop these ESLint error markers/notifications from appearing?
Any help is much appreciated.
I had the same problem: create a package.json file a the root of your project and put you ESLint configuration in a eslintConfig object as defined in the ESLint documentation:
Good coding!