@oxlint/migrate
Version:
Generates a `.oxlintrc.json` from a existing eslint flat config
41 lines (40 loc) • 874 B
JavaScript
const rulesPrefixesForPlugins = {
import: "import",
"import-x": "import",
jest: "jest",
jsdoc: "jsdoc",
"jsx-a11y": "jsx-a11y",
"@next/next": "nextjs",
node: "node",
n: "node",
promise: "promise",
react: "react",
"react-perf": "react",
"@typescript-eslint": "typescript",
unicorn: "unicorn",
vitest: "vitest"
};
const typescriptRulesExtendEslintRules = [
"class-methods-use-this",
"default-param-last",
"init-declarations",
"max-params",
"no-array-constructor",
"no-dupe-class-members",
"no-empty-function",
"no-invalid-this",
"no-loop-func",
"no-loss-of-precision",
"no-magic-numbers",
"no-redeclare",
"no-restricted-imports",
"no-shadow",
"no-unused-expressions",
"no-unused-vars",
"no-use-before-define",
"no-useless-constructor"
];
export {
rulesPrefixesForPlugins,
typescriptRulesExtendEslintRules
};