Well I got it working with the options below:
Code:
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-unused-vars": ["warn", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"no-console": 0,
}
}
But if I try to remove either the experimentalObjectRestSpread entry or the "extends" line - it breaks again.
And not just like "I don't like this arrow function". The parser crashes and stops when it sees that. Not super confidence-instilling.
And I'm still back to my original problem in that I have to have this stupid .eslintrc file in every project.
EDIT: OMFG - all I have to do is put the .eslintrc file in the parent directory that I put all my projects in. Why don't they just tell you that?!Q@?Q!#??@!#? 2 hours of ****ing googling and no one says that ever.
Look at all this bull**** to create a "sharable config" and you still have to freaking set it up in each project.
Last edited by suzzer99; 10-10-2018 at 07:18 PM.
Reason: HYATCHYATCHYATCHAHAHAHAHQA