Hello, I read through the user-guide, and the read me, and many of the links provided, but I think I need further help activating specific default rules.
To turn on rules, all I need to do is create a "eslintrules.json" file in the "C:\Users%USERNAME%\AppData\Roaming\Brackets\extensions\user\brackets-eslint.eslintrules"
Directory? Or do I put these in the ".brackets.json" file in "C:\Users%USERNAME%\AppData\Roaming\Brackets\extensions\user\brackets-eslint" Directory?
If I do make my own file, do I just write the code like this?
{
"env":{
"node": 1
}
"rules": {
"constructor-super": "error",
"no-case-declarations": "error",
"no-class-assign": "error"
}
}
or do I add these to the .brackets.json like so:
{
"smartIndent": true,
"spaceUnits": 2,
"useTabChar": false,
"language": {
"javascript": {
"linting.prefer": ["ESLint"],
"linting.usePreferredOnly": true
}
}
"env":{
"node": 1
}
"rules": {
"constructor-super": "error",
"no-case-declarations": "error",
"no-class-assign": "error"
}
}
Let me know, guys! Thank you so much!
Hello, I read through the user-guide, and the read me, and many of the links provided, but I think I need further help activating specific default rules.
To turn on rules, all I need to do is create a "eslintrules.json" file in the "C:\Users%USERNAME%\AppData\Roaming\Brackets\extensions\user\brackets-eslint.eslintrules"
Directory? Or do I put these in the ".brackets.json" file in "C:\Users%USERNAME%\AppData\Roaming\Brackets\extensions\user\brackets-eslint" Directory?
If I do make my own file, do I just write the code like this?
or do I add these to the .brackets.json like so:
Let me know, guys! Thank you so much!