eslint-config-tamia 8.0.0 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rules/errors.js +0 -2
- package/rules/typescript.js +38 -50
package/package.json
CHANGED
package/rules/errors.js
CHANGED
|
@@ -4,8 +4,6 @@ module.exports = {
|
|
|
4
4
|
// Enforce “for” loop update clause moving the counter
|
|
5
5
|
// in the right direction
|
|
6
6
|
'for-direction': 2,
|
|
7
|
-
// Disallow await inside of loops
|
|
8
|
-
'no-await-in-loop': 2,
|
|
9
7
|
// Disallow use of Object.prototypes builtins directly
|
|
10
8
|
'no-prototype-builtins': 2,
|
|
11
9
|
},
|
package/rules/typescript.js
CHANGED
|
@@ -5,46 +5,34 @@ module.exports = {
|
|
|
5
5
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
6
6
|
'@typescript-eslint/array-type': 'error',
|
|
7
7
|
'@typescript-eslint/ban-types': 'error',
|
|
8
|
-
'@typescript-eslint/naming-convention': [
|
|
8
|
+
'@typescript-eslint/naming-convention': [
|
|
9
|
+
'error',
|
|
9
10
|
{
|
|
10
11
|
selector: 'default',
|
|
11
|
-
format: ['camelCase']
|
|
12
|
+
format: ['camelCase'],
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
15
|
selector: 'variableLike',
|
|
15
|
-
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
|
|
16
|
+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
19
|
selector: 'property',
|
|
19
|
-
format:
|
|
20
|
-
leadingUnderscore: 'allow',
|
|
20
|
+
format: null,
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
selector: 'typeLike',
|
|
24
|
-
format: ['PascalCase']
|
|
24
|
+
format: ['PascalCase'],
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
selector: 'enumMember',
|
|
28
28
|
format: ['PascalCase', 'UPPER_CASE'],
|
|
29
29
|
},
|
|
30
|
-
{
|
|
31
|
-
// React: dangerouslySetInnerHTML={{__html: '<div />'}}
|
|
32
|
-
selector: 'property',
|
|
33
|
-
filter: '^__html$',
|
|
34
|
-
format: null,
|
|
35
|
-
},
|
|
36
30
|
{
|
|
37
31
|
// Unused function argument
|
|
38
32
|
selector: 'variableLike',
|
|
39
33
|
filter: '^_$',
|
|
40
34
|
format: null,
|
|
41
35
|
},
|
|
42
|
-
{
|
|
43
|
-
// Quoted property names
|
|
44
|
-
selector: 'property',
|
|
45
|
-
filter: '[^a-zA-Z0-9_]',
|
|
46
|
-
format: null,
|
|
47
|
-
},
|
|
48
36
|
],
|
|
49
37
|
'@typescript-eslint/explicit-member-accessibility': 'error',
|
|
50
38
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
@@ -64,38 +52,38 @@ module.exports = {
|
|
|
64
52
|
},
|
|
65
53
|
overrides: [
|
|
66
54
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
55
|
+
files: ['*.ts', '*.tsx'],
|
|
56
|
+
rules: {
|
|
57
|
+
// Disable generic rules that conflict with TypeScript
|
|
58
|
+
camelcase: 'off',
|
|
59
|
+
'no-array-constructor': 'off',
|
|
60
|
+
'no-unused-vars': 'off',
|
|
61
|
+
'no-unused-expressions': 'off',
|
|
62
|
+
'no-use-before-define': 'off',
|
|
75
63
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
64
|
+
//Checked by Typescript - ts(2378)
|
|
65
|
+
'getter-return': 'off',
|
|
66
|
+
// Checked by Typescript - ts(2300)
|
|
67
|
+
'no-dupe-args': 'off',
|
|
68
|
+
// Checked by Typescript - ts(1117)
|
|
69
|
+
'no-dupe-keys': 'off',
|
|
70
|
+
// Checked by Typescript - ts(7027)
|
|
71
|
+
'no-unreachable': 'off',
|
|
72
|
+
// Checked by Typescript - ts(2367)
|
|
73
|
+
'valid-typeof': 'off',
|
|
74
|
+
// Checked by Typescript - ts(2588)
|
|
75
|
+
'no-const-assign': 'off',
|
|
76
|
+
// Checked by Typescript - ts(2588)
|
|
77
|
+
'no-new-symbol': 'off',
|
|
78
|
+
// Checked by Typescript - ts(2376)
|
|
79
|
+
'no-this-before-super': 'off',
|
|
80
|
+
// This is checked by Typescript using the option `strictNullChecks`.
|
|
81
|
+
'no-undef': 'off',
|
|
82
|
+
// This is already checked by Typescript.
|
|
83
|
+
'no-dupe-class-members': 'off',
|
|
84
|
+
// This is already checked by Typescript.
|
|
85
|
+
'no-redeclare': 'off',
|
|
86
|
+
},
|
|
99
87
|
},
|
|
100
|
-
|
|
88
|
+
],
|
|
101
89
|
};
|