-3

When I write code in Brackets I see red errors. They are not affect for result, but how can I avoid them? enter image description here

Fissure King
  • 1,250
  • 7
  • 17
Felay
  • 221
  • 3
  • 8
  • Please remove 'brackets' tag. Based on https://stackoverflow.com/questions/tagged/brackets, DO NOT USE THIS for the IDE, use [adobe-brackets] instead. – FullStackDeveloper Jul 27 '18 at 17:42
  • 1
    Possible duplicate of [How to disable JSLint ES6 errors with const and let in Adobe Brackets?](https://stackoverflow.com/questions/37378977/how-to-disable-jslint-es6-errors-with-const-and-let-in-adobe-brackets) – FullStackDeveloper Jul 27 '18 at 17:43

2 Answers2

0

You need to either set the es6 environment to true or set ecmaVersion to 6 in you ES Lint configuration file.

See http://eslint.org/docs/user-guide/configuring#specifying-parser-options

{
    "parserOptions": {
            "ecmaVersion": 6
    }
}
Chris Hawkes
  • 11,923
  • 6
  • 58
  • 68
-1

I had similar problem i researched about it, but creating a json file in the projects root folder cleared my issue. please follow the link solution here

I also found other possible ways to solve this, read these links you will know and understand experience of other person with solution

also visit the link provided in brackets.json file. they mention clearly how to use brackets preferences.brackets preferences