-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,306 additions
and
2,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
// /* | ||
// * @Author: tackchen | ||
// * @Date: 2022-09-04 08:02:56 | ||
// * @Description: Coding something | ||
// */ | ||
// module.exports = { | ||
// parser: '@typescript-eslint/parser', | ||
// plugins: [ | ||
// 'eslint-plugin-react', | ||
// '@typescript-eslint', | ||
// ], | ||
// 'env': { | ||
// 'node': true, | ||
// }, | ||
// rules: { | ||
// 'no-var': 'error', | ||
// 'no-extend-native': 0, | ||
// 'no-new': 0, | ||
// 'no-useless-escape': 0, | ||
// 'no-useless-constructor': 0, | ||
// 'no-trailing-spaces': [ 'error', { 'skipBlankLines': true } ], | ||
// 'indent': [ 'error', 4, { | ||
// 'SwitchCase': 1 | ||
// } ], | ||
// 'space-infix-ops': [ 'error', { 'int32Hint': false } ], | ||
// 'space-before-function-paren': [ 'error', { | ||
// 'anonymous': 'always', | ||
// 'named': 'always', | ||
// 'asyncArrow': 'always' | ||
// } ], | ||
// 'semi': [ 'error', 'always' ], | ||
// 'comma-dangle': 0, | ||
// 'no-console': 0, | ||
// 'no-debugger': 0, | ||
// 'id-length': 0, | ||
// 'eol-last': 0, | ||
// 'object-curly-spacing': [ 'error', 'always' ], | ||
// 'array-bracket-spacing': [ 'error', 'always' ], | ||
// 'arrow-spacing': 'error', | ||
// 'no-multiple-empty-lines': 'error', | ||
// // 'no-unused-vars': 'error', | ||
// 'spaced-comment': 'error', | ||
// 'quotes': [ 'error', 'single', { 'allowTemplateLiterals': true } ], | ||
// 'no-unreachable': 'error', | ||
// 'keyword-spacing': 'error', | ||
// 'space-before-blocks': 'error', | ||
// 'semi-spacing': 'error', | ||
// 'comma-spacing': 'error', | ||
// 'key-spacing': 'error', | ||
// 'prefer-const': [ 'error', { | ||
// 'destructuring': 'any', | ||
// 'ignoreReadBeforeAssign': false | ||
// } ], | ||
// 'space-infix-ops': 2, | ||
// 'no-irregular-whitespace': 2, // 不规则的空白不允许 | ||
// 'no-trailing-spaces': 2, // 一行结束后面有空格就发出警告 | ||
// '@typescript-eslint/ban-ts-comment': 'off', | ||
// '@typescript-eslint/no-unused-vars': 'error', | ||
// } | ||
// }; | ||
/* | ||
* @Author: tackchen | ||
* @Date: 2022-09-04 08:02:56 | ||
* @Description: Coding something | ||
*/ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'eslint-plugin-react', | ||
'@typescript-eslint', | ||
], | ||
'env': { | ||
'node': true, | ||
}, | ||
rules: { | ||
'no-var': 'error', | ||
'no-extend-native': 0, | ||
'no-new': 0, | ||
'no-useless-escape': 0, | ||
'no-useless-constructor': 0, | ||
'no-trailing-spaces': [ 'error', { 'skipBlankLines': true } ], | ||
'indent': [ 'error', 4, { | ||
'SwitchCase': 1 | ||
} ], | ||
'space-infix-ops': [ 'error', { 'int32Hint': false } ], | ||
'space-before-function-paren': [ 'error', { | ||
'anonymous': 'always', | ||
'named': 'always', | ||
'asyncArrow': 'always' | ||
} ], | ||
'semi': [ 'error', 'always' ], | ||
'comma-dangle': 0, | ||
'no-console': 0, | ||
'no-debugger': 0, | ||
'id-length': 0, | ||
'eol-last': 0, | ||
'object-curly-spacing': [ 'error', 'always' ], | ||
'array-bracket-spacing': [ 'error', 'always' ], | ||
'arrow-spacing': 'error', | ||
'no-multiple-empty-lines': 'error', | ||
// 'no-unused-vars': 'error', | ||
'spaced-comment': 'error', | ||
'quotes': [ 'error', 'single', { 'allowTemplateLiterals': true } ], | ||
'no-unreachable': 'error', | ||
'keyword-spacing': 'error', | ||
'space-before-blocks': 'error', | ||
'semi-spacing': 'error', | ||
'comma-spacing': 'error', | ||
'key-spacing': 'error', | ||
'prefer-const': [ 'error', { | ||
'destructuring': 'any', | ||
'ignoreReadBeforeAssign': false | ||
} ], | ||
'space-infix-ops': 2, | ||
'no-irregular-whitespace': 2, // 不规则的空白不允许 | ||
'no-trailing-spaces': 2, // 一行结束后面有空格就发出警告 | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-unused-vars': 'error', | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.