@zendeskgarden/eslint-config 33.0.0 → 34.0.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 +8 -8
- package/plugins/typescript.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"format": "prettier-package-json --write",
|
|
19
|
-
"lint": "eslint index.js plugins/*.js rules/*.js",
|
|
19
|
+
"lint": "eslint index.js plugins/*.js rules/*.js --max-warnings 0",
|
|
20
20
|
"prepare": "husky install",
|
|
21
21
|
"tag": "[ `git rev-parse --abbrev-ref HEAD` = 'main' ] && standard-version --no-verify",
|
|
22
22
|
"test": "yarn lint && yarn format && git diff --quiet"
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"eslint-plugin-node": "^11.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "7.22.
|
|
31
|
-
"@babel/eslint-parser": "7.22.
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "
|
|
33
|
-
"@typescript-eslint/parser": "
|
|
34
|
-
"eslint": "8.
|
|
35
|
-
"eslint-plugin-jest": "27.2.
|
|
30
|
+
"@babel/core": "7.22.9",
|
|
31
|
+
"@babel/eslint-parser": "7.22.9",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "6.1.0",
|
|
33
|
+
"@typescript-eslint/parser": "6.1.0",
|
|
34
|
+
"eslint": "8.45.0",
|
|
35
|
+
"eslint-plugin-jest": "27.2.3",
|
|
36
36
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
37
37
|
"eslint-plugin-node": "11.1.0",
|
|
38
38
|
"eslint-plugin-notice": "0.9.10",
|
package/plugins/typescript.js
CHANGED
|
@@ -32,7 +32,6 @@ module.exports = {
|
|
|
32
32
|
'no-dupe-args': 0,
|
|
33
33
|
'no-dupe-class-members': 0,
|
|
34
34
|
'no-dupe-keys': 0,
|
|
35
|
-
'no-duplicate-imports': 0,
|
|
36
35
|
'no-empty-function': 0,
|
|
37
36
|
'no-extra-parens': 0,
|
|
38
37
|
'no-extra-semi': 0,
|
|
@@ -144,8 +143,6 @@ module.exports = {
|
|
|
144
143
|
'@typescript-eslint/no-confusing-non-null-assertion': 2,
|
|
145
144
|
// disallow duplicate class members
|
|
146
145
|
'@typescript-eslint/no-dupe-class-members': es6['no-dupe-class-members'],
|
|
147
|
-
// disallow duplicate imports
|
|
148
|
-
'@typescript-eslint/no-duplicate-imports': es6['no-duplicate-imports'],
|
|
149
146
|
// disallow the delete operator with computed key expressions
|
|
150
147
|
'@typescript-eslint/no-dynamic-delete': 2,
|
|
151
148
|
// disallow empty functions
|
|
@@ -162,8 +159,6 @@ module.exports = {
|
|
|
162
159
|
'@typescript-eslint/no-extra-semi': possibleErrors['no-extra-semi'],
|
|
163
160
|
// forbids the use of classes as namespaces
|
|
164
161
|
'@typescript-eslint/no-extraneous-class': 2,
|
|
165
|
-
// disallow usage of the implicit `any` type in catch clauses
|
|
166
|
-
'@typescript-eslint/no-implicit-any-catch': 1,
|
|
167
162
|
// disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean
|
|
168
163
|
'@typescript-eslint/no-inferrable-types': 2,
|
|
169
164
|
// disallow `this` keywords outside of classes or class-like objects
|
|
@@ -187,8 +182,6 @@ module.exports = {
|
|
|
187
182
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 2,
|
|
188
183
|
// disallows non-null assertions using the `!` postfix operator
|
|
189
184
|
'@typescript-eslint/no-non-null-assertion': 0,
|
|
190
|
-
// disallow the use of parameter properties in class constructors
|
|
191
|
-
'@typescript-eslint/no-parameter-properties': 1,
|
|
192
185
|
// disallow variable redeclaration
|
|
193
186
|
'@typescript-eslint/no-redeclare': bestPractices['no-redeclare'],
|
|
194
187
|
// disallows invocation of `require()`
|
|
@@ -242,8 +235,6 @@ module.exports = {
|
|
|
242
235
|
'@typescript-eslint/quotes': stylisticIssues.quotes,
|
|
243
236
|
// require or disallow semicolons instead of ASI
|
|
244
237
|
'@typescript-eslint/semi': stylisticIssues.semi,
|
|
245
|
-
// enforces that members of a type union/intersection are sorted alphabetically
|
|
246
|
-
'@typescript-eslint/sort-type-union-intersection-members': 0,
|
|
247
238
|
// enforces consistent spacing before function parenthesis
|
|
248
239
|
'@typescript-eslint/space-before-function-paren':
|
|
249
240
|
stylisticIssues['space-before-function-paren'],
|