Skip to content

Instantly share code, notes, and snippets.

@remy

remy/.eslintignore

Last active Oct 30, 2020
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 faran312 commented Aug 11, 2018

Cool! Thanks for share this gist

@alieslamifard

This comment has been minimized.

Copy link

@alieslamifard alieslamifard commented Sep 7, 2018

Thanks dude

@stephanemombuleau

This comment has been minimized.

Copy link

@stephanemombuleau 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 M-Izadmehr commented Jun 8, 2019

Thanks dude

:-D :-D

@wallawe

This comment has been minimized.

Copy link

@wallawe 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 imVinayPandya commented Mar 1, 2020

Thank you

@sinxwal

This comment has been minimized.

Copy link

@sinxwal 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.