You'll also need to:
npm install --save-dev eslint eslint-plugin-react babel-eslint
{ | |
"parser": "babel-eslint", | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"experimentalObjectRestSpread": true, | |
"jsx": true, | |
"sourceType": "module", | |
"allowImportExportEverywhere": false | |
}, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react" | |
], | |
"rules": { | |
"indent": [ | |
"error", | |
2 | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"semi": [ | |
"error", | |
"never" | |
], | |
"react/jsx-uses-react": "error", | |
"react/jsx-uses-vars": "error", | |
"no-console": 0 | |
} | |
} |
Almost pulled a gun to my head and this code appeared. Trying
edit: working flawless