保存进度!
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,7 @@ interface Cat
 | 
			
		||||
{
 | 
			
		||||
    name: string;
 | 
			
		||||
    purrs: boolean;
 | 
			
		||||
};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
interface Dog
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user