@alexlit/config-eslint 20.0.1 → 20.2.1
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 +4 -4
- package/plugins/regexp.js +4 -0
- package/plugins/typescript.js +6 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [20.2.1](https://github.com/alex-lit/config-eslint/compare/v20.2.0...v20.2.1) (2021-09-19)
|
|
2
|
+
|
|
3
|
+
# [20.2.0](https://github.com/alex-lit/config-eslint/compare/v20.1.1...v20.2.0) (2021-09-18)
|
|
4
|
+
|
|
5
|
+
## [20.1.1](https://github.com/alex-lit/config-eslint/compare/v20.1.0...v20.1.1) (2021-09-15)
|
|
6
|
+
|
|
7
|
+
# [20.1.0](https://github.com/alex-lit/config-eslint/compare/v20.0.1...v20.1.0) (2021-09-15)
|
|
8
|
+
|
|
1
9
|
## [20.0.1](https://github.com/alex-lit/config-eslint/compare/v20.0.0...v20.0.1) (2021-09-14)
|
|
2
10
|
|
|
3
11
|
# [20.0.0](https://github.com/alex-lit/config-eslint/compare/v19.1.0...v20.0.0) (2021-09-13)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"eslint-plugin-ext": "^0.1.0",
|
|
54
54
|
"eslint-plugin-filenames": "^1.3.2",
|
|
55
55
|
"eslint-plugin-import": "^2.24.2",
|
|
56
|
-
"eslint-plugin-jest": "^24.4.
|
|
56
|
+
"eslint-plugin-jest": "^24.4.2",
|
|
57
57
|
"eslint-plugin-jest-formatting": "^3.0.0",
|
|
58
58
|
"eslint-plugin-jsdoc": "^36.1.0",
|
|
59
59
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"eslint-plugin-nuxt": "^2.0.0",
|
|
69
69
|
"eslint-plugin-prettier": "^4.0.0",
|
|
70
70
|
"eslint-plugin-promise": "^5.1.0",
|
|
71
|
-
"eslint-plugin-react": "^7.25.
|
|
71
|
+
"eslint-plugin-react": "^7.25.2",
|
|
72
72
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
73
73
|
"eslint-plugin-regexp": "^1.1.0",
|
|
74
74
|
"eslint-plugin-security": "^1.4.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"eslint-plugin-typescript-sort-keys": "^1.8.0",
|
|
84
84
|
"eslint-plugin-unicorn": "^36.0.0",
|
|
85
85
|
"eslint-plugin-unused-imports": "^1.1.4",
|
|
86
|
-
"eslint-plugin-vue": "^7.
|
|
86
|
+
"eslint-plugin-vue": "^7.18.0",
|
|
87
87
|
"eslint-plugin-vuejs-accessibility": "^0.7.1",
|
|
88
88
|
"eslint-plugin-vuetify": "^1.0.1",
|
|
89
89
|
"eslint-plugin-write-good-comments": "^0.1.3"
|
package/plugins/regexp.js
CHANGED
package/plugins/typescript.js
CHANGED
|
@@ -120,9 +120,7 @@ module.exports = {
|
|
|
120
120
|
'@typescript-eslint/naming-convention': [
|
|
121
121
|
'error',
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
* ESLint's camelcase conventions
|
|
125
|
-
*/
|
|
123
|
+
// ESLint's camelcase conventions
|
|
126
124
|
{
|
|
127
125
|
format: ['camelCase'],
|
|
128
126
|
selector: 'default',
|
|
@@ -147,10 +145,6 @@ module.exports = {
|
|
|
147
145
|
selector: 'typeLike',
|
|
148
146
|
},
|
|
149
147
|
|
|
150
|
-
/**
|
|
151
|
-
* Custom
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
148
|
// interface
|
|
155
149
|
{
|
|
156
150
|
custom: {
|
|
@@ -164,32 +158,32 @@ module.exports = {
|
|
|
164
158
|
|
|
165
159
|
// objectLiteralProperty
|
|
166
160
|
{
|
|
167
|
-
format: ['camelCase', '
|
|
161
|
+
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
|
|
168
162
|
leadingUnderscore: 'allow',
|
|
169
163
|
selector: 'objectLiteralProperty',
|
|
170
164
|
},
|
|
171
165
|
|
|
172
166
|
// objectLiteralMethod
|
|
173
167
|
{
|
|
174
|
-
format: ['camelCase', '
|
|
168
|
+
format: ['camelCase', 'UPPER_CASE'],
|
|
175
169
|
selector: 'objectLiteralMethod',
|
|
176
170
|
},
|
|
177
171
|
|
|
178
172
|
// parameter
|
|
179
173
|
{
|
|
180
|
-
format: ['camelCase'
|
|
174
|
+
format: ['camelCase'],
|
|
181
175
|
modifiers: ['destructured'],
|
|
182
176
|
selector: 'parameter',
|
|
183
177
|
},
|
|
184
178
|
|
|
185
179
|
// variable
|
|
186
180
|
{
|
|
187
|
-
format: ['camelCase', '
|
|
181
|
+
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
|
|
188
182
|
modifiers: ['const'],
|
|
189
183
|
selector: 'variable',
|
|
190
184
|
},
|
|
191
185
|
{
|
|
192
|
-
format: ['camelCase'
|
|
186
|
+
format: ['camelCase'],
|
|
193
187
|
leadingUnderscore: 'allow',
|
|
194
188
|
modifiers: ['destructured'],
|
|
195
189
|
selector: 'variable',
|
|
@@ -206,7 +200,6 @@ module.exports = {
|
|
|
206
200
|
],
|
|
207
201
|
|
|
208
202
|
'@typescript-eslint/no-shadow': ['error'],
|
|
209
|
-
|
|
210
203
|
'@typescript-eslint/no-unused-vars': 'off', // delegate to eslint-plugin-unused-imports
|
|
211
204
|
'@typescript-eslint/no-use-before-define': ['warn'],
|
|
212
205
|
'@typescript-eslint/no-var-requires': 'off',
|