@alexlit/config-eslint 41.1.3 → 41.3.0
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/CHANGELOG.md +8 -0
- package/package.json +9 -9
- package/plugins/typescript/english-verbs.const.js +1025 -1014
- package/plugins/typescript/index.js +2 -15
|
@@ -46,7 +46,6 @@ module.exports = {
|
|
|
46
46
|
|
|
47
47
|
'@typescript-eslint/naming-convention': [
|
|
48
48
|
'error',
|
|
49
|
-
|
|
50
49
|
{
|
|
51
50
|
format: ['camelCase'],
|
|
52
51
|
selector: 'default',
|
|
@@ -70,7 +69,6 @@ module.exports = {
|
|
|
70
69
|
format: ['PascalCase'],
|
|
71
70
|
selector: ['typeLike', 'enumMember'],
|
|
72
71
|
},
|
|
73
|
-
|
|
74
72
|
{
|
|
75
73
|
custom: {
|
|
76
74
|
match: false,
|
|
@@ -80,24 +78,20 @@ module.exports = {
|
|
|
80
78
|
format: ['PascalCase'],
|
|
81
79
|
selector: 'interface',
|
|
82
80
|
},
|
|
83
|
-
|
|
84
81
|
{
|
|
85
82
|
format: ['camelCase', 'UPPER_CASE', 'PascalCase', 'snake_case'],
|
|
86
83
|
leadingUnderscore: 'allow',
|
|
87
84
|
selector: 'objectLiteralProperty',
|
|
88
85
|
},
|
|
89
|
-
|
|
90
86
|
{
|
|
91
87
|
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
|
|
92
88
|
selector: 'objectLiteralMethod',
|
|
93
89
|
},
|
|
94
|
-
|
|
95
90
|
{
|
|
96
91
|
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
97
92
|
modifiers: ['destructured'],
|
|
98
93
|
selector: 'parameter',
|
|
99
94
|
},
|
|
100
|
-
|
|
101
95
|
{
|
|
102
96
|
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
|
|
103
97
|
modifiers: ['const'],
|
|
@@ -109,7 +103,6 @@ module.exports = {
|
|
|
109
103
|
modifiers: ['destructured'],
|
|
110
104
|
selector: 'variable',
|
|
111
105
|
},
|
|
112
|
-
|
|
113
106
|
{
|
|
114
107
|
filter: {
|
|
115
108
|
match: false,
|
|
@@ -122,22 +115,16 @@ module.exports = {
|
|
|
122
115
|
|
|
123
116
|
prefix: BOOLEAN_PREFIXES,
|
|
124
117
|
|
|
125
|
-
selector: ['variable', 'parameter', 'property', 'accessor'],
|
|
118
|
+
selector: ['variable', 'parameter', /* 'property', */ 'accessor'],
|
|
126
119
|
|
|
127
120
|
types: ['boolean'],
|
|
128
121
|
},
|
|
129
|
-
|
|
130
122
|
{
|
|
131
123
|
format: ['PascalCase'],
|
|
132
124
|
|
|
133
125
|
leadingUnderscore: 'allow',
|
|
134
126
|
|
|
135
|
-
prefix: [
|
|
136
|
-
...ENGLISH_VERBS,
|
|
137
|
-
...ENGLISH_VERBS.map((verb) => `re${verb}`),
|
|
138
|
-
|
|
139
|
-
'on',
|
|
140
|
-
],
|
|
127
|
+
prefix: [...ENGLISH_VERBS, 'on'],
|
|
141
128
|
|
|
142
129
|
selector: [
|
|
143
130
|
'function',
|