eslint-config-heck 0.1.3 → 1.1.1

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 +11 -13
  2. package/package.json +11 -10
  3. package/readme.md +0 -4
package/node.js CHANGED
@@ -390,15 +390,8 @@ const rules = {
390
390
  ],
391
391
  "prefer-exponentiation-operator": "error",
392
392
  "prefer-object-spread": "error",
393
- "quote-props": [
394
- "error",
395
- "as-needed",
396
- {
397
- keywords: true,
398
- numbers: true,
399
- },
400
- ],
401
- quotes: ["error", "double"],
393
+ "quote-props": ["error", "as-needed"],
394
+ quotes: ["error", "double", { avoidEscape: true }],
402
395
  semi: [
403
396
  "error",
404
397
  "always",
@@ -657,7 +650,7 @@ const rules = {
657
650
  {
658
651
  declaration: "parens-new-line",
659
652
  assignment: "parens-new-line",
660
- "return": "parens-new-line",
653
+ return: "parens-new-line",
661
654
  arrow: "parens-new-line",
662
655
  },
663
656
  ],
@@ -701,6 +694,7 @@ const rules = {
701
694
  "unicorn/no-array-method-this-argument": "error",
702
695
  "unicorn/no-array-push-push": "error",
703
696
  "unicorn/no-array-reduce": "off",
697
+ "unicorn/no-await-expression-member": "error",
704
698
  "unicorn/no-console-spaces": "error",
705
699
  "unicorn/no-document-cookie": "error",
706
700
  "unicorn/no-empty-file": "error",
@@ -739,6 +733,7 @@ const rules = {
739
733
  "unicorn/prefer-array-index-of": "error",
740
734
  "unicorn/prefer-array-some": "error",
741
735
  "unicorn/prefer-at": "error",
736
+ "unicorn/prefer-code-point": "error",
742
737
  "unicorn/prefer-date-now": "error",
743
738
  "unicorn/prefer-default-parameters": "error",
744
739
  "unicorn/prefer-dom-node-append": "error",
@@ -797,14 +792,14 @@ const overrides = [
797
792
  ...globals,
798
793
  NodeJS: true,
799
794
  },
800
- plugins: [...plugins, "@typescript-eslint"/* , "deprecation" */],
795
+ plugins: [...plugins, "@typescript-eslint", "typescript-heck",/* , "deprecation" */],
801
796
  rules: {
802
797
  // Typescript
803
798
  "@typescript-eslint/adjacent-overload-signatures": "error",
804
799
  "@typescript-eslint/array-type": [
805
800
  "error",
806
801
  {
807
- "default": "array",
802
+ default: "array",
808
803
  },
809
804
  ],
810
805
  "@typescript-eslint/await-thenable": "error",
@@ -1097,7 +1092,7 @@ const overrides = [
1097
1092
  },
1098
1093
  ],
1099
1094
  quotes: "off",
1100
- "@typescript-eslint/quotes": ["error", "double"],
1095
+ "@typescript-eslint/quotes": ["error", "double", { avoidEscape: true }],
1101
1096
  "require-await": "off",
1102
1097
  "@typescript-eslint/require-await": "off",
1103
1098
  "no-return-await": "off",
@@ -1137,6 +1132,9 @@ const overrides = [
1137
1132
  "no-unexpected-multiline": "off",
1138
1133
  "no-unsafe-negation": "off",
1139
1134
  "valid-typeof": "off",
1135
+
1136
+ // typescript-heck
1137
+ "typescript-heck/array-type-spacing": ["error", "always", { betweenDimensions: "never" }],
1140
1138
  },
1141
1139
  },
1142
1140
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "0.1.3",
3
+ "version": "1.1.1",
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