|
| 1 | +{ |
| 2 | + "parser": "babel-eslint", |
| 3 | + "extends": [ |
| 4 | + "standard", |
| 5 | + "standard-react", |
| 6 | + "plugin:prettier/recommended", |
| 7 | + "prettier/standard", |
| 8 | + "prettier/react", |
| 9 | + "flowtype" |
| 10 | + ], |
| 11 | + "env": { |
| 12 | + "node": true |
| 13 | + }, |
| 14 | + "parserOptions": { |
| 15 | + "ecmaVersion": 2020, |
| 16 | + "ecmaFeatures": { |
| 17 | + "legacyDecorators": true, |
| 18 | + "jsx": true |
| 19 | + } |
| 20 | + }, |
| 21 | + "settings": { |
| 22 | + "react": { |
| 23 | + "version": "16" |
| 24 | + } |
| 25 | + }, |
| 26 | + "rules": { |
| 27 | + "space-before-function-paren": 0, |
| 28 | + "react/prop-types": 0, |
| 29 | + "react/jsx-handler-names": 0, |
| 30 | + "react/jsx-fragments": 0, |
| 31 | + "react/no-unused-prop-types": 0, |
| 32 | + "import/export": 0, |
| 33 | + "flowtype/boolean-style": [ |
| 34 | + 2, |
| 35 | + "boolean" |
| 36 | + ], |
| 37 | + "flowtype/define-flow-type": 1, |
| 38 | + "flowtype/delimiter-dangle": [ |
| 39 | + 2, |
| 40 | + "never" |
| 41 | + ], |
| 42 | + "flowtype/generic-spacing": [ |
| 43 | + 2, |
| 44 | + "never" |
| 45 | + ], |
| 46 | + "flowtype/no-mixed": 2, |
| 47 | + "flowtype/no-primitive-constructor-types": 2, |
| 48 | + "flowtype/no-types-missing-file-annotation": 2, |
| 49 | + "flowtype/no-weak-types": 2, |
| 50 | + "flowtype/object-type-delimiter": [ |
| 51 | + 2, |
| 52 | + "comma" |
| 53 | + ], |
| 54 | + "flowtype/require-parameter-type": 2, |
| 55 | + "flowtype/require-readonly-react-props": 0, |
| 56 | + "flowtype/require-return-type": [ |
| 57 | + 2, |
| 58 | + "always", |
| 59 | + { |
| 60 | + "annotateUndefined": "never" |
| 61 | + } |
| 62 | + ], |
| 63 | + "flowtype/require-valid-file-annotation": 2, |
| 64 | + "flowtype/semi": [ |
| 65 | + 2, |
| 66 | + "always" |
| 67 | + ], |
| 68 | + "flowtype/space-after-type-colon": [ |
| 69 | + 2, |
| 70 | + "always" |
| 71 | + ], |
| 72 | + "flowtype/space-before-generic-bracket": [ |
| 73 | + 2, |
| 74 | + "never" |
| 75 | + ], |
| 76 | + "flowtype/space-before-type-colon": [ |
| 77 | + 2, |
| 78 | + "never" |
| 79 | + ], |
| 80 | + "flowtype/type-id-match": [ |
| 81 | + 2, |
| 82 | + "^([A-Z][a-z0-9]+)+Type$" |
| 83 | + ], |
| 84 | + "flowtype/union-intersection-spacing": [ |
| 85 | + 2, |
| 86 | + "always" |
| 87 | + ], |
| 88 | + "flowtype/use-flow-type": 1, |
| 89 | + "flowtype/valid-syntax": 1 |
| 90 | + } |
| 91 | +} |
0 commit comments