Created
October 4, 2015 15:31
-
-
Save darklight721/a857f301597e769425db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parser": "babel-eslint", | |
| "rules": { | |
| // best practices | |
| "curly": [2, "multi-line"], | |
| "dot-notation": 2, | |
| "dot-location": [2, "property"], | |
| "eqeqeq": [2, "allow-null"], | |
| "guard-for-in": 2, | |
| "no-caller": 2, | |
| "no-div-regex": 2, | |
| "no-else-return": 2, | |
| "no-eval": 2, | |
| "no-extend-native": 2, | |
| "no-extra-bind": 2, | |
| "no-fallthrough": 2, | |
| "no-floating-decimal": 2, | |
| "no-implied-eval": 2, | |
| "no-invalid-this": 2, | |
| "no-iterator": 2, | |
| "no-labels": 2, | |
| "no-lone-blocks": 2, | |
| "no-loop-func": 2, | |
| "no-multi-spaces": 2, | |
| "no-multi-str": 2, | |
| "no-native-reassign": 2, | |
| "no-new-func": 2, | |
| "no-new-wrappers": 2, | |
| "no-new": 2, | |
| "no-octal-escape": 2, | |
| "no-param-reassign": [2, { "props": true }], | |
| "no-proto": 2, | |
| "no-redeclare": 2, | |
| "no-return-assign": 2, | |
| "no-script-url": 2, | |
| "no-self-compare": 2, | |
| "no-sequences": 2, | |
| "no-throw-literal": 2, | |
| "no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }], | |
| "no-useless-call": 2, | |
| "no-useless-concat": 2, | |
| "no-void": 2, | |
| "no-with": 2, | |
| "radix": 2, | |
| "wrap-iife": [2, "any"], | |
| "yoda": 2, | |
| // variables | |
| "no-catch-shadow": 2, | |
| "no-delete-var": 2, | |
| "no-label-var": 2, | |
| "no-shadow-restricted-names": 2, | |
| "no-undef-init": 2, | |
| "no-undef": 2, | |
| "no-undefined": 2, | |
| "no-unused-vars": 2, | |
| "no-use-before-define": 2, | |
| // node.js | |
| "no-path-concat": 2, | |
| // style | |
| "array-bracket-spacing": [2, "never"], | |
| "block-spacing": [2, "always"], | |
| "brace-style": [2, "1tbs"], | |
| "camelcase": 2, | |
| "comma-spacing": [2, { "before": false, "after": true }], | |
| "comma-style": [2, "last"], | |
| "computed-property-spacing": [2, "never"], | |
| "consistent-this": [2, "self"], | |
| "eol-last": 2, | |
| "indent": [2, 2, { "SwitchCase": 1 }], | |
| "jsx-quotes": [2, "prefer-double"], | |
| "key-spacing": [2, { "beforeColon": false, "afterColon": true }], | |
| "lines-around-comment": [2, { "beforeBlockComment": true }], | |
| "linebreak-style": [2, "unix"], | |
| "max-nested-callbacks": [2, 3], | |
| "new-cap": 0, | |
| "new-parens": 2, | |
| "newline-after-var": [2, "always"], | |
| "no-array-constructor": 2, | |
| "no-continue": 2, | |
| "no-inline-comments": 2, | |
| "no-lonely-if": 2, | |
| "no-multiple-empty-lines": 2, | |
| "no-negated-condition": 2, | |
| "no-new-object": 2, | |
| "no-spaced-func": 2, | |
| "no-trailing-spaces": 2, | |
| "no-underscore-dangle": 2, | |
| "no-unneeded-ternary": 2, | |
| "object-curly-spacing": 0, | |
| "one-var": [2, "never"], | |
| "operator-assignment": [2, "always"], | |
| "operator-linebreak": [2, "after"], | |
| "quote-props": [2, "as-needed"], | |
| "quotes": [2, "single"], | |
| "semi-spacing": [2, { "before": false, "after": true }], | |
| "semi": [2, "always"], | |
| "space-after-keywords": 2, | |
| "space-before-keywords": 2, | |
| "space-before-blocks": 2, | |
| "space-before-function-paren": [2, "never"], | |
| "space-in-parens": [2, "never"], | |
| "space-infix-ops": 2, | |
| "space-return-throw-case": 2, | |
| "space-unary-ops": 2, | |
| "spaced-comment": 2, | |
| // es6 | |
| "arrow-parens": 0, | |
| "arrow-spacing": 2, | |
| "constructor-super": 2, | |
| "generator-star-spacing": 0, | |
| "no-class-assign": 2, | |
| "no-const-assign": 2, | |
| "no-dupe-class-members": 2, | |
| "no-this-before-super": 2, | |
| "no-var": 2, | |
| "object-shorthand": 0, | |
| "prefer-arrow-callback": 2, | |
| "prefer-const": 2, | |
| "prefer-spread": 2, | |
| "prefer-template": 2, | |
| "require-yield": 2, | |
| // legacy | |
| "max-depth": [2, 3], | |
| "max-len": [2, 80], | |
| "max-params": [2, 3], | |
| "max-statements": [2, 40], | |
| "no-bitwise": 2, | |
| // react | |
| "react/jsx-boolean-value": 2, | |
| "react/jsx-closing-bracket-location": 2, | |
| "react/jsx-curly-spacing": 2, | |
| "react/jsx-indent-props": [2, 2], | |
| "react/jsx-no-duplicate-props": 2, | |
| "react/jsx-no-undef": 2, | |
| "react/jsx-uses-react": 2, | |
| "react/jsx-uses-vars": 2, | |
| "react/no-danger": 2, | |
| "react/no-did-mount-set-state": [2, "allow-in-func"], | |
| "react/no-did-update-set-state": 2, | |
| "react/no-direct-mutation-state": 2, | |
| "react/no-unknown-property": 2, | |
| "react/react-in-jsx-scope": 2, | |
| "react/self-closing-comp": 2, | |
| "react/sort-comp": [2, { order: ["lifecycle", "render", "everything-else"] }], | |
| "react/wrap-multilines": 2, | |
| // babel | |
| "babel/arrow-parens": [2, "as-needed"], | |
| "babel/generator-star-spacing": [2, {"before": false, "after": true}], | |
| "babel/new-cap": 2, | |
| "babel/object-curly-spacing": [2, "always"], | |
| "babel/object-shorthand": 2 | |
| }, | |
| "env": { | |
| "es6": true, | |
| "node": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "modules": true, | |
| "experimentalObjectRestSpread": true | |
| }, | |
| "plugins": [ | |
| "react", | |
| "babel" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment