保存进度!

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

View File

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