Skip to content

Instantly share code, notes, and snippets.

@HamyAyoub
Forked from remy/.eslintignore
Created September 13, 2020 15:29
Show Gist options
  • Save HamyAyoub/6bc5498391812d0b111e16f223c3dd07 to your computer and use it in GitHub Desktop.
Save HamyAyoub/6bc5498391812d0b111e16f223c3dd07 to your computer and use it in GitHub Desktop.
My Next.js eslint config + `npm install --save-dev eslint eslint-plugin-react babel-eslint`
{
"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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment