Last active
July 16, 2018 16:44
-
-
Save sparkida/2534a11b7cab8d6a07b808e94abe458b to your computer and use it in GitHub Desktop.
Eslint basic setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
], | |
"env": { | |
"es6": true, | |
"browser": true, | |
"node": true, | |
}, | |
"rules": { | |
"no-console": "off", | |
}, | |
"globals": { | |
"stats": true, | |
}, | |
"parserOptions": { | |
"no-unused-vars": ["error", { | |
"vars": "all", | |
"args": "after-used", | |
"ignoreRestSiblings": false | |
}], | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
"impliedStrcit": false, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install dependencies:
npm i -D eslint eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-import babel-eslint
Configure environment
Add
$(npm bin)
to your PATH variable to get local access to eslint and dependencies