eslint-config-heck 0.1.4 → 1.1.2

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.
Files changed (3) hide show
  1. package/node.js +18 -5
  2. package/package.json +11 -10
  3. package/readme.md +0 -4
package/node.js CHANGED
@@ -391,7 +391,7 @@ const rules = {
391
391
  "prefer-exponentiation-operator": "error",
392
392
  "prefer-object-spread": "error",
393
393
  "quote-props": ["error", "as-needed"],
394
- quotes: ["error", "double"],
394
+ quotes: ["error", "double", { avoidEscape: true }],
395
395
  semi: [
396
396
  "error",
397
397
  "always",
@@ -549,6 +549,14 @@ const rules = {
549
549
  "react/sort-comp": [
550
550
  "error",
551
551
  {
552
+ order: [
553
+ "static-variables",
554
+ "instance-variables",
555
+ "static-methods",
556
+ "lifecycle",
557
+ "render",
558
+ "everything-else",
559
+ ],
552
560
  groups: {
553
561
  render: ["render", "/^render.+$/"],
554
562
  },
@@ -650,7 +658,7 @@ const rules = {
650
658
  {
651
659
  declaration: "parens-new-line",
652
660
  assignment: "parens-new-line",
653
- "return": "parens-new-line",
661
+ return: "parens-new-line",
654
662
  arrow: "parens-new-line",
655
663
  },
656
664
  ],
@@ -694,6 +702,7 @@ const rules = {
694
702
  "unicorn/no-array-method-this-argument": "error",
695
703
  "unicorn/no-array-push-push": "error",
696
704
  "unicorn/no-array-reduce": "off",
705
+ "unicorn/no-await-expression-member": "error",
697
706
  "unicorn/no-console-spaces": "error",
698
707
  "unicorn/no-document-cookie": "error",
699
708
  "unicorn/no-empty-file": "error",
@@ -732,6 +741,7 @@ const rules = {
732
741
  "unicorn/prefer-array-index-of": "error",
733
742
  "unicorn/prefer-array-some": "error",
734
743
  "unicorn/prefer-at": "error",
744
+ "unicorn/prefer-code-point": "error",
735
745
  "unicorn/prefer-date-now": "error",
736
746
  "unicorn/prefer-default-parameters": "error",
737
747
  "unicorn/prefer-dom-node-append": "error",
@@ -790,14 +800,14 @@ const overrides = [
790
800
  ...globals,
791
801
  NodeJS: true,
792
802
  },
793
- plugins: [...plugins, "@typescript-eslint"/* , "deprecation" */],
803
+ plugins: [...plugins, "@typescript-eslint", "typescript-heck",/* , "deprecation" */],
794
804
  rules: {
795
805
  // Typescript
796
806
  "@typescript-eslint/adjacent-overload-signatures": "error",
797
807
  "@typescript-eslint/array-type": [
798
808
  "error",
799
809
  {
800
- "default": "array",
810
+ default: "array",
801
811
  },
802
812
  ],
803
813
  "@typescript-eslint/await-thenable": "error",
@@ -1090,7 +1100,7 @@ const overrides = [
1090
1100
  },
1091
1101
  ],
1092
1102
  quotes: "off",
1093
- "@typescript-eslint/quotes": ["error", "double"],
1103
+ "@typescript-eslint/quotes": ["error", "double", { avoidEscape: true }],
1094
1104
  "require-await": "off",
1095
1105
  "@typescript-eslint/require-await": "off",
1096
1106
  "no-return-await": "off",
@@ -1130,6 +1140,9 @@ const overrides = [
1130
1140
  "no-unexpected-multiline": "off",
1131
1141
  "no-unsafe-negation": "off",
1132
1142
  "valid-typeof": "off",
1143
+
1144
+ // typescript-heck
1145
+ "typescript-heck/array-type-spacing": ["error", "always", { betweenDimensions: "never" }],
1133
1146
  },
1134
1147
  },
1135
1148
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "0.1.4",
3
+ "version": "1.1.2",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,19 +15,20 @@
15
15
  "author": "atheck",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@typescript-eslint/eslint-plugin": "5.4.0",
19
- "@typescript-eslint/parser": "5.4.0",
20
- "eslint": "8.2.0",
18
+ "@typescript-eslint/eslint-plugin": "5.5.0",
19
+ "@typescript-eslint/parser": "5.5.0",
20
+ "eslint": "8.3.0",
21
21
  "eslint-plugin-deprecation": "1.2.1",
22
- "eslint-plugin-jest": "25.2.4",
23
- "eslint-plugin-react": "7.27.0",
24
- "eslint-plugin-unicorn": "38.0.1",
22
+ "eslint-plugin-jest": "25.3.0",
23
+ "eslint-plugin-react": "7.27.1",
24
+ "eslint-plugin-typescript-heck": "1.2.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.2",
30
- "@types/react": "17.0.35",
31
- "jest": "27.3.1"
30
+ "@types/jest": "27.0.3",
31
+ "@types/react": "17.0.37",
32
+ "jest": "27.4.0"
32
33
  }
33
34
  }
package/readme.md CHANGED
@@ -27,7 +27,3 @@ If you are in the browser, use:
27
27
  "extends": "heck/browser"
28
28
  }
29
29
  ~~~
30
-
31
- ## TODO
32
-
33
- - [ ] object-curly-newline überdenken