Skip to content

Instantly share code, notes, and snippets.

@angryobject
Last active October 21, 2015 10:32
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 angryobject/82c2532c19a431dd958b to your computer and use it in GitHub Desktop.
Save angryobject/82c2532c19a431dd958b to your computer and use it in GitHub Desktop.
eslint config i'm working on
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true
},
"rules": {
"no-unexpected-multiline": 1,
"accessor-pairs": 1,
"consistent-return": 1,
"curly": 1,
"default-case": 1,
"dot-notation": 1,
"dot-location": [1, "property"],
"eqeqeq": [1, "smart"],
"guard-for-in": 1,
"no-caller": 1,
"no-else-return": 1,
"no-empty-label": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-implied-eval": 1,
"no-loop-func": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-native-reassign": 1,
"no-new": 1,
"no-proto":1,
"no-return-assign": 1,
"no-script-url": 1,
"no-sequences": 1,
"no-unused-expressions": [1, {"allowShortCircuit": true, "allowTernary": true}],
"no-useless-call": 1,
"no-with": 1,
"no-shadow-restricted-names": 1,
"no-undef-init": 1,
"no-undef": 1,
"no-unused-vars": 1,
"no-use-before-define": [1, "nofunc"],
"block-spacing": 1,
"brace-style": 1,
"camelcase": 1,
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": 1,
"computed-property-spacing": 1,
"consistent-this": [1, "self"],
"eol-last": 1,
"func-names": 1,
"indent": [1, 3, {"SwitchCase": 1}],
"jsx-quotes": [1, "prefer-double"],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"lines-around-comment": 1,
"linebreak-style": 1,
"new-cap": 1,
"new-parens": 1,
"newline-after-var": 1,
"no-lonely-if": 1,
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-spaced-func": 1,
"no-trailing-spaces": 1,
"no-unneeded-ternary": [1, {"defaultAssignment": true}],
"object-curly-spacing": [1, "always"],
"quotes": [1, "single"],
"semi-spacing": [1, {"before": false, "after": true}],
"semi": 1,
"space-after-keywords": 1,
"space-before-keywords": 1,
"space-before-blocks": 1,
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
"space-infix-ops": 1,
"space-unary-ops": 1,
"spaced-comment": [1, "always", { "exceptions": ["-", "+", "*"] }],
"wrap-regex": 1,
"arrow-spacing": 1,
"constructor-super": 1,
"generator-star-spacing": [1, {"before": false, "after": true}],
"no-class-assign": 1,
"no-const-assign": 1,
"no-dupe-class-members": 1,
"no-this-before-super": 1,
"object-shorthand": 1,
"prefer-const": 1,
"prefer-spread": 1,
"require-yield": 1,
"react/display-name": 0,
"react/forbid-prop-types": 0,
"react/jsx-boolean-value": 1,
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": 1,
"react/jsx-indent-props": [1, 3],
"react/jsx-max-props-per-line": 1,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 1,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 0,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-unknown-property": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 0
},
"globals": {
"DEBUG": true,
"React": true,
"ReactDOM": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment