|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "parserOptions": { |
| 5 | + "ecmaVersion": 8, |
| 6 | + "sourceType": "module", |
| 7 | + "ecmaFeatures": { |
| 8 | + "impliedStrict": true, |
| 9 | + "experimentalObjectRestSpread": true, |
| 10 | + }, |
| 11 | + "allowImportExportEverywhere": true |
| 12 | + }, |
| 13 | + "plugins": ["@typescript-eslint", "import", "testing-library"], |
| 14 | + "extends": [ |
| 15 | + "eslint:recommended", |
| 16 | + "plugin:@typescript-eslint/recommended", |
| 17 | + "plugin:import/errors", |
| 18 | + "plugin:import/warnings", |
| 19 | + "plugin:import/typescript", |
| 20 | + "plugin:jest-dom/recommended", |
| 21 | + "plugin:testing-library/react", |
| 22 | + "plugin:react/recommended", |
| 23 | + "plugin:react-hooks/recommended", |
| 24 | + "plugin:prettier/recommended", |
| 25 | + "prettier" |
| 26 | + ], |
| 27 | + "rules": { |
| 28 | + // `@typescript-eslint` |
| 29 | + // https://github.com/typescript-eslint/typescript-eslint |
| 30 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 31 | + "@typescript-eslint/no-explicit-any": "off", |
| 32 | + "@typescript-eslint/no-unused-vars": [ |
| 33 | + 2, |
| 34 | + { |
| 35 | + "argsIgnorePattern": "^_" |
| 36 | + } |
| 37 | + ], |
| 38 | + // `eslint-plugin-import` |
| 39 | + // https://github.com/benmosher/eslint-plugin-import |
| 40 | + "import/order": [ |
| 41 | + "error", |
| 42 | + { |
| 43 | + "groups": ["external", "internal"], |
| 44 | + "newlines-between": "always-and-inside-groups" |
| 45 | + } |
| 46 | + ], |
| 47 | + "sort-imports": [ |
| 48 | + "warn", |
| 49 | + { |
| 50 | + "ignoreCase": false, |
| 51 | + "ignoreDeclarationSort": true, |
| 52 | + "ignoreMemberSort": false |
| 53 | + } |
| 54 | + ], |
| 55 | + // `eslint-plugin-react` |
| 56 | + // https://github.com/yannickcr/eslint-plugin-react |
| 57 | + "react/prop-types": "off" |
| 58 | + }, |
| 59 | + "settings": { |
| 60 | + "import/parsers": { |
| 61 | + "@typescript-eslint/parser": [".ts", ".tsx"] |
| 62 | + }, |
| 63 | + "import/resolver": { |
| 64 | + "typescript": { |
| 65 | + "alwaysTryTypes": true |
| 66 | + } |
| 67 | + }, |
| 68 | + "react": { |
| 69 | + "version": "detect" |
| 70 | + } |
| 71 | + }, |
| 72 | + "env": { |
| 73 | + "es6": true, |
| 74 | + "browser": true, |
| 75 | + "node": true, |
| 76 | + "jest": true |
| 77 | + } |
| 78 | +} |
0 commit comments