Skip to content

Instantly share code, notes, and snippets.

@morshedx
Forked from remy/.eslintignore
Created November 5, 2020 10:30
Show Gist options
  • Save morshedx/bdc261a12c78ef6f6efc1a79d50ebe3e to your computer and use it in GitHub Desktop.
Save morshedx/bdc261a12c78ef6f6efc1a79d50ebe3e 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