@@ -16,9 +16,12 @@ const compat = new FlatCompat({
|
||||
allConfig: js.configs.all
|
||||
})
|
||||
|
||||
export default [{
|
||||
ignores: ["**/node_modules", "**/dist"],
|
||||
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {
|
||||
export default [
|
||||
{
|
||||
ignores: ["**/node_modules", "**/dist"]
|
||||
},
|
||||
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
|
||||
{
|
||||
plugins: {
|
||||
"@typescript-eslint": typescriptEslint,
|
||||
},
|
||||
@@ -79,8 +82,14 @@ export default [{
|
||||
}],
|
||||
"@typescript-eslint/no-empty-object-type": "off",
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
"@typescript-eslint/ban-ts-comment": ["error", {
|
||||
"ts-expect-error": "allow-with-description",
|
||||
"ts-ignore": "allow-with-description",
|
||||
"ts-nocheck": "allow-with-description",
|
||||
"ts-check": "allow-with-description",
|
||||
}],
|
||||
},
|
||||
}, {
|
||||
}, {
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
@@ -89,4 +98,5 @@ export default [{
|
||||
ecmaVersion: 5,
|
||||
sourceType: "commonjs",
|
||||
},
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user