Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `@typescript-eslint/eslint-plugin-tslint` does not support ESLint v9, and out of the remaining TSLint rules only a few rules do not have a replacement. The following remaining rules were removed: - `encoding` - UTF-8 is configured in `tsconfig.json` (the `charset` option). - `import-spacing` - covered by the `@stylistic/ts/keyword-spacing` and `@stylistic/ts/object-curly-spacing` rules. - `no-default-import` - irrelevant, as it requires a list of modules. - `no-inferred-empty-object-type` - the rule is not irrelevant since TS 3.4. - `no-mergeable-namespace` - irrelevant, as `@typescript-eslint/no-namespace` is enabled and namespaces are not allowed. - `no-tautology-expression` - covered by the `no-self-compare`, `sonarjs/ no-identical-expressions`, and `no-constant-condition` rules. - `no-unnecessary-callback-wrapper` - does not have a replacement. Without this rule the following code will not be flagged: ``` input.map(x => same(x)) ``` - `prefer-conditional-expression` - the rule is covered by the `unicorn/prefer-ternary` rule, if needed, but `unicorn/prefer-ternary` is disabled by default. - `prefer-switch` - covered by the `unicorn/prefer-switch` rule. - `prefer-while` - covered by the `sonarjs/prefer-while` rule. - `return-undefined` - partially covered by the `no-useless-return` rule. - `static-this` - does not have a replacement. Without this rule the following code will not be flagged: ``` public static example() { return this.name; } ``` - `strict-comparisons` - does not have a replacement. Without this rule the following code will not be flagged: ``` const o1 = {}; const o2 = {}; if (o1 > o2) { /*...*/ } ``` - `strict-type-predicates` - does not have a replacement, but has already been disabled. - `switch-final-break` - does not have a replacement, due to `@typescript-eslint/switch-exhaustiveness-check`, the final statement in a `switch` is always `default`, so the issue is non-critical. Without this rule the following code will not be flagged: ``` switch (a) { case 'a': r = 1; break; default: r = 2; } ```
- Loading branch information