@wistia/oxlint-config 0.6.0 → 0.6.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": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Wistia's Oxlint configurations",
5
5
  "packageManager": "yarn@4.14.1",
6
6
  "type": "module",
@@ -62,22 +62,22 @@
62
62
  "eslint-plugin-jest-dom": "^5.5.0",
63
63
  "eslint-plugin-n": "^17.24.0",
64
64
  "eslint-plugin-no-only-tests": "^3.3.0",
65
- "eslint-plugin-playwright": "^2.10.1",
65
+ "eslint-plugin-playwright": "^2.10.2",
66
66
  "eslint-plugin-storybook": "^10.3.5",
67
67
  "eslint-plugin-styled-components": "^0.0.0",
68
68
  "eslint-plugin-styled-components-a11y": "^2.2.1",
69
69
  "eslint-plugin-testing-library": "^7.16.2",
70
- "typescript": "^6.0.2"
70
+ "typescript": "^6.0.3"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@changesets/changelog-github": "^0.6.0",
74
- "@changesets/cli": "^2.30.0",
75
- "eslint": "^10.2.0",
76
- "oxfmt": "^0.45.0",
77
- "oxlint": "^1.60.0",
78
- "oxlint-tsgolint": "^0.21.1",
74
+ "@changesets/cli": "^2.31.0",
75
+ "eslint": "^10.2.1",
76
+ "oxfmt": "^0.47.0",
77
+ "oxlint": "^1.62.0",
78
+ "oxlint-tsgolint": "^0.22.1",
79
79
  "storybook": "^10.3.5",
80
- "vitest": "^4.1.4"
80
+ "vitest": "^4.1.5"
81
81
  },
82
82
  "engines": {
83
83
  "node": "^20.19.0 || ^22.13.0 || >=24 || >=26"
package/rules/base.mjs CHANGED
@@ -15,6 +15,10 @@ export const baseRules = {
15
15
  // https://oxc.rs/docs/guide/usage/linter/rules/eslint/for-direction.html
16
16
  'eslint/for-direction': 'error',
17
17
 
18
+ // Enforce return statements in getters
19
+ // https://oxc.rs/docs/guide/usage/linter/rules/eslint/getter-return.html
20
+ 'eslint/getter-return': ['error', { allowImplicit: true }],
21
+
18
22
  // Disallow using an async function as a Promise executor
19
23
  // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-async-promise-executor.html
20
24
  'eslint/no-async-promise-executor': 'error',
@@ -167,6 +171,10 @@ export const baseRules = {
167
171
  // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unmodified-loop-condition.html
168
172
  'eslint/no-unmodified-loop-condition': 'error',
169
173
 
174
+ // Disallow unreachable code after return, throw, continue, and break statements
175
+ // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unreachable.html
176
+ 'eslint/no-unreachable': 'error',
177
+
170
178
  // Disallow control flow statements in finally blocks
171
179
  // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unsafe-finally.html
172
180
  'eslint/no-unsafe-finally': 'error',
package/rules/import.mjs CHANGED
@@ -87,6 +87,15 @@ export const importRules = {
87
87
  // https://oxc.rs/docs/guide/usage/linter/rules/import/no-webpack-loader-syntax.html
88
88
  'import/no-webpack-loader-syntax': 'error',
89
89
 
90
+ // Ensure consistent use of file extension within the import path
91
+ // https://oxc.rs/docs/guide/usage/linter/rules/import/extensions.html
92
+ 'import/extensions': 'error',
93
+
94
+ // Require modules with a single export to use a default export
95
+ // https://oxc.rs/docs/guide/usage/linter/rules/import/prefer-default-export.html
96
+ // decision: conflicts with no-default-export, which is enabled
97
+ 'import/prefer-default-export': 'off',
98
+
90
99
  //rules via jsPlugins (eslint-plugin-import-x)
91
100
 
92
101
  // Ensure imports point to files/modules that can be resolved
@@ -60,6 +60,10 @@ export const typescriptRules = {
60
60
  // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-indexed-object-style.html
61
61
  'typescript/consistent-indexed-object-style': 'error',
62
62
 
63
+ // Require return statements to either always or never specify values
64
+ // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-return.html
65
+ 'typescript/consistent-return': 'error',
66
+
63
67
  // Enforce consistent usage of type assertions
64
68
  // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-assertions.html
65
69
  'typescript/consistent-type-assertions': 'error',