Skip to content

Instantly share code, notes, and snippets.

@bkonkle
Created July 22, 2015 15:10
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 bkonkle/c5f87e86585f71687742 to your computer and use it in GitHub Desktop.
Save bkonkle/c5f87e86585f71687742 to your computer and use it in GitHub Desktop.
.eslintrc
{
"parser": "babel-eslint",
"plugins": ["react"],
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"modules": true,
"jsx": true
},
"rules": {
"brace-style": [2, "1tbs"],
"camelcase": [2, {"properties": "always"}],
"comma-dangle": [2, "always-multiline"],
"comma-style": [2, "last"],
"default-case": 2,
"dot-location": [2, "property"],
"eqeqeq": [2, "allow-null"],
"func-style": [1, "declaration"],
"generator-star-spacing": [2, "after"],
"guard-for-in": 2,
"indent": [2, 2],
"new-cap": [2, {"capIsNew": false}],
"no-bitwise": 2,
"no-cond-assign": [2, "always"],
"no-constant-condition": 0,
"no-console": 2,
"no-floating-decimal": 2,
"no-nested-ternary": 2,
"no-path-concat": 0,
"no-undefined": 2,
"no-underscore-dangle": 0,
"no-unused-vars": 2,
"no-use-before-define": [1, "nofunc"],
"no-var": 2,
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"react/display-name": 2,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-no-undef": 2,
"react/jsx-quotes": [2, "double", "avoid-escape"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/require-extension": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/wrap-multilines": 2,
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"spaced-line-comment": [2, "always", {"exceptions": ["-"]}],
"valid-jsdoc": [2, {"requireReturn": false, "requireReturnDescription": false}],
"wrap-iife": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment