eslint-config-heck 1.3.1 → 1.5.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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "branches": ["main"]
3
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,152 @@
1
+ # [1.5.0](https://github.com/atheck/eslint-config-heck/compare/v1.4.0...v1.5.0) (2022-03-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * add new typescript linting rules ([ee6162e](https://github.com/atheck/eslint-config-heck/commit/ee6162eaaf2f59094f494127c457ba4029c30df5))
7
+
8
+
9
+
10
+ # [1.4.0](https://github.com/atheck/eslint-config-heck/compare/v1.3.1...v1.4.0) (2022-02-27)
11
+
12
+
13
+ ### Features
14
+
15
+ * add new rules ([6fe363d](https://github.com/atheck/eslint-config-heck/commit/6fe363d9a4d981337d251a29bac84e9be18ddac5))
16
+ * enable option to report unused disable directives ([b18e91a](https://github.com/atheck/eslint-config-heck/commit/b18e91a1bbcb7ab5bf42c3d80aaa08edc169450e))
17
+
18
+
19
+
20
+ ## [1.3.1](https://github.com/atheck/eslint-config-heck/compare/v1.3.0...v1.3.1) (2022-01-18)
21
+
22
+
23
+ ### Features
24
+
25
+ * modify options of @typescript-eslint/explicit-function-return-type rule ([a66e2d6](https://github.com/atheck/eslint-config-heck/commit/a66e2d6d5edee403d218e27c9e9d3085b875e4bc))
26
+
27
+
28
+
29
+ # [1.3.0](https://github.com/atheck/eslint-config-heck/compare/v1.2.0...v1.3.0) (2022-01-18)
30
+
31
+
32
+ ### Features
33
+
34
+ * add and update new and modified rules ([a466ddc](https://github.com/atheck/eslint-config-heck/commit/a466ddcad0be6f32085df41ad5c0c7b0cb367681))
35
+
36
+
37
+
38
+ # [1.2.0](https://github.com/atheck/eslint-config-heck/compare/v1.1.2...v1.2.0) (2021-12-03)
39
+
40
+
41
+ ### Features
42
+
43
+ * replace deprecation plugin with @delagen/depreaction ([c07f621](https://github.com/atheck/eslint-config-heck/commit/c07f621d05e721a396f75ec5e4d9fb20b6e9cb5b))
44
+
45
+
46
+
47
+ ## [1.1.2](https://github.com/atheck/eslint-config-heck/compare/v1.1.1...v1.1.2) (2021-12-03)
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * change order in react sort-comp rule ([0ce0b78](https://github.com/atheck/eslint-config-heck/commit/0ce0b786edaf9a5049ac0a1f98269715cbc3990f))
53
+
54
+
55
+
56
+ ## [1.1.1](https://github.com/atheck/eslint-config-heck/compare/v1.1.0...v1.1.1) (2021-11-30)
57
+
58
+
59
+ ### Bug Fixes
60
+
61
+ * use avoidEscape option in quotes rule ([cb0b732](https://github.com/atheck/eslint-config-heck/commit/cb0b732a6fb0329892d203a06e1a909c2db2511b))
62
+
63
+
64
+
65
+ # [1.1.0](https://github.com/atheck/eslint-config-heck/compare/v1.0.0...v1.1.0) (2021-11-29)
66
+
67
+
68
+ ### Features
69
+
70
+ * use advanced config of array-type-spacing rule ([d78a729](https://github.com/atheck/eslint-config-heck/commit/d78a7293749b0c1df9a219ca5a00ae8a7ea878a5))
71
+
72
+
73
+
74
+ # [1.0.0](https://github.com/atheck/eslint-config-heck/compare/v0.1.4...v1.0.0) (2021-11-28)
75
+
76
+
77
+ ### Features
78
+
79
+ * add eslint-plugin-typescript-heck ([6075e26](https://github.com/atheck/eslint-config-heck/commit/6075e26f23b9e9c111e256296a60ad95400dc805))
80
+
81
+
82
+
83
+ ## [0.1.4](https://github.com/atheck/eslint-config-heck/compare/v0.1.3...v0.1.4) (2021-11-23)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * modify some rules ([b6a51a3](https://github.com/atheck/eslint-config-heck/commit/b6a51a35292f8abf6b97f08d799fcb2277fdf562))
89
+
90
+
91
+
92
+ ## [0.1.3](https://github.com/atheck/eslint-config-heck/compare/v0.1.2...v0.1.3) (2021-11-22)
93
+
94
+
95
+ ### Bug Fixes
96
+
97
+ * modify some rules ([3187118](https://github.com/atheck/eslint-config-heck/commit/31871182cc4df92d92ff42dae9798c13f88bca77))
98
+
99
+
100
+
101
+ ## [0.1.2](https://github.com/atheck/eslint-config-heck/compare/v0.1.1...v0.1.2) (2021-11-21)
102
+
103
+
104
+ ### Bug Fixes
105
+
106
+ * modify object-curly-spacing rule ([15c0a9f](https://github.com/atheck/eslint-config-heck/commit/15c0a9fd7d10a7a0090be2c249e798a5dfc9271d))
107
+
108
+
109
+
110
+ ## [0.1.1](https://github.com/atheck/eslint-config-heck/compare/v0.1.0...v0.1.1) (2021-11-19)
111
+
112
+
113
+ ### Features
114
+
115
+ * modified some rules ([276ec84](https://github.com/atheck/eslint-config-heck/commit/276ec848d4b416b5e932aa681d266dd1298a8e20))
116
+
117
+
118
+
119
+ # [0.1.0](https://github.com/atheck/eslint-config-heck/compare/v0.0.4...v0.1.0) (2021-11-17)
120
+
121
+
122
+
123
+ ## [0.0.4](https://github.com/atheck/eslint-config-heck/compare/v0.0.3...v0.0.4) (2021-11-10)
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * update eslint jest plugin rules ([705c86a](https://github.com/atheck/eslint-config-heck/commit/705c86a2d75f95a975188064f49979b1d5bf6c17))
129
+
130
+
131
+
132
+ ## [0.0.3](https://github.com/atheck/eslint-config-heck/compare/v0.0.2...v0.0.3) (2021-11-10)
133
+
134
+
135
+
136
+ ## [0.0.2](https://github.com/atheck/eslint-config-heck/compare/v0.0.1...v0.0.2) (2021-11-10)
137
+
138
+
139
+
140
+ ## [0.0.1](https://github.com/atheck/eslint-config-heck/compare/9fd6de87a11caab48a79eb3831d74470cab22f03...v0.0.1) (2021-11-10)
141
+
142
+
143
+ ### Features
144
+
145
+ * activate rules only for js ([c5a6ebf](https://github.com/atheck/eslint-config-heck/commit/c5a6ebfaf565cc1305047947ac26bea103e05562))
146
+ * add deprecation plugin and rules ([d064788](https://github.com/atheck/eslint-config-heck/commit/d064788d75a81ad0104aeba44ba4b0b603854296))
147
+ * add eslint rules and test files ([9fd6de8](https://github.com/atheck/eslint-config-heck/commit/9fd6de87a11caab48a79eb3831d74470cab22f03))
148
+ * add more typescript rules ([3e8f21d](https://github.com/atheck/eslint-config-heck/commit/3e8f21d72b1bb5cc4cbc643eb08c7ae7e475d57b))
149
+ * add more typescript rules ([5657b83](https://github.com/atheck/eslint-config-heck/commit/5657b836788da0864c5eb998dd898f58fc2f54d5))
150
+
151
+
152
+
package/node.js CHANGED
@@ -506,6 +506,8 @@ const rules = {
506
506
  unnamedComponents: "arrow-function",
507
507
  },
508
508
  ],
509
+ "react/hook-use-state": "error",
510
+ "react/iframe-missing-sandbox": "error",
509
511
  "react/no-access-state-in-setstate": "error",
510
512
  "react/no-adjacent-inline-elements": "error",
511
513
  "react/no-array-index-key": "error",
@@ -770,8 +772,7 @@ const rules = {
770
772
  "unicorn/prefer-set-has": "error",
771
773
  "unicorn/prefer-spread": "error",
772
774
 
773
- // TODO: only available in Node.js 15+, so enable it later
774
- "unicorn/prefer-string-replace-all": "off",
775
+ "unicorn/prefer-string-replace-all": "error",
775
776
  "unicorn/prefer-string-slice": "error",
776
777
  "unicorn/prefer-string-starts-ends-with": "error",
777
778
  "unicorn/prefer-string-trim-start-end": "error",
@@ -788,6 +789,7 @@ const rules = {
788
789
  "unicorn/require-post-message-target-origin": "error",
789
790
  "unicorn/string-content": "off",
790
791
  "unicorn/template-indent": "off",
792
+ "unicorn/text-encoding-identifier-case": "error",
791
793
  "unicorn/throw-new-error": "error",
792
794
  };
793
795
 
@@ -919,6 +921,7 @@ const overrides = [
919
921
  "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
920
922
  "@typescript-eslint/no-non-null-assertion": "error",
921
923
  "@typescript-eslint/no-parameter-properties": "off",
924
+ "@typescript-eslint/no-redundant-type-constituents": "error",
922
925
  "@typescript-eslint/no-require-imports": "error",
923
926
  "@typescript-eslint/no-this-alias": "error",
924
927
  "@typescript-eslint/no-type-alias": "off",
@@ -933,6 +936,7 @@ const overrides = [
933
936
  "@typescript-eslint/no-unsafe-call": "error",
934
937
  "@typescript-eslint/no-unsafe-member-access": "error",
935
938
  "@typescript-eslint/no-unsafe-return": "error",
939
+ "@typescript-eslint/no-useless-empty-export": "error",
936
940
  "@typescript-eslint/no-var-requires": "error",
937
941
  "@typescript-eslint/non-nullable-type-assertion-style": "off",
938
942
  "@typescript-eslint/prefer-as-const": "error",
@@ -1121,6 +1125,8 @@ const overrides = [
1121
1125
  omitLastInOneLineBlock: false,
1122
1126
  },
1123
1127
  ],
1128
+ "space-before-blocks": "off",
1129
+ "@typescript-eslint/space-before-blocks": "error",
1124
1130
  "space-before-function-paren": "off",
1125
1131
  "@typescript-eslint/space-before-function-paren": "error",
1126
1132
  "space-infix-ops": "off",
@@ -1170,6 +1176,7 @@ const overrides = [
1170
1176
  "jest/no-alias-methods": "error",
1171
1177
  "jest/no-commented-out-tests": "error",
1172
1178
  "jest/no-conditional-expect": "error",
1179
+ "jest/no-conditional-in-test": "error",
1173
1180
  "jest/no-deprecated-functions": "error",
1174
1181
  "jest/no-disabled-tests": "warn",
1175
1182
  "jest/no-done-callback": "error",
@@ -1178,7 +1185,6 @@ const overrides = [
1178
1185
  "jest/no-focused-tests": "warn",
1179
1186
  "jest/no-hooks": "off",
1180
1187
  "jest/no-identical-title": "error",
1181
- "jest/no-if": "error",
1182
1188
  "jest/no-interpolation-in-snapshots": "error",
1183
1189
  "jest/no-jasmine-globals": "error",
1184
1190
  "jest/no-jest-import": "error",
@@ -1199,6 +1205,7 @@ const overrides = [
1199
1205
  ignore: ["describe"],
1200
1206
  },
1201
1207
  ],
1208
+ "jest/prefer-snapshot-hint": "error",
1202
1209
  "jest/prefer-spy-on": "error",
1203
1210
  "jest/prefer-strict-equal": "error",
1204
1211
  "jest/prefer-to-be": "error",
@@ -1226,4 +1233,6 @@ module.exports = {
1226
1233
  settings,
1227
1234
  rules,
1228
1235
  overrides,
1236
+
1237
+ reportUnusedDisableDirectives: true,
1229
1238
  };
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "1.3.1",
3
+ "version": "1.5.1",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "lint": "eslint --ext '.ts,.tsx' ."
7
+ "install-peers": "npm install --no-save react",
8
+ "lint": "eslint --ext '.ts,.tsx' .",
9
+ "semantic-release": "semantic-release"
8
10
  },
9
11
  "keywords": [
10
12
  "ESLint",
@@ -16,19 +18,26 @@
16
18
  "license": "MIT",
17
19
  "dependencies": {
18
20
  "@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
- "eslint-plugin-typescript-heck": "1.2.0",
25
- "eslint-plugin-unicorn": "40.1.0",
26
- "react": "17.0.2",
27
- "typescript": "4.5.4"
21
+ "@typescript-eslint/eslint-plugin": "5.16.0",
22
+ "@typescript-eslint/parser": "5.16.0",
23
+ "eslint": "8.11.0",
24
+ "eslint-plugin-jest": "26.1.3",
25
+ "eslint-plugin-react": "7.29.4",
26
+ "eslint-plugin-typescript-heck": "1.2.1",
27
+ "eslint-plugin-unicorn": "41.0.1",
28
+ "typescript": "4.6.3"
28
29
  },
29
30
  "devDependencies": {
30
- "@types/jest": "27.4.0",
31
- "@types/react": "17.0.38",
32
- "jest": "27.4.7"
31
+ "@types/jest": "27.4.1",
32
+ "@types/react": "17.0.43",
33
+ "jest": "27.5.1",
34
+ "semantic-release": "19.0.2"
35
+ },
36
+ "peerDependencies": {
37
+ "react": ">=16.8.0"
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/atheck/eslint-config-heck.git"
33
42
  }
34
43
  }