|
60 | 60 | "radix": "error", |
61 | 61 |
|
62 | 62 | "@typescript-eslint/no-explicit-any": "error", |
| 63 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 64 | + "prefer-const": "error", |
| 65 | + "import/no-nodejs-modules": "error", |
| 66 | + "react/no-this-in-sfc": "error", |
| 67 | + "@typescript-eslint/no-invalid-void-type": "error", |
| 68 | + "unicorn/relative-url-style": "error", |
| 69 | + |
| 70 | + // suspicious rules (cherry-picked) |
| 71 | + "no-extra-bind": "error", |
| 72 | + "no-unneeded-ternary": "error", |
| 73 | + "no-useless-concat": "error", |
| 74 | + "no-useless-constructor": "error", |
| 75 | + "import/no-absolute-path": "error", |
| 76 | + "import/no-self-import": "error", |
| 77 | + "@typescript-eslint/no-unnecessary-type-assertion": "error", |
| 78 | + "@typescript-eslint/no-unnecessary-type-constraint": "error", |
| 79 | + "@typescript-eslint/no-unnecessary-template-expression": "error", |
| 80 | + "@typescript-eslint/no-confusing-non-null-assertion": "error", |
63 | 81 |
|
64 | 82 | // TypeScript rules (currently disabled but available) |
65 | 83 | "@typescript-eslint/no-floating-promises": "off", |
|
80 | 98 | "import/no-default-export": "off" |
81 | 99 | } |
82 | 100 | }, |
| 101 | + { |
| 102 | + "files": ["**/*.spec.ts", "**/*.config.ts", "**/*.config.mjs", "tools/**/*"], |
| 103 | + "rules": { |
| 104 | + "import/no-nodejs-modules": "off" |
| 105 | + } |
| 106 | + }, |
83 | 107 | { |
84 | 108 | // catch unawaited Playwright calls in e2e tests |
85 | 109 | "files": ["test/e2e/**/*.ts"], |
|
0 commit comments