@wistia/eslint-config 0.36.2 → 0.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.36.2",
3
+ "version": "0.37.0",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.3.1",
6
6
  "main": "react.js",
@@ -46,30 +46,30 @@
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.1.0",
50
- "@typescript-eslint/parser": "^8.1.0",
49
+ "@typescript-eslint/eslint-plugin": "^8.4.0",
50
+ "@typescript-eslint/parser": "^8.4.0",
51
51
  "confusing-browser-globals": "^1.0.11",
52
52
  "eslint": "^8.57.0",
53
53
  "eslint-config-prettier": "^9.1.0",
54
- "eslint-import-resolver-typescript": "^3.6.1",
54
+ "eslint-import-resolver-typescript": "^3.6.3",
55
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
- "eslint-plugin-import": "^2.29.1",
60
- "eslint-plugin-jest": "^28.8.0",
59
+ "eslint-plugin-import": "^2.30.0",
60
+ "eslint-plugin-jest": "^28.8.3",
61
61
  "eslint-plugin-jest-dom": "^5.4.0",
62
62
  "eslint-plugin-jest-formatting": "^3.1.0",
63
- "eslint-plugin-jsdoc": "^50.1.0",
64
- "eslint-plugin-jsx-a11y": "^6.9.0",
63
+ "eslint-plugin-jsdoc": "^50.2.2",
64
+ "eslint-plugin-jsx-a11y": "^6.10.0",
65
65
  "eslint-plugin-n": "^17.10.2",
66
- "eslint-plugin-no-only-tests": "^3.1.0",
66
+ "eslint-plugin-no-only-tests": "^3.3.0",
67
67
  "eslint-plugin-no-snapshot-testing": "^1.0.61",
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
71
  "eslint-plugin-promise": "^7.1.0",
72
- "eslint-plugin-react": "^7.35.0",
72
+ "eslint-plugin-react": "^7.35.2",
73
73
  "eslint-plugin-react-hooks": "^4.6.2",
74
74
  "eslint-plugin-react-hooks-ssr": "^0.1.5",
75
75
  "eslint-plugin-sonarjs": "^1.0.4",
@@ -79,22 +79,22 @@
79
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
- "postcss": "^8.4.41",
82
+ "postcss": "^8.4.45",
83
83
  "postcss-scss": "^4.0.9",
84
84
  "postcss-styled-syntax": "^0.6.4",
85
85
  "prettier": "^3.3.3",
86
- "stylelint": "^16.8.1",
86
+ "stylelint": "^16.9.0",
87
87
  "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
88
88
  "stylelint-prettier": "^5.0.2",
89
- "stylelint-scss": "^6.5.0"
89
+ "stylelint-scss": "^6.5.1"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@changesets/changelog-github": "^0.5.0",
93
- "@changesets/cli": "^2.27.7",
94
- "@commitlint/cli": "^19.4.0",
95
- "@commitlint/config-conventional": "^19.2.2",
93
+ "@changesets/cli": "^2.27.8",
94
+ "@commitlint/cli": "^19.4.1",
95
+ "@commitlint/config-conventional": "^19.4.1",
96
96
  "check-export-map": "^1.3.1",
97
- "husky": "^9.1.4",
97
+ "husky": "^9.1.5",
98
98
  "typescript": "^5.5.4",
99
99
  "vitest": "^2.0.5"
100
100
  },
@@ -39,7 +39,8 @@ module.exports = {
39
39
 
40
40
  // specify curly brace conventions for all control statements
41
41
  // https://eslint.org/docs/rules/curly
42
- curly: ['error', 'multi-line'], // multiline
42
+ // decision: enforce curly braces for all control statements because even the `multiline` option can allow subtle bugs
43
+ curly: ['error', 'all'],
43
44
 
44
45
  // require default case in switch statements
45
46
  // https://eslint.org/docs/rules/default-case
@@ -68,7 +68,7 @@ module.exports = {
68
68
  // prefer @typescript-eslint/no-shadow
69
69
  'no-shadow': 'off',
70
70
 
71
- // prefer @typescript-eslint/no-throw-literal
71
+ // prefer @typescript-eslint/only-throw-error
72
72
  'no-throw-literal': 'off',
73
73
 
74
74
  // prefer @typescript-eslint/no-unused-expressions
@@ -74,7 +74,7 @@ module.exports = {
74
74
  },
75
75
  ],
76
76
  'color-function-notation': 'modern',
77
- 'color-hex-length': 'short',
77
+ 'color-hex-length': 'long',
78
78
  'comment-empty-line-before': [
79
79
  'always',
80
80
  {