Created
December 16, 2019 09:14
-
-
Save ts-ign0re/d6ad9a8e576a8a347c0f093cf382ecb4 to your computer and use it in GitHub Desktop.
This file contains 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", | |
"extends": "airbnb", | |
"env": { | |
"browser": true, | |
"node": true, | |
"jest": true, | |
"es6": true | |
}, | |
"globals": { | |
"API_HOST": true, | |
"REAL_API_HOST": true | |
}, | |
"plugins": [ | |
"redux-saga", | |
"react", | |
"jsx-a11y", | |
"react-hooks", | |
"flowtype" | |
], | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module" | |
}, | |
"rules": { | |
"react-hooks/rules-of-hooks": "error", | |
"react-hooks/exhaustive-deps": "warn", | |
"arrow-parens": [ | |
"error", | |
"always" | |
], | |
"arrow-body-style": 0, | |
"comma-dangle": [ | |
2, | |
"always-multiline" | |
], | |
"import/imports-first": 0, | |
"import/newline-after-import": 0, | |
"import/no-dynamic-require": 0, | |
"import/no-extraneous-dependencies": 0, | |
"import/no-named-as-default": 0, | |
"import/prefer-default-export": 0, | |
"import/named": 2, | |
"indent": [ | |
2, | |
2, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"import/extensions": [ | |
0 | |
], | |
"import/no-unresolved": [ | |
2, | |
{ | |
"ignore": [ | |
"Api\/.*", | |
"Model\/.*", | |
"Svg\/.*", | |
"Img\/.*", | |
"Utils\/.*", | |
"Components\/.*", | |
"Containers\/.*", | |
"App\/.*" | |
] | |
} | |
], | |
"jsx-a11y/aria-props": 2, | |
"jsx-a11y/heading-has-content": 0, | |
"jsx-a11y/href-no-hash": "off", | |
"jsx-a11y/label-has-for": 2, | |
"jsx-a11y/mouse-events-have-key-events": 2, | |
"jsx-a11y/click-events-have-key-events": 0, | |
"jsx-a11y/no-static-element-interactions": 0, | |
"jsx-a11y/anchor-is-valid": 0, | |
"jsx-a11y/role-has-required-aria-props": 2, | |
"jsx-a11y/role-supports-aria-props": 2, | |
"max-len": 0, | |
"newline-per-chained-call": 0, | |
"no-confusing-arrow": 0, | |
"no-console": [1, { "allow": ["warn", "info"] }], | |
"no-use-before-define": 0, | |
"no-return-assign": 0, | |
"no-restricted-globals": 0, | |
"prefer-template": 2, | |
"class-methods-use-this": 0, | |
"react/jsx-indent": [ | |
2, | |
2 | |
], | |
"react/forbid-prop-types": 0, | |
"react/jsx-first-prop-new-line": [ | |
2, | |
"multiline" | |
], | |
"react/jsx-indent-props": [ | |
2, | |
2 | |
], | |
"react/destructuring-assignment": 0, | |
"react/jsx-one-expression-per-line": 0, | |
"operator-linebreak": 0, | |
"padded-blocks": 0, | |
"implicit-arrow-linebreak": 0, | |
"react/button-has-type": 0, | |
"react/no-array-index-key": 0, | |
"react/jsx-tag-spacing": 0, | |
"react/no-access-state-in-setstate": 0, | |
"react/jsx-boolean-value": ["error", "never"], | |
"react/no-multi-comp": 0, | |
"react/jsx-filename-extension": 0, | |
"react/jsx-no-target-blank": 0, | |
"react/require-extension": 0, | |
"react/self-closing-comp": 0, | |
"redux-saga/no-yield-in-race": 2, | |
"redux-saga/yield-effects": 2, | |
"require-yield": 0, | |
"import/no-webpack-loader-syntax": 0, | |
"react/require-default-props": 0, | |
"react/no-typos": 0, | |
"react/jsx-closing-tag-location": 0, | |
"object-curly-newline": 0, | |
"react/jsx-wrap-multilines": 0, | |
"function-paren-newline": 0, | |
"react/prefer-stateless-function": [2, { "ignorePureComponents": true }], | |
"react/sort-comp": [2, { | |
"order": [ | |
"type-annotations", | |
"static-methods", | |
"lifecycle", | |
"everything-else", | |
"render" | |
] | |
}], | |
"react/prop-types": [0], | |
"no-nested-ternary": 1, | |
"quote-props": [1, "as-needed"], | |
"flowtype/boolean-style": [ | |
0, | |
"boolean" | |
], | |
"flowtype/define-flow-type": 1, | |
"flowtype/delimiter-dangle": 0, | |
"flowtype/generic-spacing": [ | |
2, | |
"never" | |
], | |
"flowtype/no-mixed": 0, | |
"flowtype/no-primitive-constructor-types": 1, | |
"flowtype/no-types-missing-file-annotation": 0, | |
"flowtype/no-weak-types": 0, | |
"flowtype/object-type-delimiter": [ | |
1, | |
"comma" | |
], | |
"flowtype/require-parameter-type": 1, | |
"flowtype/require-readonly-react-props": 0, | |
"flowtype/require-return-type": 1, | |
"flowtype/require-valid-file-annotation": 1, | |
"flowtype/semi": 1, | |
"flowtype/space-after-type-colon": 1, | |
"flowtype/space-before-generic-bracket": [ | |
1, | |
"never" | |
], | |
"flowtype/space-before-type-colon": [ | |
1, | |
"never" | |
], | |
"flowtype/type-id-match": 1, | |
"flowtype/union-intersection-spacing": [ | |
1, | |
"always" | |
], | |
"flowtype/use-flow-type": 0, | |
"flowtype/valid-syntax": 0, | |
"consistent-return": 0, | |
"react/no-unused-prop-types": "off" | |
}, | |
"settings": { | |
"flowtype": { | |
"onlyFilesWithFlowAnnotation": true | |
}, | |
"import/resolver": { | |
"webpack": {}, | |
"node": { | |
"extensions": [".jsx", ".js", ".android.js", ".ios.js"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment