|
| 1 | +{ |
| 2 | + "plugins": ["import", "prettier"], |
| 3 | + "extends": [ |
| 4 | + "eslint:recommended", |
| 5 | + "plugin:@typescript-eslint/recommended", |
| 6 | + "airbnb-typescript/base", |
| 7 | + "prettier" |
| 8 | + ], |
| 9 | + "ignorePatterns": ["__fixtures__", "dist", "output", "jest.config.ts"], |
| 10 | + "parserOptions": { |
| 11 | + "project": "./tsconfig.json" |
| 12 | + }, |
| 13 | + "rules": { |
| 14 | + "@typescript-eslint/await-thenable": "warn", |
| 15 | + "@typescript-eslint/no-floating-promises": [ |
| 16 | + "warn", |
| 17 | + { "ignoreIIFE": true, "ignoreVoid": false } |
| 18 | + ], |
| 19 | + "@typescript-eslint/no-unused-vars": [ |
| 20 | + "warn", |
| 21 | + { "argsIgnorePattern": "^_" } |
| 22 | + ], |
| 23 | + "import/order": "warn", |
| 24 | + "import/no-extraneous-dependencies": [ |
| 25 | + "error", |
| 26 | + { |
| 27 | + "devDependencies": true, |
| 28 | + "optionalDependencies": true, |
| 29 | + "peerDependencies": true |
| 30 | + } |
| 31 | + ], |
| 32 | + "import/prefer-default-export": "off", |
| 33 | + "no-console": ["warn"], |
| 34 | + "no-plusplus": "off", |
| 35 | + "prettier/prettier": "warn", |
| 36 | + "radix": ["error", "as-needed"] |
| 37 | + }, |
| 38 | + "overrides": [ |
| 39 | + { |
| 40 | + "files": ["*.spec.ts"], |
| 41 | + "rules": { |
| 42 | + "@typescript-eslint/no-explicit-any": "off", |
| 43 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 44 | + "@typescript-eslint/no-unused-expressions": "off" |
| 45 | + } |
| 46 | + } |
| 47 | + ] |
| 48 | +} |
0 commit comments