Hello Typescript!

This commit is contained in:
undefined committed 2020-07-07 19:58:21 +08:00
1 parent c9b6412527
commit ba03d7a7bf
98 files changed
+3186 -2616

No files matched your search

+26 -13
View File
@@ -1,7 +1,6 @@
module.exports = {
root: true,
env: {
commonjs: true,
node: true,
},
extends: [
@@ -11,23 +10,37 @@ module.exports = {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-unused-vars': 'error',
'global-require': 'off',
'guard-for-in': 'off',
'implicit-arrow-linebreak': 'off',
'import/extensions': 'off',
'import/prefer-default-export': 'off',
indent: ['warn', 4],
'no-plusplus': 'off',
'max-classes-per-file': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'no-extend-native': 'off',
'no-underscore-dangle': 'off',
'no-restricted-syntax': 'off',
'max-classes-per-file': 'off',
'guard-for-in': 'off',
'no-param-reassign': 'off',
'global-require': 'off',
'no-nested-ternary': 'off',
'no-multi-assign': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-return-await': 'off',
'no-bitwise': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': 'off',
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
};