|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es2021": true, |
| 5 | + "node": true, |
| 6 | + "worker": true, |
| 7 | + "serviceworker": true |
| 8 | + }, |
| 9 | + "extends": [ |
| 10 | + "eslint:recommended", |
| 11 | + "plugin:@typescript-eslint/recommended", |
| 12 | + "preact" |
| 13 | + ], |
| 14 | + "parser": "@typescript-eslint/parser", |
| 15 | + "parserOptions": { |
| 16 | + "ecmaVersion": "latest", |
| 17 | + "sourceType": "module", |
| 18 | + "ecmaFeatures": { |
| 19 | + "jsx": true |
| 20 | + }, |
| 21 | + "project": "./tsconfig.json" |
| 22 | + }, |
| 23 | + "plugins": [ |
| 24 | + "@typescript-eslint" |
| 25 | + ], |
| 26 | + "rules": { |
| 27 | + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], |
| 28 | + "@typescript-eslint/no-explicit-any": "warn", |
| 29 | + "@typescript-eslint/no-empty-function": "warn", |
| 30 | + "@typescript-eslint/no-non-null-assertion": "warn", |
| 31 | + "@typescript-eslint/no-this-alias": "off", |
| 32 | + "@typescript-eslint/no-empty-object-type": "off", |
| 33 | + "react-hooks/rules-of-hooks": "off", |
| 34 | + "react-hooks/exhaustive-deps": "off", |
| 35 | + "no-undef": "off", |
| 36 | + "no-unused-vars": "off", |
| 37 | + "quote-props": "off", |
| 38 | + "no-duplicate-imports": "error", |
| 39 | + "no-case-declarations": "off", |
| 40 | + "no-undef-init": "warn", |
| 41 | + "prefer-const": "warn", |
| 42 | + "prefer-template": "warn", |
| 43 | + "no-else-return": "warn", |
| 44 | + "no-async-promise-executor": "off" |
| 45 | + }, |
| 46 | + "ignorePatterns": [ |
| 47 | + "dist/", |
| 48 | + "node_modules/", |
| 49 | + "target/", |
| 50 | + "pkg/", |
| 51 | + "*.config.ts", |
| 52 | + "*.config.js", |
| 53 | + "test-results/", |
| 54 | + "playwright-report/" |
| 55 | + ] |
| 56 | +} |
0 commit comments