@wistia/oxlint-config 1.10.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Wistia's Oxlint configurations",
5
5
  "keywords": [
6
6
  "linter",
@@ -76,16 +76,16 @@
76
76
  "validate": "vitest run test/validate-configs.test.mjs"
77
77
  },
78
78
  "dependencies": {
79
- "@eslint-react/eslint-plugin": "^5.17.3",
80
- "@vitest/eslint-plugin": "^1.6.23",
79
+ "@eslint-react/eslint-plugin": "^5.18.0",
80
+ "@vitest/eslint-plugin": "^1.6.24",
81
81
  "confusing-browser-globals": "^1.0.11",
82
82
  "eslint-plugin-barrel-files": "^3.0.1",
83
83
  "eslint-plugin-import-x": "^4.17.1",
84
- "eslint-plugin-jest-dom": "^5.5.0",
84
+ "eslint-plugin-jest-dom": "^5.6.0",
85
85
  "eslint-plugin-n": "^18.2.2",
86
86
  "eslint-plugin-no-only-tests": "^3.4.0",
87
- "eslint-plugin-playwright": "^2.10.5",
88
- "eslint-plugin-storybook": "^10.5.3",
87
+ "eslint-plugin-playwright": "^2.11.0",
88
+ "eslint-plugin-storybook": "^10.5.5",
89
89
  "eslint-plugin-styled-components": "^0.0.0",
90
90
  "eslint-plugin-styled-components-a11y": "^2.2.1",
91
91
  "eslint-plugin-testing-library": "^7.16.2",
@@ -94,15 +94,15 @@
94
94
  "devDependencies": {
95
95
  "@changesets/changelog-github": "^0.7.0",
96
96
  "@changesets/cli": "^2.31.1",
97
- "eslint": "^10.7.0",
97
+ "eslint": "^10.8.0",
98
98
  "oxfmt": "^0.60.0",
99
99
  "oxlint": "^1.75.0",
100
100
  "oxlint-tsgolint": "^7.0.2001",
101
- "storybook": "^10.5.3",
101
+ "storybook": "^10.5.5",
102
102
  "vitest": "^4.1.10"
103
103
  },
104
104
  "peerDependencies": {
105
- "eslint": ">= 10.7.0",
105
+ "eslint": ">= 10.8.0",
106
106
  "oxfmt": ">= 0.60.0",
107
107
  "oxlint": ">= 1.75.0",
108
108
  "oxlint-tsgolint": ">= 7.0.2001"
@@ -196,6 +196,10 @@ export const playwrightRules = {
196
196
  // https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/no-duplicate-slow.md
197
197
  'eslint-plugin-playwright/no-duplicate-slow': 'error',
198
198
 
199
+ // Disallow assertions on a Locator that can never fail
200
+ // https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/no-unnecessary-assertions.md
201
+ 'eslint-plugin-playwright/no-unnecessary-assertions': 'error',
202
+
199
203
  // Enforce blank lines between test blocks
200
204
  // https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/consistent-spacing-between-blocks.md
201
205
  // Decision: style preference, left to a formatter
package/rules/unicorn.mjs CHANGED
@@ -65,15 +65,21 @@ export const unicornRules = {
65
65
 
66
66
  // Enforce specific import styles per module
67
67
  // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/import-style.html
68
- // Override built-in defaults: this rule ships preferring default imports
69
- // for `chalk`, `path`, and `node:path`. We require named imports instead.
68
+ // Override built-in defaults. Entries merge into the built-in style per key
69
+ // rather than replacing it, so every key we want must be set explicitly.
70
+ // - `node:path` ships default-only. Of all node builtins the rule constrains
71
+ // only `node:path` (default-only) and `node:util` (named-only); `fs`,
72
+ // `os`, `crypto`, `url`, `events` and the rest are unconstrained. Named is
73
+ // our style everywhere else, so override it.
74
+ // - `chalk` ships default-only, which is right for the pre-built instance
75
+ // (chalk's whole main API) but wrong for `import { Chalk } from 'chalk'`,
76
+ // the class you instantiate for a custom instance. Both are legitimate.
70
77
  'unicorn/import-style': [
71
78
  'error',
72
79
  {
73
80
  styles: {
74
81
  'node:path': { named: true, default: false },
75
- path: { named: true, default: false },
76
- chalk: { named: true, default: false },
82
+ chalk: { named: true, default: true },
77
83
  },
78
84
  },
79
85
  ],