fix: eslint config and errors
This commit is contained in:
parent
a72d095e60
commit
b8ee986636
72 changed files with 153 additions and 181 deletions
|
|
@ -16,6 +16,7 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
rules: {
|
||||
"no-useless-escape": "off",
|
||||
"prefer-const": "error",
|
||||
"no-irregular-whitespace": "error",
|
||||
"no-trailing-spaces": "error",
|
||||
|
|
@ -36,6 +37,7 @@ module.exports = {
|
|||
{
|
||||
selector: ["function", "variable"],
|
||||
format: ["camelCase", "snake_case", "UPPER_CASE", "PascalCase"],
|
||||
leadingUnderscore: "allow",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue