|
1 | 1 | { |
| 2 | + "root": true, |
2 | 3 | "parser": "babel-eslint", |
3 | 4 | "extends": ["airbnb", "prettier"], |
4 | 5 | "env": { |
|
15 | 16 | "no-multi-spaces": ["error", { "ignoreEOLComments": true }], |
16 | 17 | "no-return-assign": ["error", "except-parens"], |
17 | 18 | "no-underscore-dangle": "off", |
18 | | - "padded-blocks": ["error", { |
19 | | - "blocks": "never", |
20 | | - "switches": "never", |
21 | | - "classes": "never" |
22 | | - }], |
| 19 | + "padded-blocks": [ |
| 20 | + "error", |
| 21 | + { |
| 22 | + "blocks": "never", |
| 23 | + "switches": "never", |
| 24 | + "classes": "never" |
| 25 | + } |
| 26 | + ], |
23 | 27 | "prefer-destructuring": "off", |
24 | 28 | "jsx-a11y/alt-text": "warn", |
25 | 29 | "jsx-a11y/anchor-is-valid": "off", |
|
28 | 32 | "jsx-a11y/label-has-associated-control": "warn", |
29 | 33 | "jsx-a11y/no-static-element-interactions": "warn", |
30 | 34 | "jsx-a11y/role-has-required-aria-props": "warn", |
| 35 | + "import/named": "off", |
| 36 | + "import/no-cycle": "off", |
31 | 37 | "import/no-dynamic-require": "off", |
32 | 38 | "import/no-extraneous-dependencies": "off", |
33 | 39 | "import/no-unresolved": "off", |
|
36 | 42 | "react/button-has-type": "off", |
37 | 43 | "react/destructuring-assignment": "off", |
38 | 44 | "react/forbid-prop-types": "off", |
39 | | - "react/jsx-one-expression-per-line": "off", |
40 | | - "react/jsx-filename-extension": [2, { "extensions": [".js"] }], |
| 45 | + "react/jsx-curly-newline": "off", |
| 46 | + "react/jsx-one-expression-per-line": "off", |
| 47 | + "react/jsx-filename-extension": ["error", { "extensions": [".js", ".tsx"] }], |
| 48 | + "react/jsx-props-no-spreading": "off", |
41 | 49 | "react/jsx-wrap-multilines": "off", |
| 50 | + "react/prefer-stateless-function": "off", |
42 | 51 | "react/no-unused-prop-types": "off", |
43 | 52 | "react/sort-comp": "off", |
44 | | - "react/require-default-props":"off" |
45 | | - } |
| 53 | + "react/state-in-constructor": "off", |
| 54 | + "react/require-default-props": "off" |
| 55 | + }, |
| 56 | + "overrides": [ |
| 57 | + { |
| 58 | + "files": ["**/*.ts", "**/*.tsx"], |
| 59 | + "parser": "@typescript-eslint/parser", |
| 60 | + "extends": [ |
| 61 | + "eslint:recommended", |
| 62 | + "plugin:@typescript-eslint/eslint-recommended", |
| 63 | + "plugin:@typescript-eslint/recommended" |
| 64 | + ], |
| 65 | + "plugins": ["@typescript-eslint"], |
| 66 | + "rules": { |
| 67 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 68 | + "@typescript-eslint/no-explicit-any": "off", |
| 69 | + "@typescript-eslint/no-empty-interface": "off" |
| 70 | + } |
| 71 | + } |
| 72 | + ] |
46 | 73 | } |
0 commit comments