|
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 | + ], |
19 | 32 | "comma-dangle": 0, // not sure why airbnb turned this on. gross!
|
| 33 | + "default-param-last": 0, |
| 34 | + "no-else-return" :0, |
20 | 35 | "indent": 0,
|
21 | 36 | "no-console": 0,
|
22 | 37 | "no-alert": 0,
|
| 38 | + "no-import-assign": 2, |
| 39 | + "no-promise-executor-return": 0, //temporarily off |
| 40 | + "no-restricted-exports": 1, |
23 | 41 | "no-underscore-dangle": 0,
|
24 | 42 | "no-useless-catch": 2,
|
| 43 | + "prefer-object-spread": 0, |
25 | 44 | "max-len": [1, 120, 2, {"ignoreComments": true, "ignoreTemplateLiterals": true}],
|
| 45 | + "max-classes-per-file": 0, |
26 | 46 | "quote-props": [1, "as-needed"],
|
27 | 47 | "no-unused-vars": [1, {"vars": "local", "args": "none"}],
|
28 | 48 | "consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
|
|
36 | 56 | { "ignorePureComponents": true
|
37 | 57 | }],
|
38 | 58 | "class-methods-use-this": 0,
|
39 |
| - "react/jsx-no-bind": [2, {"allowBind": true, "allowArrowFunctions": true}], |
| 59 | + "react/button-has-type": 0, |
| 60 | + "react/destructuring-assignment":0, |
| 61 | + "react/function-component-definition": 0, |
| 62 | + "react/jsx-curly-newline":0, |
| 63 | + "react/jsx-fragments":0, |
| 64 | + "react/jsx-no-useless-fragment":0, // temporarily off |
| 65 | + "react/jsx-one-expression-per-line": 0, |
| 66 | + "react/jsx-props-no-spreading": 0, |
| 67 | + "react/jsx-wrap-multilines": 0, |
| 68 | + "react/jsx-no-bind": [2, {"allowBind": true, "allowArrowFunctions": true, "allowFunctions": true}], |
| 69 | + "react/no-deprecated": 0, //temporarily off |
| 70 | + "react/no-unused-class-component-methods": 1, |
| 71 | + "react/sort-comp": 0, |
40 | 72 | "no-return-assign": [2, "except-parens"],
|
41 | 73 | "jsx-a11y/anchor-is-valid": [
|
42 | 74 | "error",
|
|
49 | 81 | ]
|
50 | 82 | }
|
51 | 83 | ],
|
| 84 | + "jsx-a11y/control-has-associated-label": 0, //temporarily off |
| 85 | + "jsx-a11y/label-has-associated-control": 0, //temporarily off |
52 | 86 | "jsx-a11y/label-has-for": [
|
53 | 87 | 2,
|
54 | 88 | {
|
|
72 | 106 | ],
|
73 | 107 | "settings": {
|
74 | 108 | "import/parser": "@babel/eslint-parser",
|
| 109 | + "import/resolver": { |
| 110 | + "node": { |
| 111 | + "extensions": [".js", ".jsx", ".ts", ".tsx"] |
| 112 | + } |
| 113 | + }, |
75 | 114 | "import/resolve": {
|
76 | 115 | "moduleDirectory": ["node_modules"]
|
77 | 116 | }
|
|
85 | 124 | },
|
86 | 125 | "overrides": [
|
87 | 126 | {
|
88 |
| - "files": ["*.stories.jsx"], |
| 127 | + "files": ["*.ts", "*.tsx"], |
| 128 | + "parser": "@typescript-eslint/parser", |
| 129 | + "plugins": ["@typescript-eslint"] |
| 130 | + }, |
| 131 | + { |
| 132 | + "files": ["*.stories.@(js|jsx|ts|tsx)"], |
89 | 133 | "rules": {
|
90 | 134 | "import/no-extraneous-dependencies": "off"
|
91 | 135 | }
|
|
0 commit comments