Skip to content

Instantly share code, notes, and snippets.

@gpawlik
Created May 22, 2017 21:24
Show Gist options
  • Save gpawlik/8968a6484836f7ac730021f0ca300c8a to your computer and use it in GitHub Desktop.
Save gpawlik/8968a6484836f7ac730021f0ca300c8a to your computer and use it in GitHub Desktop.
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"amd": true,
"es6": true,
"jest": true,
"node": true
},
"rules": {
"array-bracket-spacing": [1, "never"],
"block-spacing": [1, "never"],
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": [1, "last"],
"comma-dangle": 1,
"computed-property-spacing": [1, "never"],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"brace-style": 1,
"eqeqeq": 1,
"indent": [1, 2, { "SwitchCase": 1 }],
"quotes": [1, "single"],
"new-parens": 1,
"newline-after-var": [1, "always"],
"no-lonely-if": 1,
"space-infix-ops": 1,
"no-negated-condition": 1,
"no-multiple-empty-lines": [1, {"max": 2}],
"space-before-function-paren": [1, { "anonymous": "always", "named": "never" }],
"no-inline-comments": 1,
"no-spaced-func": 1,
"space-in-parens": [1, "never"],
"no-unneeded-ternary": 1,
"space-before-blocks": 1,
"linebreak-style": [0, "unix"],
"new-cap": 1,
"no-undef": 1,
"jsx-quotes": [1, "prefer-double"],
"global-strict": 0,
"semi": 1,
"no-extra-semi": 1,
"no-extra-bind": 1,
"no-eval": 0,
"no-invalid-this": 0,
"no-underscore-dangle": 0,
"no-extend-native": 1,
"no-console": 1,
"no-lone-blocks": 1,
"no-unused-vars": 1,
"no-trailing-spaces": [1, { "skipBlankLines": true }],
"no-unreachable": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-self-compare": 1,
"no-catch-shadow": 1,
"no-use-before-define": 1,
"no-shadow": 1,
"no-undefined": 1,
"no-unused-expressions": 1,
"no-void": 1,
"no-alert": 1,
"arrow-parens": [1, "as-needed"],
"arrow-spacing": 1,
"no-var": 1,
"react/jsx-uses-react": 1,
"react/jsx-indent": [1, 2],
"no-debugger": 0,
"react/jsx-uses-vars": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment