eslint-config-heck 1.0.0 → 1.2.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.
Files changed (3) hide show
  1. package/node.js +13 -5
  2. package/package.json +6 -6
  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
  },
@@ -792,7 +800,7 @@ const overrides = [
792
800
  ...globals,
793
801
  NodeJS: true,
794
802
  },
795
- plugins: [...plugins, "@typescript-eslint", "typescript-heck",/* , "deprecation" */],
803
+ plugins: [...plugins, "@typescript-eslint", "typescript-heck", "@delagen/deprecation"],
796
804
  rules: {
797
805
  // Typescript
798
806
  "@typescript-eslint/adjacent-overload-signatures": "error",
@@ -1092,7 +1100,7 @@ const overrides = [
1092
1100
  },
1093
1101
  ],
1094
1102
  quotes: "off",
1095
- "@typescript-eslint/quotes": ["error", "double"],
1103
+ "@typescript-eslint/quotes": ["error", "double", { avoidEscape: true }],
1096
1104
  "require-await": "off",
1097
1105
  "@typescript-eslint/require-await": "off",
1098
1106
  "no-return-await": "off",
@@ -1109,7 +1117,7 @@ const overrides = [
1109
1117
  "@typescript-eslint/space-infix-ops": "error",
1110
1118
 
1111
1119
  // Deprecation
1112
- // "deprecation/deprecation": "error",
1120
+ "@delagen/deprecation/deprecation": "error",
1113
1121
 
1114
1122
  // Typescript handles itself
1115
1123
  "consistent-return": "off",
@@ -1134,7 +1142,7 @@ const overrides = [
1134
1142
  "valid-typeof": "off",
1135
1143
 
1136
1144
  // typescript-heck
1137
- "typescript-heck/array-type-spacing": ["error", "always"],
1145
+ "typescript-heck/array-type-spacing": ["error", "always", { betweenDimensions: "never" }],
1138
1146
  },
1139
1147
  },
1140
1148
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,13 +15,13 @@
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",
18
+ "@delagen/eslint-plugin-deprecation": "1.3.0",
19
+ "@typescript-eslint/eslint-plugin": "5.5.0",
20
+ "@typescript-eslint/parser": "5.5.0",
20
21
  "eslint": "8.3.0",
21
- "eslint-plugin-deprecation": "1.2.1",
22
22
  "eslint-plugin-jest": "25.3.0",
23
23
  "eslint-plugin-react": "7.27.1",
24
- "eslint-plugin-typescript-heck": "1.0.0",
24
+ "eslint-plugin-typescript-heck": "1.2.0",
25
25
  "eslint-plugin-unicorn": "39.0.0",
26
26
  "react": "17.0.2",
27
27
  "typescript": "4.5.2"
@@ -29,6 +29,6 @@
29
29
  "devDependencies": {
30
30
  "@types/jest": "27.0.3",
31
31
  "@types/react": "17.0.37",
32
- "jest": "27.3.1"
32
+ "jest": "27.4.0"
33
33
  }
34
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