Skip to content

Instantly share code, notes, and snippets.

@marekkirejczyk
Created February 19, 2018 13:45
Show Gist options
  • Save marekkirejczyk/246a4fbe9805fc4f496f9780c4ded127 to your computer and use it in GitHub Desktop.
Save marekkirejczyk/246a4fbe9805fc4f496f9780c4ded127 to your computer and use it in GitHub Desktop.
.eslintrc.json
{
"parser": "babel-eslint",
"parserOptions": {},
"plugins": [
"import"
],
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"prefer-const": 2,
"no-var": 2,
"object-shorthand": 2,
"quote-props": [
2,
"as-needed"
],
"array-callback-return": 2,
"prefer-destructuring": 2,
"prefer-template": 2,
"template-curly-spacing": 2,
"no-eval": 2,
"no-useless-escape": 2,
"wrap-iife": 2,
"no-loop-func": 2,
"prefer-rest-params": 2,
"no-new-func": 2,
"space-before-function-paren": 0,
"space-before-blocks": 2,
"no-param-reassign": 2,
"prefer-spread": 2,
"prefer-arrow-callback": 2,
"arrow-spacing": 2,
"arrow-parens": 2,
"arrow-body-style": 2,
"no-confusing-arrow": 2,
"no-useless-constructor": 2,
"no-dupe-class-members": 2,
"no-duplicate-imports": 2,
"import/no-mutable-exports": 2,
"import/prefer-default-export": 1,
"import/first": 2,
"no-iterator": 2,
"generator-star-spacing": 2,
"dot-notation": 2,
"no-undef": 2,
"one-var": [
2,
"never"
],
"no-multi-assign": 2,
"eqeqeq": 2,
"no-case-declarations": 2,
"no-nested-ternary": 2,
"no-unneeded-ternary": 2,
"no-mixed-operators": 2,
"nonblock-statement-body-position": 2,
"brace-style": 2,
"no-else-return": 2,
"spaced-comment": 2,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"keyword-spacing": 2,
"space-infix-ops": 2,
"eol-last": 2,
"newline-per-chained-call": 2,
"padded-blocks": [2, "never"],
"space-in-parens": 2,
"array-bracket-spacing": 2,
"object-curly-spacing": 2,
"comma-style": 2,
"comma-dangle": 2,
"radix": 2,
"no-new-wrappers": 2,
"id-length": 2,
"camelcase": 2,
"new-cap": 2,
"no-underscore-dangle": 2,
"no-restricted-globals": 2,
"semi": [
"error",
"always"
],
"semi-spacing": 2,
"no-unexpected-multiline": 2,
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"no-console": "off",
"import/no-unresolved": "error",
"curly": [
"error",
"all"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment