|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + es2021: true, |
| 6 | + node: true, |
| 7 | + }, |
| 8 | + parser: "@typescript-eslint/parser", |
| 9 | + plugins: ["@typescript-eslint", "prettier", "simple-import-sort"], |
| 10 | + extends: [ |
| 11 | + "eslint:recommended", |
| 12 | + "plugin:@typescript-eslint/eslint-recommended", |
| 13 | + "plugin:@typescript-eslint/recommended", |
| 14 | + "plugin:react/recommended", |
| 15 | + "plugin:storybook/recommended", |
| 16 | + ], |
| 17 | + rules: { |
| 18 | + "@typescript-eslint/ban-ts-comment": "off", |
| 19 | + "@typescript-eslint/ban-ts-ignore": "off", |
| 20 | + "@typescript-eslint/camelcase": "off", |
| 21 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 22 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 23 | + "@typescript-eslint/interface-name-prefix": "off", |
| 24 | + "@typescript-eslint/no-empty-interface": "off", |
| 25 | + "@typescript-eslint/no-explicit-any": "off", |
| 26 | + "@typescript-eslint/no-unused-vars": [ |
| 27 | + "error", |
| 28 | + { |
| 29 | + ignoreRestSiblings: true, |
| 30 | + }, |
| 31 | + ], |
| 32 | + "no-case-declarations": "off", |
| 33 | + "no-console": [ |
| 34 | + "error", |
| 35 | + { |
| 36 | + allow: ["warn", "error", "debug"], |
| 37 | + }, |
| 38 | + ], |
| 39 | + "no-useless-escape": "off", |
| 40 | + "prettier/prettier": "error", |
| 41 | + "react/display-name": "off", |
| 42 | + "react/jsx-key": "off", |
| 43 | + "react/no-children-prop": "off", |
| 44 | + "react/prop-types": "off", |
| 45 | + "simple-import-sort/exports": "error", |
| 46 | + "simple-import-sort/imports": "error", |
| 47 | + }, |
| 48 | + settings: { |
| 49 | + react: { |
| 50 | + version: "detect", |
| 51 | + }, |
| 52 | + }, |
| 53 | +}; |
0 commit comments