eslint-config-greenpie 7.7.0 → 7.8.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/package.json +5 -5
- package/rules/typescript.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-greenpie",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "GreenPie's ESLint config file",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Roman Nuritdinov (Ky6uk)",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@stylistic/eslint-plugin-js": "^1.5.3",
|
|
37
37
|
"@stylistic/eslint-plugin-plus": "^1.5.3",
|
|
38
38
|
"@stylistic/eslint-plugin-ts": "^1.5.3",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
40
|
-
"@typescript-eslint/parser": "^6.
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
40
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
41
41
|
"eslint": "^8.56.0",
|
|
42
|
-
"eslint-plugin-jest": "^27.6.
|
|
43
|
-
"eslint-plugin-vue": "^9.20.
|
|
42
|
+
"eslint-plugin-jest": "^27.6.3",
|
|
43
|
+
"eslint-plugin-vue": "^9.20.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"eslint": "^8.29.0"
|
package/rules/typescript.js
CHANGED
|
@@ -147,6 +147,7 @@ module.exports = {
|
|
|
147
147
|
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
148
148
|
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
149
149
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
150
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'error',
|
|
150
151
|
'@typescript-eslint/prefer-readonly': 'error',
|
|
151
152
|
|
|
152
153
|
/*
|
|
@@ -198,17 +199,17 @@ module.exports = {
|
|
|
198
199
|
'no-use-before-define': 'off',
|
|
199
200
|
'no-useless-constructor': 'off',
|
|
200
201
|
'prefer-destructuring': 'off',
|
|
202
|
+
'prefer-promise-reject-errors': 'off',
|
|
201
203
|
'require-await': 'off',
|
|
202
204
|
'return-await': 'off',
|
|
203
205
|
|
|
204
206
|
// Extension Rules
|
|
205
207
|
'@typescript-eslint/class-methods-use-this': 'error',
|
|
206
|
-
|
|
207
208
|
'@typescript-eslint/default-param-last': 'error',
|
|
208
209
|
'@typescript-eslint/dot-notation': 'error',
|
|
209
210
|
'@typescript-eslint/init-declarations': 'error',
|
|
210
|
-
|
|
211
211
|
'@typescript-eslint/no-array-constructor': 'error',
|
|
212
|
+
'@typescript-eslint/no-array-delete': 'error',
|
|
212
213
|
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
213
214
|
'@typescript-eslint/no-empty-function': 'error',
|
|
214
215
|
'@typescript-eslint/no-implied-eval': 'error',
|