mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
docs(linter): update fix metadata for tsgolint rules that already provide fixes (#27408)
updates fix metadata for tsgolint rules that provide fixes\suggestions: - typescript/no-unnecessary-boolean-literal-compare - [fix](https://github.com/oxc-project/tsgolint/blob/24b18b48c47b7ae0d84e21a0e974575026e27908/internal/rules/no_unnecessary_boolean_literal_compare/no_unnecessary_boolean_literal_compare.go#L191) - typescript/no-unnecessary-condition - [conditional_suggestion](https://github.com/oxc-project/tsgolint/blob/24b18b48c47b7ae0d84e21a0e974575026e27908/internal/rules/no_unnecessary_condition/no_unnecessary_condition.go#L1397) - typescript/consistent-type-exports - [fix](https://github.com/oxc-project/tsgolint/blob/24b18b48c47b7ae0d84e21a0e974575026e27908/internal/rules/consistent_type_exports/consistent_type_exports.go#L193) - typescript/prefer-readonly - [fix](https://github.com/oxc-project/tsgolint/blob/24b18b48c47b7ae0d84e21a0e974575026e27908/internal/rules/prefer_readonly/prefer_readonly.go#L464) - typescript/dot-notation - [conditional_fix](https://github.com/oxc-project/tsgolint/blob/24b18b48c47b7ae0d84e21a0e974575026e27908/internal/rules/dot_notation/dot_notation.go#L213) - typescript/prefer-string-starts-ends-with - [conditional_fix](https://github.com/oxc-project/tsgolint/blob/24b18b48c47b7ae0d84e21a0e974575026e27908/internal/rules/prefer_string_starts_ends_with/prefer_string_starts_ends_with.go#L531)
This commit is contained in:
1 parent
f50257e4ac
commit
848a4e7173
6 files changed
+6
-2
No files matched your search
@@ -45,6 +45,7 @@ declare_oxc_lint!(
|
||||
ConsistentTypeExports(tsgolint),
|
||||
typescript,
|
||||
style,
|
||||
fix,
|
||||
config = ConsistentTypeExportsConfig,
|
||||
version = "0.0.8",
|
||||
short_description = "Enforce using `export type` for exports that are only used as types.",
|
||||
|
||||
@@ -64,6 +64,7 @@ declare_oxc_lint!(
|
||||
DotNotation(tsgolint),
|
||||
typescript,
|
||||
style,
|
||||
conditional_fix,
|
||||
config = DotNotationConfig,
|
||||
version = "1.49.0",
|
||||
short_description = "Enforce dot notation whenever property access can be written safely as `obj.prop`.",
|
||||
|
||||
@@ -82,7 +82,7 @@ declare_oxc_lint!(
|
||||
NoUnnecessaryBooleanLiteralCompare(tsgolint),
|
||||
typescript,
|
||||
suspicious,
|
||||
pending,
|
||||
fix,
|
||||
config = NoUnnecessaryBooleanLiteralCompareConfig,
|
||||
version = "1.12.0",
|
||||
short_description = "This rule disallows unnecessary equality comparisons with boolean literals.",
|
||||
|
||||
@@ -112,7 +112,7 @@ declare_oxc_lint!(
|
||||
NoUnnecessaryCondition(tsgolint),
|
||||
typescript,
|
||||
nursery, // TODO(camc314): move to correctness
|
||||
pending,
|
||||
conditional_suggestion,
|
||||
config = NoUnnecessaryConditionConfig,
|
||||
version = "1.48.0",
|
||||
short_description = "Disallow conditions that are always truthy, always falsy, or always nullish based on TypeScript's type information.",
|
||||
|
||||
@@ -50,6 +50,7 @@ declare_oxc_lint!(
|
||||
PreferReadonly(tsgolint),
|
||||
typescript,
|
||||
style,
|
||||
fix,
|
||||
config = PreferReadonlyConfig,
|
||||
version = "0.0.8",
|
||||
short_description = "Require class members that are never reassigned to be marked `readonly`.",
|
||||
|
||||
@@ -50,6 +50,7 @@ declare_oxc_lint!(
|
||||
PreferStringStartsEndsWith(tsgolint),
|
||||
typescript,
|
||||
style,
|
||||
conditional_fix,
|
||||
config = PreferStringStartsEndsWithConfig,
|
||||
version = "0.0.8",
|
||||
short_description = "Prefer `startsWith` and `endsWith` over manual string boundary checks.",
|
||||
|
||||
Reference in new issue
Block a user