@wistia/oxlint-config 1.6.1 → 1.7.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/package.json +3 -3
  2. package/rules/node.mjs +12 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "Wistia's Oxlint configurations",
5
5
  "packageManager": "yarn@4.17.0",
6
6
  "type": "module",
@@ -61,7 +61,7 @@
61
61
  "peerDependencies": {
62
62
  "eslint": ">= 10.5.0",
63
63
  "oxfmt": ">= 0.55.0",
64
- "oxlint": ">= 1.71.0",
64
+ "oxlint": ">= 1.72.0",
65
65
  "oxlint-tsgolint": ">= 0.23.0"
66
66
  },
67
67
  "peerDependenciesMeta": {
@@ -90,7 +90,7 @@
90
90
  "@changesets/cli": "^2.31.0",
91
91
  "eslint": "^10.5.0",
92
92
  "oxfmt": "^0.55.0",
93
- "oxlint": "^1.71.0",
93
+ "oxlint": "^1.72.0",
94
94
  "oxlint-tsgolint": "^0.23.0",
95
95
  "storybook": "^10.4.5",
96
96
  "vitest": "^4.1.9"
package/rules/node.mjs CHANGED
@@ -33,6 +33,15 @@ export const nodeRules = {
33
33
  // https://oxc.rs/docs/guide/usage/linter/rules/node/global-require.html
34
34
  'node/global-require': 'error',
35
35
 
36
+ // Disallow require calls to be mixed with regular variable declarations
37
+ // https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html
38
+ 'node/no-mixed-requires': 'error',
39
+
40
+ // Disallow synchronous methods
41
+ // https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
42
+ // Decision: too restrictive for general use
43
+ 'node/no-sync': 'off',
44
+
36
45
  //eslint-plugin-n rules via jsPlugins
37
46
 
38
47
  // Disallow deprecated APIs
@@ -87,7 +96,8 @@ export const nodeRules = {
87
96
 
88
97
  // Disallow require calls to be mixed with regular variable declarations
89
98
  // https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-mixed-requires.md
90
- 'n/no-mixed-requires': 'error',
99
+ // Decision: handled by native node/no-mixed-requires
100
+ 'n/no-mixed-requires': 'off',
91
101
 
92
102
  // Restrict usage of specified node imports
93
103
  // https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-import.md
@@ -201,7 +211,7 @@ export const nodeRules = {
201
211
 
202
212
  // Disallow synchronous methods
203
213
  // https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
204
- // Decision: too restrictive for general use
214
+ // Decision: handled by native node/no-sync
205
215
  'n/no-sync': 'off',
206
216
 
207
217
  // Enforce the use of the global crypto