|
| 1 | +{ |
| 2 | + "parser": "babel-eslint", |
| 3 | + "parserOptions": { |
| 4 | + "sourceType": "module", |
| 5 | + "allowImportExportEverywhere": true |
| 6 | + }, |
| 7 | + "extends": ["airbnb", "prettier", "prettier/flowtype", "prettier/react"], |
| 8 | + "env": { |
| 9 | + "browser": true, |
| 10 | + "node": true |
| 11 | + }, |
| 12 | + "rules": { |
| 13 | + "arrow-parens": ["off"], |
| 14 | + "compat/compat": "error", |
| 15 | + "consistent-return": "off", |
| 16 | + "comma-dangle": "off", |
| 17 | + "flowtype/boolean-style": ["error", "boolean"], |
| 18 | + "flowtype/define-flow-type": "warn", |
| 19 | + "flowtype/delimiter-dangle": ["error", "never"], |
| 20 | + "flowtype/generic-spacing": ["error", "never"], |
| 21 | + "flowtype/no-primitive-constructor-types": "error", |
| 22 | + "flowtype/no-weak-types": "warn", |
| 23 | + "flowtype/object-type-delimiter": ["error", "comma"], |
| 24 | + "flowtype/require-parameter-type": "off", |
| 25 | + "flowtype/require-return-type": "off", |
| 26 | + "flowtype/require-valid-file-annotation": "off", |
| 27 | + "flowtype/semi": ["error", "always"], |
| 28 | + "flowtype/space-after-type-colon": ["error", "always"], |
| 29 | + "flowtype/space-before-generic-bracket": ["error", "never"], |
| 30 | + "flowtype/space-before-type-colon": ["error", "never"], |
| 31 | + "flowtype/union-intersection-spacing": ["error", "always"], |
| 32 | + "flowtype/use-flow-type": "error", |
| 33 | + "flowtype/valid-syntax": "error", |
| 34 | + "generator-star-spacing": "off", |
| 35 | + "import/no-unresolved": "error", |
| 36 | + "import/no-extraneous-dependencies": "off", |
| 37 | + "jsx-a11y/anchor-is-valid": "off", |
| 38 | + "no-console": "off", |
| 39 | + "no-use-before-define": "off", |
| 40 | + "no-multi-assign": "off", |
| 41 | + "promise/param-names": "error", |
| 42 | + "promise/always-return": "error", |
| 43 | + "promise/catch-or-return": "error", |
| 44 | + "promise/no-native": "off", |
| 45 | + "react/sort-comp": [ |
| 46 | + "error", |
| 47 | + { |
| 48 | + "order": [ |
| 49 | + "type-annotations", |
| 50 | + "static-methods", |
| 51 | + "lifecycle", |
| 52 | + "everything-else", |
| 53 | + "render" |
| 54 | + ] |
| 55 | + } |
| 56 | + ], |
| 57 | + "react/jsx-no-bind": "off", |
| 58 | + "react/jsx-filename-extension": [ |
| 59 | + "error", |
| 60 | + { "extensions": [".js", ".jsx"] } |
| 61 | + ], |
| 62 | + "react/prefer-stateless-function": "off" |
| 63 | + }, |
| 64 | + "plugins": ["flowtype", "import", "promise", "compat", "react"], |
| 65 | + "settings": { |
| 66 | + "import/resolver": { |
| 67 | + "webpack": { |
| 68 | + "config": "configs/webpack.config.eslint.js" |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | +} |
0 commit comments