-
-
Save saggiyogesh/dc8d2c902ef8814c8aef18802e3ab6cc to your computer and use it in GitHub Desktop.
ESLint
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
{ | |
"plugins": [ | |
"react" | |
], | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 7, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"experimentalObjectRestSpread": true, | |
"jsx": true | |
} | |
}, | |
"rules": { | |
"arrow-body-style": 0, | |
"block-spacing": 2, | |
"brace-style": [2, "1tbs"], | |
"callback-return": [2, ["cb", "callback", "next"]], | |
"camelcase": [2, { "properties": "never" }], | |
"comma-spacing": 2, | |
"comma-style": [2, "last"], | |
"comma-dangle": [2, "never"], | |
"consistent-return": 2, | |
"curly": [2, "all"], | |
"default-case": 2, | |
"dot-notation": [2, { "allowKeywords": true }], | |
"eol-last": 2, | |
"eqeqeq": 2, | |
"func-names": 0, | |
"indent": [2, 4], | |
"key-spacing": [2, { | |
"beforeColon": false, | |
"afterColon": true | |
}], | |
"max-len": [1, 160, 2, { "ignoreComments": true }], | |
"new-cap": 2, | |
"new-parens": 2, | |
"no-alert": 2, | |
"no-array-constructor": 2, | |
"no-caller": 2, | |
"no-cond-assign": [2, "except-parens"], | |
"no-const-assign": 2, | |
"no-console": [1, { "allow": ["assert", "warn", "error"]}], | |
"no-else-return": 0, | |
"no-lone-blocks": 0, | |
"no-param-reassign": 0, | |
"no-shadow": 0, | |
"no-var": 1, | |
"no-unused-expressions": [2, { | |
"allowShortCircuit": true, | |
"allowTernary": true | |
}], | |
"no-unused-vars": [1, { | |
"vars": "local", | |
"args": "none" | |
}], | |
"no-use-before-define": 0, | |
"object-shorthand": 0, | |
"one-var": 0, | |
"one-var-declaration-per-line": 0, | |
"prefer-const": 0, | |
"prefer-template": 0, | |
"quote-props": [0, "as-needed"], | |
"quotes": [2, "single"], | |
"space-before-function-paren": 0, | |
"spaced-comment": 0, | |
"vars-on-top": 0, | |
"react/jsx-boolean-value": 0, | |
"react/jsx-curly-spacing": 1, | |
"react/jsx-indent-props": [1, 4], | |
"react/jsx-max-props-per-line": [1, { "maximum": 3 }], | |
"react/jsx-no-bind": [1, { | |
"ignoreRefs": false, | |
"allowArrowFunctions": true, | |
"allowBind": false | |
}], | |
"react/jsx-no-duplicate-props": 1, | |
"react/jsx-no-undef": 1, | |
"react/jsx-uses-react": 1, | |
"react/jsx-uses-vars": 1, | |
"react/no-danger": 1, | |
"react/no-did-mount-set-state": 1, | |
"react/no-did-update-set-state": 1, | |
"react/no-multi-comp": [1, { "ignoreStateless": true }], | |
"react/no-unknown-property": 1, | |
"react/prefer-stateless-function": 1, | |
"react/prop-types": [1, { "ignore": ["className"] }], | |
"react/react-in-jsx-scope": 1, | |
"react/require-extension": 1, | |
"react/self-closing-comp": 1, | |
"react/sort-comp": 0, | |
"react/wrap-multilines": 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment