-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
83 lines (83 loc) · 2.6 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: [
'@typescript-eslint',
'eslint-plugin-import',
'html'
],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 6, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
'no-trailing-spaces': ['error', { 'skipBlankLines': false }],
'radix': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
'import/order': ['error', {}],
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'max-classes-per-file': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'arrow-body-style': 'off',
'arrow-parens': 0,
'no-useless-constructor': 'warn',
'curly': ['error', 'all'],
'object-curly-newline': ['off', {
'ObjectExpression': 'always',
'ObjectPattern': { 'multiline': false },
'ImportDeclaration': 'never',
'ExportDeclaration': {
'multiline': false,
'minProperties': 99
}
}],
'indent': ['error', 2, {
'SwitchCase': 1
}],
'max-len': 0,
'import/no-unresolved': 0,
'no-extra-parens': 'off',
'no-param-reassign': 'warn',
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-extra-parens': [
'error'
],
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': [
'error'
],
'@typescript-eslint/no-useless-constructor': 'warn',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'warn',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/prefer-regexp-exec': 'error',
'@typescript-eslint/unified-signatures': 'error',
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/no-unused-vars': [
'error',
{
'argsIgnorePattern': '^_'
}
],
'@typescript-eslint/member-ordering': [
'error'
],
},
settings: {
},
};