@wistia/eslint-config 0.36.0 → 0.36.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.36.0",
3
+ "version": "0.36.2",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.3.1",
6
6
  "main": "react.js",
@@ -46,21 +46,21 @@
46
46
  "@babel/eslint-parser": "^7.25.1",
47
47
  "@babel/preset-react": "^7.24.7",
48
48
  "@rushstack/eslint-patch": "^1.10.4",
49
- "@typescript-eslint/eslint-plugin": "^8.0.1",
50
- "@typescript-eslint/parser": "^8.0.1",
49
+ "@typescript-eslint/eslint-plugin": "^8.1.0",
50
+ "@typescript-eslint/parser": "^8.1.0",
51
51
  "confusing-browser-globals": "^1.0.11",
52
52
  "eslint": "^8.57.0",
53
53
  "eslint-config-prettier": "^9.1.0",
54
54
  "eslint-import-resolver-typescript": "^3.6.1",
55
- "eslint-plugin-cypress": "^3.4.0",
55
+ "eslint-plugin-cypress": "^3.5.0",
56
56
  "eslint-plugin-deprecation": "^3.0.0",
57
57
  "eslint-plugin-filenames": "^1.3.2",
58
58
  "eslint-plugin-fp": "^2.3.0",
59
59
  "eslint-plugin-import": "^2.29.1",
60
- "eslint-plugin-jest": "^28.7.0",
60
+ "eslint-plugin-jest": "^28.8.0",
61
61
  "eslint-plugin-jest-dom": "^5.4.0",
62
62
  "eslint-plugin-jest-formatting": "^3.1.0",
63
- "eslint-plugin-jsdoc": "^48.11.0",
63
+ "eslint-plugin-jsdoc": "^50.1.0",
64
64
  "eslint-plugin-jsx-a11y": "^6.9.0",
65
65
  "eslint-plugin-n": "^17.10.2",
66
66
  "eslint-plugin-no-only-tests": "^3.1.0",
@@ -68,7 +68,7 @@
68
68
  "eslint-plugin-no-typeof-window-undefined": "^0.0.2",
69
69
  "eslint-plugin-observers": "^1.0.1",
70
70
  "eslint-plugin-prettier": "^5.2.1",
71
- "eslint-plugin-promise": "^7.0.0",
71
+ "eslint-plugin-promise": "^7.1.0",
72
72
  "eslint-plugin-react": "^7.35.0",
73
73
  "eslint-plugin-react-hooks": "^4.6.2",
74
74
  "eslint-plugin-react-hooks-ssr": "^0.1.5",
@@ -76,7 +76,7 @@
76
76
  "eslint-plugin-ssr-friendly": "^1.3.0",
77
77
  "eslint-plugin-storybook": "^0.8.0",
78
78
  "eslint-plugin-styled-components-a11y": "^2.1.35",
79
- "eslint-plugin-testing-library": "^6.2.2",
79
+ "eslint-plugin-testing-library": "^6.3.0",
80
80
  "eslint-plugin-vitest": "^0.5.4",
81
81
  "eslint-plugin-vitest-globals": "^1.5.0",
82
82
  "postcss": "^8.4.41",
@@ -91,7 +91,7 @@
91
91
  "devDependencies": {
92
92
  "@changesets/changelog-github": "^0.5.0",
93
93
  "@changesets/cli": "^2.27.7",
94
- "@commitlint/cli": "^19.3.0",
94
+ "@commitlint/cli": "^19.4.0",
95
95
  "@commitlint/config-conventional": "^19.2.2",
96
96
  "check-export-map": "^1.3.1",
97
97
  "husky": "^9.1.4",
@@ -31,20 +31,24 @@ module.exports = {
31
31
  'n/no-exports-assign': 'error',
32
32
 
33
33
  // disallow import declarations which import extraneous modules
34
+ // decision: disabled this rule because it's redundant to `import/no-extraneous-dependencies` rule
34
35
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-extraneous-import.md
35
- 'n/no-extraneous-import': 'error',
36
+ 'n/no-extraneous-import': 'off',
36
37
 
37
38
  // disallow require() expressions which import extraneous modules
39
+ // decision: disabled this rule because it's redundant to `import/no-extraneous-dependencies` rule
38
40
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-extraneous-require.md
39
- 'n/no-extraneous-require': 'error',
41
+ 'n/no-extraneous-require': 'off',
40
42
 
41
43
  // disallow import declarations which import non-existence modules
44
+ // decision: disabled this rule because it's redundant to `import/no-unresolved` rule
42
45
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-missing-import.md
43
- 'n/no-missing-import': 'error',
46
+ 'n/no-missing-import': 'off',
44
47
 
45
48
  // disallow require() expressions which import non-existence modules
49
+ // decision: disabled this rule because it's redundant to `import/no-unresolved` rule
46
50
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-missing-require.md
47
- 'n/no-missing-require': 'error',
51
+ 'n/no-missing-require': 'off',
48
52
 
49
53
  // disallow new operators with calls to require
50
54
  // https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-new-require.md
@@ -444,8 +444,7 @@ module.exports = {
444
444
  },
445
445
  {
446
446
  selector: 'ForOfStatement',
447
- message:
448
- 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
447
+ message: 'Loops should be avoided in favor of array iterations.',
449
448
  },
450
449
  {
451
450
  selector: 'LabeledStatement',
@@ -113,8 +113,7 @@ module.exports = {
113
113
  },
114
114
  {
115
115
  selector: 'ForOfStatement',
116
- message:
117
- 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
116
+ message: 'Loops should be avoided in favor of array iterations.',
118
117
  },
119
118
  {
120
119
  selector: 'LabeledStatement',