4

I have Brackets installed, and i getting ESLINT error, as far as i know i dont have ESLINT installed

Code and the error

That is the first time i get this error, my question is, how do i install ESLINT and configure it that i don't receive the errors. ( The JavaScript code is copied from CODEPEN so it should be ok)

The main problem is ESLINt, i tried with other JS plugins and get the same error, as i said its the first time im getting this error.

1
  • 1
    So add Global reference to it Commented Nov 29, 2017 at 14:01

2 Answers 2

4

You need to add the '$' to the globals object inside your .eslintrc file.

Like so:

"eslintConfig": {
    "globals": {
        "$": true
    }
}
Sign up to request clarification or add additional context in comments.

Comments

0

You need to configure it to allow globals:

https://eslint.org/docs/user-guide/configuring#specifying-globals

Either comment on top of the file

/* global $ */

or in the config

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.