eslint-config-heck 1.2.0 → 1.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/node.js +14 -2
- package/package.json +12 -12
package/node.js
CHANGED
|
@@ -202,6 +202,7 @@ const rules = {
|
|
|
202
202
|
"no-warning-comments": "warn",
|
|
203
203
|
"no-with": "error",
|
|
204
204
|
"prefer-named-capture-group": "error",
|
|
205
|
+
"prefer-object-has-own": "error",
|
|
205
206
|
"prefer-promise-reject-errors": "error",
|
|
206
207
|
"prefer-regex-literals": "error",
|
|
207
208
|
radix: ["error", "always"],
|
|
@@ -719,12 +720,14 @@ const rules = {
|
|
|
719
720
|
"unicorn/no-object-as-default-parameter": "error",
|
|
720
721
|
"unicorn/no-process-exit": "error",
|
|
721
722
|
"unicorn/no-static-only-class": "error",
|
|
723
|
+
"unicorn/no-thenable": "error",
|
|
722
724
|
"unicorn/no-this-assignment": "error",
|
|
723
725
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
724
726
|
"unicorn/no-unsafe-regex": "off",
|
|
725
727
|
"unicorn/no-unused-properties": "error",
|
|
726
728
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
727
729
|
"unicorn/no-useless-length-check": "error",
|
|
730
|
+
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
728
731
|
"unicorn/no-useless-spread": "error",
|
|
729
732
|
"unicorn/no-useless-undefined": "error",
|
|
730
733
|
"unicorn/no-zero-fractions": "error",
|
|
@@ -750,6 +753,7 @@ const rules = {
|
|
|
750
753
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
751
754
|
"unicorn/prefer-export-from": "off",
|
|
752
755
|
"unicorn/prefer-includes": "error",
|
|
756
|
+
"unicorn/prefer-json-parse-buffer": "error",
|
|
753
757
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
754
758
|
"unicorn/prefer-math-trunc": "error",
|
|
755
759
|
"unicorn/prefer-modern-dom-apis": "error",
|
|
@@ -758,7 +762,6 @@ const rules = {
|
|
|
758
762
|
"unicorn/prefer-node-protocol": "error",
|
|
759
763
|
"unicorn/prefer-number-properties": "error",
|
|
760
764
|
"unicorn/prefer-object-from-entries": "error",
|
|
761
|
-
"unicorn/prefer-object-has-own": "error",
|
|
762
765
|
"unicorn/prefer-optional-catch-binding": "error",
|
|
763
766
|
"unicorn/prefer-prototype-methods": "error",
|
|
764
767
|
"unicorn/prefer-query-selector": "off",
|
|
@@ -779,6 +782,7 @@ const rules = {
|
|
|
779
782
|
"unicorn/prefer-top-level-await": "off",
|
|
780
783
|
"unicorn/prefer-type-error": "error",
|
|
781
784
|
"unicorn/prevent-abbreviations": "off",
|
|
785
|
+
"unicorn/relative-url-style": "error",
|
|
782
786
|
"unicorn/require-array-join-separator": "error",
|
|
783
787
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
784
788
|
"unicorn/require-post-message-target-origin": "error",
|
|
@@ -1064,7 +1068,13 @@ const overrides = [
|
|
|
1064
1068
|
"no-shadow": "off",
|
|
1065
1069
|
"@typescript-eslint/no-shadow": "error",
|
|
1066
1070
|
"no-throw-literal": "off",
|
|
1067
|
-
"@typescript-eslint/no-throw-literal":
|
|
1071
|
+
"@typescript-eslint/no-throw-literal": [
|
|
1072
|
+
"error",
|
|
1073
|
+
{
|
|
1074
|
+
allowThrowingAny: false,
|
|
1075
|
+
allowThrowingUnknown: false,
|
|
1076
|
+
},
|
|
1077
|
+
],
|
|
1068
1078
|
"no-unused-expressions": "off",
|
|
1069
1079
|
"@typescript-eslint/no-unused-expressions": "error",
|
|
1070
1080
|
"no-unused-vars": "off",
|
|
@@ -1179,6 +1189,8 @@ const overrides = [
|
|
|
1179
1189
|
"jest/no-test-prefixes": "error",
|
|
1180
1190
|
"jest/no-test-return-statement": "error",
|
|
1181
1191
|
"jest/prefer-called-with": "error",
|
|
1192
|
+
"jest/prefer-comparison-matcher": "error",
|
|
1193
|
+
"jest/prefer-equality-matcher": "error",
|
|
1182
1194
|
"jest/prefer-expect-assertions": "off",
|
|
1183
1195
|
"jest/prefer-expect-resolves": "error",
|
|
1184
1196
|
"jest/prefer-hooks-on-top": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"author": "atheck",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@delagen/eslint-plugin-deprecation": "1.3.
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
20
|
-
"@typescript-eslint/parser": "5.
|
|
21
|
-
"eslint": "8.
|
|
22
|
-
"eslint-plugin-jest": "25.
|
|
23
|
-
"eslint-plugin-react": "7.
|
|
18
|
+
"@delagen/eslint-plugin-deprecation": "1.3.2",
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "5.10.0",
|
|
20
|
+
"@typescript-eslint/parser": "5.10.0",
|
|
21
|
+
"eslint": "8.7.0",
|
|
22
|
+
"eslint-plugin-jest": "25.7.0",
|
|
23
|
+
"eslint-plugin-react": "7.28.0",
|
|
24
24
|
"eslint-plugin-typescript-heck": "1.2.0",
|
|
25
|
-
"eslint-plugin-unicorn": "
|
|
25
|
+
"eslint-plugin-unicorn": "40.1.0",
|
|
26
26
|
"react": "17.0.2",
|
|
27
|
-
"typescript": "4.5.
|
|
27
|
+
"typescript": "4.5.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/jest": "27.0
|
|
31
|
-
"@types/react": "17.0.
|
|
32
|
-
"jest": "27.4.
|
|
30
|
+
"@types/jest": "27.4.0",
|
|
31
|
+
"@types/react": "17.0.38",
|
|
32
|
+
"jest": "27.4.7"
|
|
33
33
|
}
|
|
34
34
|
}
|