File tree 2 files changed +4
-1
lines changed
crates/oxc_linter/src/config
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ impl From<&str> for LintPlugins {
103
103
}
104
104
// deepscan for backwards compatibility. Those rules have been moved into oxc
105
105
"oxc" | "deepscan" => LintPlugins :: OXC ,
106
- "import" => LintPlugins :: IMPORT ,
106
+ // import-x has the same rules but better performance
107
+ "import" | "import-x" => LintPlugins :: IMPORT ,
107
108
"jsdoc" => LintPlugins :: JSDOC ,
108
109
"jest" => LintPlugins :: JEST ,
109
110
"vitest" => LintPlugins :: VITEST ,
Original file line number Diff line number Diff line change @@ -282,6 +282,8 @@ fn parse_rule_key(name: &str) -> (String, String) {
282
282
283
283
let ( oxlint_plugin_name, rule_name) = match plugin_name {
284
284
"@typescript-eslint" => ( "typescript" , rule_name) ,
285
+ // import-x has the same rules but better performance
286
+ "import-x" => ( "import" , rule_name) ,
285
287
"jsx-a11y" => ( "jsx_a11y" , rule_name) ,
286
288
"react-perf" => ( "react_perf" , rule_name) ,
287
289
// e.g. "@next/next/google-font-display"
You can’t perform that action at this time.
0 commit comments