Skip to content

Instantly share code, notes, and snippets.

@sparkida
Last active July 16, 2018 16:44
Show Gist options
  • Save sparkida/2534a11b7cab8d6a07b808e94abe458b to your computer and use it in GitHub Desktop.
Save sparkida/2534a11b7cab8d6a07b808e94abe458b to your computer and use it in GitHub Desktop.
Eslint basic setup
{
"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,
}
}
}
@sparkida
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment