Add lint-staged
This commit is contained in:
parent
28d2b2d38b
commit
2375765503
15 changed files with 511 additions and 211 deletions
|
|
@ -11,14 +11,33 @@ export default defineConfig([
|
|||
"@stylistic": stylistic
|
||||
},
|
||||
extends: ["js/recommended"],
|
||||
languageOptions: { globals: globals.browser },
|
||||
languageOptions: {
|
||||
globals: globals.browser,
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"@stylistic/max-len": ["error", { code: 80, tabWidth: 2 }],
|
||||
}
|
||||
},
|
||||
},
|
||||
tseslint.configs.recommended,
|
||||
tseslint.configs.stylisticTypeChecked,
|
||||
stylistic.configs.customize({
|
||||
quotes: "double",
|
||||
semi: true,
|
||||
})
|
||||
}),
|
||||
{
|
||||
rules: {
|
||||
"@typescript-eslint/no-unused-vars": ["error", {
|
||||
"args": "all",
|
||||
"argsIgnorePattern": "^_",
|
||||
"caughtErrors": "all",
|
||||
"caughtErrorsIgnorePattern": "^_",
|
||||
"destructuredArrayIgnorePattern": "^_",
|
||||
"varsIgnorePattern": "^_",
|
||||
"ignoreRestSiblings": true
|
||||
}],
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue