Wire up stylistic to ESLint
This commit is contained in:
parent
78bfd16f25
commit
d96e34da79
3 changed files with 23 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import globals from "globals";
|
||||
import js from "@eslint/js";
|
||||
import stylisticJs from "@stylistic/eslint-plugin-js";
|
||||
|
||||
export default [
|
||||
{
|
||||
|
@ -13,6 +14,7 @@ export default [
|
|||
"process": "readonly",
|
||||
},
|
||||
},
|
||||
plugins: { "@stylistic/js": stylisticJs },
|
||||
rules: {
|
||||
"no-case-declarations": "off",
|
||||
"no-unused-vars": ["error", {
|
||||
|
@ -21,6 +23,8 @@ export default [
|
|||
destructuredArrayIgnorePattern: "^_",
|
||||
}],
|
||||
"no-var": "error",
|
||||
"@stylistic/js/indent": ["warn", "tab"],
|
||||
"@stylistic/js/quotes": ["warn", "double"],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue