@wistia/eslint-config 2.10.0 → 2.10.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.
@@ -18,7 +18,7 @@ jobs:
18
18
  timeout-minutes: 5
19
19
  steps:
20
20
  - name: Check out Git repository
21
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
22
22
  with:
23
23
  # by default this only fetches the latest commit,
24
24
  # but more commits are needed to validate a range of commit messages
@@ -20,7 +20,7 @@ jobs:
20
20
  timeout-minutes: 5
21
21
  steps:
22
22
  - name: Check out Git repository
23
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24
24
  with:
25
25
  ref: ${{ github.event.pull_request.head.sha || github.ref }}
26
26
 
@@ -21,7 +21,7 @@ jobs:
21
21
  timeout-minutes: 5
22
22
  steps:
23
23
  - name: Check out Git repository
24
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
25
25
  with:
26
26
  ref: ${{ github.event.inputs.commit_hash || github.event.pull_request.head.sha || github.sha }}
27
27
 
@@ -31,7 +31,7 @@ jobs:
31
31
  repositories: eslint-config
32
32
 
33
33
  - name: Check out Git repository
34
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
35
35
  with:
36
36
  persist-credentials: false
37
37
  # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
@@ -49,7 +49,7 @@ jobs:
49
49
  echo "NEW_PACKAGE_VERSION=$(yarn changeset status --output=release.json && jq -r '.releases[0].newVersion' release.json && rm release.json)" >> "$GITHUB_ENV"
50
50
 
51
51
  - name: Create Release Pull Request or Publish to npm
52
- uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0
52
+ uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
53
53
  id: changesets
54
54
  with:
55
55
  createGithubReleases: true
@@ -20,7 +20,7 @@ jobs:
20
20
  timeout-minutes: 5
21
21
  steps:
22
22
  - name: Check out Git repository
23
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24
24
  with:
25
25
  ref: ${{ github.event.pull_request.head.sha || github.ref }}
26
26
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @wistia/eslint-config
2
2
 
3
+ ## 2.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#506](https://github.com/wistia/eslint-config/pull/506) [`9598e0a`](https://github.com/wistia/eslint-config/commit/9598e0aef50271c54e8cd9d078dfc26185cd0c56) Thanks [@okize](https://github.com/okize)! - fix: update `curly` rule to go back to previous setting
8
+
3
9
  ## 2.10.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "packageManager": "yarn@4.14.1",
6
6
  "type": "module",
@@ -38,15 +38,15 @@
38
38
  "test:export": "check-export-map"
39
39
  },
