Skip to content

Instantly share code, notes, and snippets.

@reabiliti
Created September 26, 2019 16:50
Show Gist options
  • Save reabiliti/bd7849071db235877bba9d7ba3f386b2 to your computer and use it in GitHub Desktop.
Save reabiliti/bd7849071db235877bba9d7ba3f386b2 to your computer and use it in GitHub Desktop.
{
"env": {
"es6": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": "off",
"jsx-quotes": ["warn", "prefer-single"],
"react/jsx-wrap-multilines": "off",
"function-paren-newline": "warn",
"eol-last": "warn",
"react/prop-types": "warn",
"react/jsx-first-prop-new-line": "warn",
"react/jsx-indent-props": ["off", "tab"],
"react/jsx-closing-bracket-location": "warn",
"object-curly-spacing": "warn",
"react/jsx-no-target-blank": "warn",
"arrow-parens": ["warn", "as-needed"],
"operator-linebreak": "warn",
"react/jsx-tag-spacing": "warn",
"react/prefer-stateless-function": "off",
"space-before-blocks": "warn",
"dot-notation": "warn",
"no-multi-spaces": "warn",
"keyword-spacing": "warn",
"no-return-assign": "warn",
"no-unused-expressions": "warn",
"comma-spacing": "warn",
"max-len": ["warn", { "code": 120 }],
"padded-blocks": "warn",
"no-trailing-spaces": "warn",
"radix": "warn",
"react/no-unused-prop-types": "warn",
"consistent-return": "warn",
"no-else-return": "warn",
"space-unary-ops": "warn",
"prefer-const": "warn",
"no-unused-vars": "warn",
"react/jsx-no-bind": "warn",
"react/destructuring-assignment": "off",
"prefer-template": "warn",
"quote-props": "warn",
"lines-between-class-members": [
"warn",
"always",
{ "exceptAfterSingleLine": true }
],
"space-in-parens": "warn",
"one-var": "warn",
"react/sort-comp": "warn",
"default-case": "warn",
"key-spacing": "warn",
"quotes": "warn",
"func-call-spacing": "warn",
"no-spaced-func": "warn",
"space-infix-ops": "warn",
"object-shorthand": "warn",
"no-multiple-empty-lines": "warn",
"react/jsx-closing-tag-location": "off",
"react/no-string-refs": "warn",
"import/order": "warn",
"react/jsx-curly-spacing": "warn",
"arrow-body-style": "warn",
"react/jsx-boolean-value": "warn",
"react/jsx-curly-brace-presence": "warn",
"no-confusing-arrow": "warn",
"no-nested-ternary": "warn",
"no-unneeded-ternary": "warn",
"prefer-destructuring": "warn",
"no-use-before-define": "warn",
"no-restricted-globals": "warn",
"guard-for-in": "warn",
"no-restricted-syntax": "warn",
"no-continue": "warn",
"brace-style": "warn",
"wrap-iife": "warn",
"curly": "warn",
"nonblock-statement-body-position": "warn",
"no-empty": "warn",
"one-var-declaration-per-line": "warn",
"no-case-declarations": "warn",
"no-dupe-keys": "warn",
"class-methods-use-this": "warn",
"object-property-newline": "warn",
"no-restricted-properties": "warn",
"import/no-duplicates": "warn",
"react/self-closing-comp": "warn",
"arrow-spacing": "warn",
"space-before-function-paren": "warn",
"block-spacing": "warn",
"no-lonely-if": "warn",
"import/prefer-default-export": "off",
"no-mixed-operators": "warn",
"jsx-a11y/alt-text": "warn",
"react/no-find-dom-node": "warn",
"linebreak-style": "warn",
"template-curly-spacing": "warn",
"import/newline-after-import": "warn",
"no-var": "warn",
"vars-on-top": "warn",
"prefer-arrow-callback": "warn",
"no-prototype-builtins": "warn",
"prefer-spread": "warn",
"react/jsx-max-props-per-line": "warn",
"import/no-useless-path-segments": "warn",
"no-extra-semi": "warn",
"react/no-did-update-set-state": "warn",
"yoda": "warn",
"react/no-will-update-set-state": "warn",
"no-useless-escape": "warn",
"no-eval": "warn",
"no-bitwise": "warn",
"no-irregular-whitespace": "warn",
"react/jsx-props-no-multi-spaces": "warn",
"import/no-mutable-exports": "warn",
"no-mixed-spaces-and-tabs": "warn",
"indent": ["error", 2],
"no-tabs": 0,
"no-unexpected-multiline": "warn",
"no-class-assign": "warn",
"react/jsx-equals-spacing": "warn",
"react/no-children-prop": "warn",
"block-scoped-var": "warn",
"no-console": [
"warn",
{
"allow": [
"warn",
"error"
]
}
],
"semi": "off",
"react/jsx-filename-extension": "off",
"no-undef": "off",
"implicit-arrow-linebreak": "off",
"object-curly-newline": "off",
"react/jsx-indent": "off",
"jsx-a11y/anchor-has-content": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"spaced-comment": "off",
"react/require-default-props": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/interactive-supports-focus": "off",
"react/jsx-one-expression-per-line": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-plusplus": "off",
"react/no-access-state-in-setstate": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/button-has-type": "off",
"strict": "off",
"import/no-named-as-default-member": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"import/no-named-as-default": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/media-has-caption": "off",
"react/no-array-index-key": "off",
"react/forbid-prop-types": "off",
"no-shadow": "off",
"camelcase": "off",
"no-underscore-dangle": "off",
"no-alert": "off",
"no-param-reassign": "off"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment