@@ -14,15 +14,19 @@ const compat = new FlatCompat({
|
||||
});
|
||||
|
||||
export default [
|
||||
// Apply ESLint recommended settings first
|
||||
...compat.extends().map((config) => ({
|
||||
...config,
|
||||
files: ["**/*.mjs", "**/*.js", "**/*.cjs"],
|
||||
})),
|
||||
|
||||
// Custom rules and plugin configuration
|
||||
{
|
||||
plugins: {
|
||||
"unused-imports": unusedImports,
|
||||
},
|
||||
files: ["**/*.mjs", "**/*.js", "**/*.cjs"],
|
||||
rules: {
|
||||
...config.rules,
|
||||
// ...other your custom rules
|
||||
// Custom rules here
|
||||
"no-console": "warn",
|
||||
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
@@ -35,8 +39,9 @@ export default [
|
||||
argsIgnorePattern: "^_",
|
||||
},
|
||||
],
|
||||
"prettier/prettier": "warn", // Integrate prettier
|
||||
},
|
||||
})),
|
||||
},
|
||||
prettierConfig, // Turns off all ESLint rules that have the potential to interfere with Prettier rules.
|
||||
eslintPluginPrettierRecommended,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user