保存进度!
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = {
|
||||
},
|
||||
extends:["eslint:recommended",],
|
||||
rules:{
|
||||
indent: ["warn", 4,],
|
||||
// indent: ["warn", 4,],
|
||||
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
||||
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
@@ -81,7 +81,7 @@ module.exports = {
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
],
|
||||
rules: {
|
||||
indent: ["warn", 4,],
|
||||
// indent: ["warn", 4,],
|
||||
"no-trailing-spaces": ["error", {"ignoreComments": true,},],
|
||||
// 圆括号中的空格,为空不加空格,紧跟花括号、方括号、圆括号时也不加入空格
|
||||
"space-in-parens": ["error", "always", { exceptions: ["{}", "[]", "()", "empty",], },],
|
||||
@@ -121,7 +121,7 @@ module.exports = {
|
||||
},],
|
||||
// typescript
|
||||
// "@typescript-eslint/indent": ["warn", 4,],
|
||||
"@stylistic/indent": ["warn", 4,],
|
||||
"@stylistic/indent": ["warn", 4, { "SwitchCase": 1, },],
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
// "@typescript-eslint/no-unsafe-argument": "warn",
|
||||
"@typescript-eslint/no-extra-semi": "off",
|
||||
@@ -173,7 +173,7 @@ module.exports = {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
// "@typescript-eslint/no-unsafe-argument": "warn",
|
||||
// "@typescript-eslint/indent": ["error", 4,],
|
||||
"@stylistic/indent": ["warn", 4,],
|
||||
"@stylistic/indent": ["warn", 4, { "SwitchCase": 1, },],
|
||||
"@typescript-eslint/no-extra-semi": "off",
|
||||
"@typescript-eslint/no-inferrable-types": "off",
|
||||
"@typescript-eslint/no-unused-vars": "warn",
|
||||
|
||||
Reference in New Issue
Block a user