保存进度!

This commit is contained in:
Kane 2023-03-31 23:58:41 +08:00
parent 88006b2db9
commit c04c6e8365
2 changed files with 43 additions and 41 deletions

View File

@ -37,16 +37,16 @@ module.exports = {
functions: "never", functions: "never",
},], // 数组和对象键值对最后一个逗号 },], // 数组和对象键值对最后一个逗号
"comma-style": ["error", "last",], // 逗号在行位 "comma-style": ["error", "last",], // 逗号在行位
"array-bracket-spacing": [ "error", "always", {
singleValue: false,
objectsInArrays: false,
arraysInArrays: false,
},],
"no-undef-init": "error", "no-undef-init": "error",
"no-invalid-this": "error", "no-invalid-this": "error",
"no-use-before-define": "error", "no-use-before-define": "error",
"no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作比如NaN、Infinity、undefined、eval、arguments等 "no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作比如NaN、Infinity、undefined、eval、arguments等
"comma-spacing": ["error", { before: false, after: true, },], "comma-spacing": ["error", { before: false, after: true, },],
"array-bracket-spacing": ["error", "never", {
singleValue: false,
objectsInArrays: false,
arraysInArrays: false,
},],
"brace-style": ["error", "allman", { allowSingleLine: true, },], "brace-style": ["error", "allman", { allowSingleLine: true, },],
"prefer-const": "warn", "prefer-const": "warn",
"space-before-function-paren": ["error", { "space-before-function-paren": ["error", {
@ -141,8 +141,8 @@ module.exports = {
}, },
plugins: ["@typescript-eslint",], plugins: ["@typescript-eslint",],
extends: [ extends: [
"standard-with-typescript",
"eslint:recommended", "eslint:recommended",
"standard-with-typescript",
"plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
], ],
@ -172,6 +172,8 @@ module.exports = {
allowString: false, allowString: false,
},], },],
"comma-style": ["error", "last",], // 逗号在行位 "comma-style": ["error", "last",], // 逗号在行位
"comma-spacing": ["off", { before: false, after: true, },],
"@typescript-eslint/comma-spacing": ["error", { before: false, after: true, },], // 使用eslint的不用ts的
"array-bracket-spacing": ["error", "always", { "array-bracket-spacing": ["error", "always", {
singleValue: false, singleValue: false,
objectsInArrays: false, objectsInArrays: false,

View File

@ -14,7 +14,7 @@ interface Cat
{ {
name: string; name: string;
purrs: boolean; purrs: boolean;
}; }
interface Dog interface Dog
{ {