Skip to content

Instantly share code, notes, and snippets.

@subblue
Created June 7, 2016 12:50
Show Gist options
  • Save subblue/75cdd13ef893a7825bf4de2fa816a2e1 to your computer and use it in GitHub Desktop.
Save subblue/75cdd13ef893a7825bf4de2fa816a2e1 to your computer and use it in GitHub Desktop.
.eslintrc rules
{
"root": true,
"parser": "babel-eslint",
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jasmine": true,
"mocha": true
},
"rules": {
"no-console": 0,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"no-multiple-empty-lines": [1, {"max": 3}],
"no-param-reassign": 2,
"no-alert": 0,
"indent": [1, 2],
"quote-props": [1, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"comma-spacing": [2, {"before": false, "after": true}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
"semi": [1, "always"],
"semi-spacing": [1, {"before": false, "after": true}],
"keyword-spacing": [2, {"before": true, "after": true}],
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
"curly": 2,
"object-curly-spacing": 0,
"brace-style": 2,
"array-bracket-spacing": 0,
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"spaced-comment": [1, "always"],
"strict": 0,
"prefer-const": ["error", {"destructuring": "any"}],
"react/display-name": 0,
"react/no-danger": 0
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"modules": true,
"classes": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment