|
16 | 16 | "import/no-unresolved": 0,
|
17 | 17 | "import/no-named-as-default": 0,
|
18 | 18 | "import/no-named-as-default-member": 0,
|
| 19 | + "import/no-useless-path-segments": 1, |
| 20 | + "import/no-cycle":0, //temporarily off |
| 21 | + "import/no-import-module-exports": 0, //temporarily off |
| 22 | + "import/extensions": [ // override airbnb setting to allow imports of js, jsx, ts, and tsx files to auto-resolve instead of error |
| 23 | + "error", |
| 24 | + "ignorePackages", |
| 25 | + { |
| 26 | + "js": "never", |
| 27 | + "jsx": "never", |
| 28 | + "ts": "never", |
| 29 | + "tsx": "never" |
| 30 | + } |
| 31 | + ], |
| 32 | + "import/prefer-default-export": "off", |
| 33 | + "react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }], |
19 | 34 | "comma-dangle": 0, // not sure why airbnb turned this on. gross!
|
| 35 | + "default-param-last": 0, |
| 36 | + "no-else-return" :0, |
20 | 37 | "indent": 0,
|
21 | 38 | "no-console": 0,
|
22 | 39 | "no-alert": 0,
|
| 40 | + "no-import-assign": 2, |
| 41 | + "no-promise-executor-return": 0, //temporarily off |
| 42 | + "no-restricted-exports": 1, |
23 | 43 | "no-underscore-dangle": 0,
|
24 | 44 | "no-useless-catch": 2,
|
| 45 | + "no-plusplus": "off", |
| 46 | + "prefer-object-spread": 0, |
25 | 47 | "max-len": [1, 120, 2, {"ignoreComments": true, "ignoreTemplateLiterals": true}],
|
| 48 | + "max-classes-per-file": 0, |
26 | 49 | "quote-props": [1, "as-needed"],
|
27 | 50 | "no-unused-vars": [1, {"vars": "local", "args": "none"}],
|
28 | 51 | "consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
|
|
36 | 59 | { "ignorePureComponents": true
|
37 | 60 | }],
|
38 | 61 | "class-methods-use-this": 0,
|
39 |
| - "react/jsx-no-bind": [2, {"allowBind": true, "allowArrowFunctions": true}], |
| 62 | + "react/button-has-type": 0, |
| 63 | + "react/destructuring-assignment":0, |
| 64 | + "react/function-component-definition": 0, |
| 65 | + "react/jsx-curly-newline":0, |
| 66 | + "react/jsx-fragments":0, |
| 67 | + "react/jsx-no-useless-fragment":0, // temporarily off |
| 68 | + "react/jsx-one-expression-per-line": 0, |
| 69 | + "react/jsx-props-no-spreading": 0, |
| 70 | + "react/jsx-wrap-multilines": 0, |
| 71 | + "react/jsx-no-bind": [2, {"allowBind": true, "allowArrowFunctions": true, "allowFunctions": true}], |
| 72 | + "react/no-deprecated": 0, //temporarily off |
| 73 | + "react/no-unused-class-component-methods": 1, |
| 74 | + "react/sort-comp": 0, |
40 | 75 | "no-return-assign": [2, "except-parens"],
|
41 | 76 | "jsx-a11y/anchor-is-valid": [
|
42 | 77 | "error",
|
|
49 | 84 | ]
|
50 | 85 | }
|
51 | 86 | ],
|
| 87 | + "jsx-a11y/control-has-associated-label": 0, //temporarily off |
| 88 | + "jsx-a11y/label-has-associated-control": 0, //temporarily off |
52 | 89 | "jsx-a11y/label-has-for": [
|
53 | 90 | 2,
|
54 | 91 | {
|
|
72 | 109 | ],
|
73 | 110 | "settings": {
|
74 | 111 | "import/parser": "@babel/eslint-parser",
|
| 112 | + "import/resolver": { |
| 113 | + "node": { |
| 114 | + "extensions": [".js", ".jsx", ".ts", ".tsx"] |
| 115 | + } |
| 116 | + }, |
75 | 117 | "import/resolve": {
|
76 | 118 | "moduleDirectory": ["node_modules"]
|
77 | 119 | }
|
|
85 | 127 | },
|
86 | 128 | "overrides": [
|
87 | 129 | {
|
88 |
| - "files": ["*.stories.jsx"], |
| 130 | + "files": ["*.ts", "*.tsx"], |
| 131 | + "parser": "@typescript-eslint/parser", |
| 132 | + "plugins": ["@typescript-eslint"], |
| 133 | + "rules": { |
| 134 | + "no-use-before-define": "off", |
| 135 | + "import/no-extraneous-dependencies": "off", |
| 136 | + "no-unused-vars": "off", |
| 137 | + "import/no-default-export": "warn", |
| 138 | + "no-underscore-dangle": "warn", |
| 139 | + "react/require-default-props": "off", |
| 140 | + "no-shadow": "off", |
| 141 | + "@typescript-eslint/no-shadow": "error" |
| 142 | + } |
| 143 | + }, |
| 144 | + { |
| 145 | + "files": ["*.stories.@(js|jsx|ts|tsx)"], |
89 | 146 | "rules": {
|
90 | 147 | "import/no-extraneous-dependencies": "off"
|
91 | 148 | }
|
|
0 commit comments