Skip to content

Instantly share code, notes, and snippets.

@remy
Last active Apr 13, 2021
Embed
What would you like to do?
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
}
}
@faran312
Copy link

faran312 commented Aug 11, 2018

Cool! Thanks for share this gist

@alieslamifard
Copy link

alieslamifard commented Sep 7, 2018

Thanks dude

@stephanembl
Copy link

stephanembl commented Dec 6, 2018

Careful! You install eslint-config-airbnb but extend eslint:recommended instead of airbnb.

@M-Izadmehr
Copy link

M-Izadmehr commented Jun 8, 2019

Thanks dude

:-D :-D

@wallawe
Copy link

wallawe commented Sep 26, 2019

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

@imVinayPandya
Copy link

imVinayPandya commented Mar 1, 2020

Thank you

@sinxwal
Copy link

sinxwal commented May 5, 2020

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

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