40
40
  "dependencies": {
41
- "@eslint-react/eslint-plugin": "^5.8.3",
41
+ "@eslint-react/eslint-plugin": "^5.8.10",
42
42
  "@eslint/compat": "^2.1.0",
43
43
  "@eslint/js": "^10.0.1",
44
44
  "@stylistic/eslint-plugin": "^5.10.0",
45
- "@typescript-eslint/eslint-plugin": "^8.59.4",
46
- "@typescript-eslint/parser": "^8.59.4",
47
- "@vitest/eslint-plugin": "^1.6.17",
45
+ "@typescript-eslint/eslint-plugin": "^8.60.1",
46
+ "@typescript-eslint/parser": "^8.60.1",
47
+ "@vitest/eslint-plugin": "^1.6.19",
48
48
  "confusing-browser-globals": "^1.0.11",
49
- "eslint-import-resolver-typescript": "^4.4.4",
49
+ "eslint-import-resolver-typescript": "^4.4.5",
50
50
  "eslint-plugin-barrel-files": "^3.0.1",
51
51
  "eslint-plugin-filenames": "^1.3.2",
52
52
  "eslint-plugin-import-x": "^4.16.2",
@@ -57,9 +57,9 @@
57
57
  "eslint-plugin-n": "^18.0.1",
58
58
  "eslint-plugin-no-only-tests": "^3.4.0",
59
59
  "eslint-plugin-playwright": "^2.10.4",
60
- "eslint-plugin-prettier": "^5.5.5",
60
+ "eslint-plugin-prettier": "^5.5.6",
61
61
  "eslint-plugin-promise": "^7.3.0",
62
- "eslint-plugin-storybook": "^10.4.0",
62
+ "eslint-plugin-storybook": "^10.4.2",
63
63
  "eslint-plugin-styled-components-a11y": "^2.2.1",
64
64
  "eslint-plugin-testing-library": "^7.16.2",
65
65
  "globals": "^17.6.0",
@@ -68,16 +68,16 @@
68
68
  "devDependencies": {
69
69
  "@changesets/changelog-github": "^0.7.0",
70
70
  "@changesets/cli": "^2.31.0",
71
- "@commitlint/cli": "^21.0.1",
72
- "@commitlint/config-conventional": "^21.0.1",
71
+ "@commitlint/cli": "^21.0.2",
72
+ "@commitlint/config-conventional": "^21.0.2",
73
73
  "check-export-map": "^1.3.1",
74
- "eslint": "^10.4.0",
74
+ "eslint": "^10.4.1",
75
75
  "glob": "^13.0.6",
76
76
  "husky": "^9.1.7",
77
77
  "prettier": "^3.8.3",
78
- "storybook": "^10.4.0",
78
+ "storybook": "^10.4.2",
79
79
  "typescript": "^6.0.3",
80
- "vitest": "^4.1.7"
80
+ "vitest": "^4.1.8"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "eslint": ">= 10",
@@ -322,8 +322,8 @@ export default {
322
322
 
323
323
  // Enforce consistent brace style for all control statements
324
324
  // https://eslint.org/docs/rules/curly
325
- // decision: disabled because this is a formatter concern (special case - can be used in some situations)
326
- curly: 0,
325
+ // decision: enforce curly braces for all control statements because even the `multiline` option can allow subtle bugs
326
+ curly: ['error', 'all'],
327
327
 
328
328
  // Require default cases in switch statements
329
329
  // https://eslint.org/docs/rules/default-case
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.59.4",
67
+ "parser": "typescript-eslint/parser@8.60.1",
68
68
  "parserOptions": {
69
69
  "requireConfigFile": false,
70
70
  },
@@ -80,7 +80,7 @@
80
80
  "filenames",
81
81
  "import-x:eslint-plugin-import-x@4.16.2",
82
82
  "js:@eslint/js@10.0.1",
83
- "prettier:eslint-plugin-prettier@5.5.5",
83
+ "prettier:eslint-plugin-prettier@5.5.6",
84
84
  "promise",
85
85
  ],
86
86
  "rules": {
@@ -737,7 +737,7 @@
737
737
  2,
738
738
  ],
739
739
  "curly": [
740
- 0,
740
+ 2,
741
741
  "all",
742
742
  ],
743
743
  "default-case": [
@@ -1204,7 +1204,7 @@
1204
1204
  },
1205
1205
  "plugins": [
1206
1206
  "@",
1207
- "@eslint-react:@eslint-react/eslint-plugin@5.8.3",
1207
+ "@eslint-react:@eslint-react/eslint-plugin@5.8.10",
1208
1208
  "jsx-a11y:eslint-plugin-jsx-a11y@6.10.2",
1209
1209
  ],
1210
1210
  "rules": {
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.59.4",
67
+ "parser": "typescript-eslint/parser@8.60.1",
68
68
  "parserOptions": {
69
69
  "ecmaVersion": 2024,
70
70
  "project": "./tsconfig.json",
@@ -78,11 +78,11 @@
78
78
  "plugins": [
79
79
  "@",
80
80
  "@stylistic:@stylistic/eslint-plugin@5.10.0",
81
- "@typescript-eslint:@typescript-eslint/eslint-plugin@8.59.4",
81
+ "@typescript-eslint:@typescript-eslint/eslint-plugin@8.60.1",
82
82
  "barrel-files:eslint-plugin-barrel-files@3.0.1",
83
83
  "filenames",
84
84
  "import-x:eslint-plugin-import-x@4.16.2",
85
- "prettier:eslint-plugin-prettier@5.5.5",
85
+ "prettier:eslint-plugin-prettier@5.5.6",
86
86
  "promise",
87
87
  ],
88
88
  "rules": {
@@ -1174,7 +1174,7 @@
1174
1174
  2,
1175
1175
  ],
1176
1176
  "curly": [
1177
- 0,
1177
+ 2,
1178
1178
  "all",
1179
1179
  ],
1180
1180
  "default-case": [