eslint-config-heck 1.3.1 → 1.4.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 (2) hide show
  1. package/node.js +8 -3
  2. package/package.json +15 -12
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
 
@@ -1170,6 +1172,7 @@ const overrides = [
1170
1172
  "jest/no-alias-methods": "error",
1171
1173
  "jest/no-commented-out-tests": "error",
1172
1174
  "jest/no-conditional-expect": "error",
1175
+ "jest/no-conditional-in-test": "error",
1173
1176
  "jest/no-deprecated-functions": "error",
1174
1177
  "jest/no-disabled-tests": "warn",
1175
1178
  "jest/no-done-callback": "error",
@@ -1178,7 +1181,6 @@ const overrides = [
1178
1181
  "jest/no-focused-tests": "warn",
1179
1182
  "jest/no-hooks": "off",
1180
1183
  "jest/no-identical-title": "error",
1181
- "jest/no-if": "error",
1182
1184
  "jest/no-interpolation-in-snapshots": "error",
1183
1185
  "jest/no-jasmine-globals": "error",
1184
1186
  "jest/no-jest-import": "error",
@@ -1199,6 +1201,7 @@ const overrides = [
1199
1201
  ignore: ["describe"],
1200
1202
  },
1201
1203
  ],
1204
+ "jest/prefer-snapshot-hint": "error",
1202
1205
  "jest/prefer-spy-on": "error",
1203
1206
  "jest/prefer-strict-equal": "error",
1204
1207
  "jest/prefer-to-be": "error",
@@ -1226,4 +1229,6 @@ module.exports = {
1226
1229
  settings,
1227
1230
  rules,
1228
1231
  overrides,
1232
+
1233
+ reportUnusedDisableDirectives: true,
1229
1234
  };
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
+ "install-peers": "npm install --no-save react",
7
8
  "lint": "eslint --ext '.ts,.tsx' ."
8
9
  },
9
10
  "keywords": [
@@ -16,19 +17,21 @@
16
17
  "license": "MIT",
17
18
  "dependencies": {
18
19
  "@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",
20
+ "@typescript-eslint/eslint-plugin": "5.12.1",
21
+ "@typescript-eslint/parser": "5.12.1",
22
+ "eslint": "8.10.0",
23
+ "eslint-plugin-jest": "26.1.1",
24
+ "eslint-plugin-react": "7.29.2",
24
25
  "eslint-plugin-typescript-heck": "1.2.0",
25
- "eslint-plugin-unicorn": "40.1.0",
26
- "react": "17.0.2",
27
- "typescript": "4.5.4"
26
+ "eslint-plugin-unicorn": "41.0.0",
27
+ "typescript": "4.5.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/jest": "27.4.0",
31
- "@types/react": "17.0.38",
32
- "jest": "27.4.7"
30
+ "@types/jest": "27.4.1",
31
+ "@types/react": "17.0.39",
32
+ "jest": "27.5.1"
33
+ },
34
+ "peerDependencies": {
35
+ "react": ">=16.8.0"
33
36
  }
34
37
  }