Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

faran312 commented Aug 11, 2018

Cool! Thanks for share this gist

@alieslamifard

This comment has been minimized.

Copy link

alieslamifard commented Sep 7, 2018

Thanks dude

@stephanemombuleau

This comment has been minimized.

Copy link

stephanemombuleau commented Dec 6, 2018

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

@M-Izadmehr

This comment has been minimized.

Copy link

M-Izadmehr commented Jun 8, 2019

Thanks dude

:-D :-D

@wallawe

This comment has been minimized.

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

This comment has been minimized.

Copy link

imVinayPandya commented Mar 1, 2020

Thank you

@sinxwal

This comment has been minimized.

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
You can’t perform that action at this time.