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