Skip to content

Instantly share code, notes, and snippets.

@anthonybrown
Last active March 14, 2018 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonybrown/48aa9a0e11183810fa821e8c2aab92ca to your computer and use it in GitHub Desktop.
Save anthonybrown/48aa9a0e11183810fa821e8c2aab92ca to your computer and use it in GitHub Desktop.
Another eslintrc file I use
{
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"rules": {
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true,
"peerDependencies": true
}],
"quotes": ["error", "single", {
"avoidEscape": true
}],
"keyword-spacing": ["error", {
"overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false },
"catch": { "after": false },
"switch": { "after": false }
}
}],
"generator-star-spacing": ["error", {
"before": true,
"after": true
}],
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true
}],
"indent": ["error", 2, {
"SwitchCase": 1
}],
"func-names": "off",
"comma-dangle": ["error", "always"],
"array-bracket-spacing": ["error", "always"],
"arrow-body-style": "off",
"semi": ["error", "never"],
"global-require": "warn",
"class-methods-use-this": "off",
"react/forbid-prop-types": "off",
"react/require-default-props": "off",
"react/jsx-closing-bracket-location": ["error", "after-props"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment