eslint-config-heck 0.1.4 → 1.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/node.js +8 -3
- package/package.json +8 -7
package/node.js
CHANGED
|
@@ -650,7 +650,7 @@ const rules = {
|
|
|
650
650
|
{
|
|
651
651
|
declaration: "parens-new-line",
|
|
652
652
|
assignment: "parens-new-line",
|
|
653
|
-
|
|
653
|
+
return: "parens-new-line",
|
|
654
654
|
arrow: "parens-new-line",
|
|
655
655
|
},
|
|
656
656
|
],
|
|
@@ -694,6 +694,7 @@ const rules = {
|
|
|
694
694
|
"unicorn/no-array-method-this-argument": "error",
|
|
695
695
|
"unicorn/no-array-push-push": "error",
|
|
696
696
|
"unicorn/no-array-reduce": "off",
|
|
697
|
+
"unicorn/no-await-expression-member": "error",
|
|
697
698
|
"unicorn/no-console-spaces": "error",
|
|
698
699
|
"unicorn/no-document-cookie": "error",
|
|
699
700
|
"unicorn/no-empty-file": "error",
|
|
@@ -732,6 +733,7 @@ const rules = {
|
|
|
732
733
|
"unicorn/prefer-array-index-of": "error",
|
|
733
734
|
"unicorn/prefer-array-some": "error",
|
|
734
735
|
"unicorn/prefer-at": "error",
|
|
736
|
+
"unicorn/prefer-code-point": "error",
|
|
735
737
|
"unicorn/prefer-date-now": "error",
|
|
736
738
|
"unicorn/prefer-default-parameters": "error",
|
|
737
739
|
"unicorn/prefer-dom-node-append": "error",
|
|
@@ -790,14 +792,14 @@ const overrides = [
|
|
|
790
792
|
...globals,
|
|
791
793
|
NodeJS: true,
|
|
792
794
|
},
|
|
793
|
-
plugins: [...plugins, "@typescript-eslint"
|
|
795
|
+
plugins: [...plugins, "@typescript-eslint", "typescript-heck",/* , "deprecation" */],
|
|
794
796
|
rules: {
|
|
795
797
|
// Typescript
|
|
796
798
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
797
799
|
"@typescript-eslint/array-type": [
|
|
798
800
|
"error",
|
|
799
801
|
{
|
|
800
|
-
|
|
802
|
+
default: "array",
|
|
801
803
|
},
|
|
802
804
|
],
|
|
803
805
|
"@typescript-eslint/await-thenable": "error",
|
|
@@ -1130,6 +1132,9 @@ const overrides = [
|
|
|
1130
1132
|
"no-unexpected-multiline": "off",
|
|
1131
1133
|
"no-unsafe-negation": "off",
|
|
1132
1134
|
"valid-typeof": "off",
|
|
1135
|
+
|
|
1136
|
+
// typescript-heck
|
|
1137
|
+
"typescript-heck/array-type-spacing": ["error", "always"],
|
|
1133
1138
|
},
|
|
1134
1139
|
},
|
|
1135
1140
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,17 +17,18 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@typescript-eslint/eslint-plugin": "5.4.0",
|
|
19
19
|
"@typescript-eslint/parser": "5.4.0",
|
|
20
|
-
"eslint": "8.
|
|
20
|
+
"eslint": "8.3.0",
|
|
21
21
|
"eslint-plugin-deprecation": "1.2.1",
|
|
22
|
-
"eslint-plugin-jest": "25.
|
|
23
|
-
"eslint-plugin-react": "7.27.
|
|
24
|
-
"eslint-plugin-
|
|
22
|
+
"eslint-plugin-jest": "25.3.0",
|
|
23
|
+
"eslint-plugin-react": "7.27.1",
|
|
24
|
+
"eslint-plugin-typescript-heck": "1.0.0",
|
|
25
|
+
"eslint-plugin-unicorn": "39.0.0",
|
|
25
26
|
"react": "17.0.2",
|
|
26
27
|
"typescript": "4.5.2"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@types/jest": "27.0.
|
|
30
|
-
"@types/react": "17.0.
|
|
30
|
+
"@types/jest": "27.0.3",
|
|
31
|
+
"@types/react": "17.0.37",
|
|
31
32
|
"jest": "27.3.1"
|
|
32
33
|
}
|
|
33
34
|
}
|