Fix eslint ignores
This commit is contained in:
parent
74cb30b5ec
commit
d33d49baa2
1 changed files with 48 additions and 45 deletions
|
|
@ -2,20 +2,23 @@ import eslint from "@eslint/js";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
import unusedImports from "eslint-plugin-unused-imports";
|
import unusedImports from "eslint-plugin-unused-imports";
|
||||||
|
|
||||||
export default tseslint.config({
|
export default [
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
"sync-client/src/services/types.ts",
|
||||||
|
"**/dist/",
|
||||||
|
"**/*.mjs",
|
||||||
|
"**/*.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
...tseslint.config({
|
||||||
plugins: {
|
plugins: {
|
||||||
"unused-imports": unusedImports
|
"unused-imports": unusedImports
|
||||||
},
|
},
|
||||||
extends: [eslint.configs.recommended, tseslint.configs.all],
|
extends: [eslint.configs.recommended, tseslint.configs.all],
|
||||||
ignores: [
|
|
||||||
"**/types.ts",
|
|
||||||
"**/*.test.ts",
|
|
||||||
"**/dist/**/*",
|
|
||||||
"**/*.mjs",
|
|
||||||
"**/*.js"
|
|
||||||
],
|
|
||||||
rules: {
|
rules: {
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
|
"@typescript-eslint/restrict-template-expressions": "off",
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
"@typescript-eslint/no-unused-vars": "off",
|
||||||
"@typescript-eslint/no-floating-promises": "error",
|
"@typescript-eslint/no-floating-promises": "error",
|
||||||
"@typescript-eslint/parameter-properties": "off",
|
"@typescript-eslint/parameter-properties": "off",
|
||||||
|
|
@ -26,10 +29,9 @@ export default tseslint.config({
|
||||||
"@typescript-eslint/max-params": [
|
"@typescript-eslint/max-params": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
max: 5
|
max: 6
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"unused-imports/no-unused-imports": "error",
|
|
||||||
"@typescript-eslint/no-magic-numbers": "off",
|
"@typescript-eslint/no-magic-numbers": "off",
|
||||||
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
||||||
"@typescript-eslint/naming-convention": "off",
|
"@typescript-eslint/naming-convention": "off",
|
||||||
|
|
@ -49,4 +51,5 @@ export default tseslint.config({
|
||||||
tsconfigRootDir: import.meta.dirname
|
tsconfigRootDir: import.meta.dirname
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue