@joshuaavalon/eslint-config-typescript 8.0.0 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/cjs/index.js +8 -5
- package/dist/esm/index.js +8 -5
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
@@ -17,12 +17,10 @@ const extensionRules = {
|
|
17
17
|
"@typescript-eslint/no-implied-eval": "error",
|
18
18
|
"no-loop-func": "off",
|
19
19
|
"@typescript-eslint/no-loop-func": "error",
|
20
|
-
"no-loss-of-precision": "off",
|
21
|
-
"@typescript-eslint/no-loss-of-precision": "error",
|
22
20
|
"no-redeclare": "off",
|
23
21
|
"@typescript-eslint/no-redeclare": "error",
|
24
22
|
"no-throw-literal": "off",
|
25
|
-
"@typescript-eslint/
|
23
|
+
"@typescript-eslint/only-throw-error": "error",
|
26
24
|
"no-unused-expressions": "off",
|
27
25
|
"@typescript-eslint/no-unused-expressions": "error",
|
28
26
|
"no-unused-vars": "off",
|
@@ -57,7 +55,13 @@ const rules$1 = {
|
|
57
55
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
58
56
|
"@typescript-eslint/array-type": "error",
|
59
57
|
"@typescript-eslint/await-thenable": "error",
|
60
|
-
"@typescript-eslint/
|
58
|
+
"@typescript-eslint/no-empty-object-type": ["error",
|
59
|
+
{
|
60
|
+
allowInterfaces: "always",
|
61
|
+
allowObjectTypes: "always"
|
62
|
+
}],
|
63
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
64
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
61
65
|
"@typescript-eslint/consistent-generic-constructors": "error",
|
62
66
|
"@typescript-eslint/consistent-type-exports": "error",
|
63
67
|
"@typescript-eslint/consistent-type-imports": "error",
|
@@ -148,7 +152,6 @@ const rules$1 = {
|
|
148
152
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
149
153
|
"@typescript-eslint/no-unsafe-return": "off",
|
150
154
|
"@typescript-eslint/no-useless-empty-export": "error",
|
151
|
-
"@typescript-eslint/no-var-requires": "error",
|
152
155
|
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
153
156
|
"@typescript-eslint/parameter-properties": "error",
|
154
157
|
"@typescript-eslint/prefer-as-const": "error",
|
package/dist/esm/index.js
CHANGED
@@ -15,12 +15,10 @@ const extensionRules = {
|
|
15
15
|
"@typescript-eslint/no-implied-eval": "error",
|
16
16
|
"no-loop-func": "off",
|
17
17
|
"@typescript-eslint/no-loop-func": "error",
|
18
|
-
"no-loss-of-precision": "off",
|
19
|
-
"@typescript-eslint/no-loss-of-precision": "error",
|
20
18
|
"no-redeclare": "off",
|
21
19
|
"@typescript-eslint/no-redeclare": "error",
|
22
20
|
"no-throw-literal": "off",
|
23
|
-
"@typescript-eslint/
|
21
|
+
"@typescript-eslint/only-throw-error": "error",
|
24
22
|
"no-unused-expressions": "off",
|
25
23
|
"@typescript-eslint/no-unused-expressions": "error",
|
26
24
|
"no-unused-vars": "off",
|
@@ -55,7 +53,13 @@ const rules$1 = {
|
|
55
53
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
56
54
|
"@typescript-eslint/array-type": "error",
|
57
55
|
"@typescript-eslint/await-thenable": "error",
|
58
|
-
"@typescript-eslint/
|
56
|
+
"@typescript-eslint/no-empty-object-type": ["error",
|
57
|
+
{
|
58
|
+
allowInterfaces: "always",
|
59
|
+
allowObjectTypes: "always"
|
60
|
+
}],
|
61
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
62
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
59
63
|
"@typescript-eslint/consistent-generic-constructors": "error",
|
60
64
|
"@typescript-eslint/consistent-type-exports": "error",
|
61
65
|
"@typescript-eslint/consistent-type-imports": "error",
|
@@ -146,7 +150,6 @@ const rules$1 = {
|
|
146
150
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
147
151
|
"@typescript-eslint/no-unsafe-return": "off",
|
148
152
|
"@typescript-eslint/no-useless-empty-export": "error",
|
149
|
-
"@typescript-eslint/no-var-requires": "error",
|
150
153
|
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
151
154
|
"@typescript-eslint/parameter-properties": "error",
|
152
155
|
"@typescript-eslint/prefer-as-const": "error",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@joshuaavalon/eslint-config-typescript",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.1.0",
|
4
4
|
"description": "Shareable ESLint Typescript config.",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/cjs/index.js",
|
@@ -34,8 +34,8 @@
|
|
34
34
|
"url": "https://github.com/joshuaavalon/eslint-config/issues"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
-
"@joshuaavalon/eslint-config-javascript": "^8.
|
38
|
-
"typescript-eslint": "^8.0.0
|
37
|
+
"@joshuaavalon/eslint-config-javascript": "^8.1.0",
|
38
|
+
"typescript-eslint": "^8.0.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"eslint": "^9.8.0"
|