My Next.js eslint config + `npm install --save-dev eslint eslint-plugin-react babel-eslint`
.next | |
out |
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"es6": true, | |
"commonjs": true | |
}, | |
"globals": { | |
"process": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 9, | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react" | |
], | |
"rules": { | |
"react/prop-types": 0, | |
"react/jsx-uses-vars": [ | |
2 | |
], | |
"react/jsx-no-undef": "error", | |
"no-console": 0 | |
} | |
} |
This comment has been minimized.
This comment has been minimized.
Cool! Thanks for share this gist |
This comment has been minimized.
This comment has been minimized.
Thanks dude |
This comment has been minimized.
This comment has been minimized.
Careful! You install |
This comment has been minimized.
This comment has been minimized.
:-D :-D |
This comment has been minimized.
This comment has been minimized.
dumb question, but after doing everything above, how do you run the linter? I was hoping to get it to run on every hot reload like CRA does |
This comment has been minimized.
This comment has been minimized.
Thank you |
This comment has been minimized.
This comment has been minimized.
You have to configure your IDE (VSCode, WebStorm, etc). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment