@wistia/oxlint-config 1.6.1 → 1.7.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/oxfmtConfig.mjs +1 -24
- package/package.json +20 -20
- package/rules/node.mjs +12 -2
package/oxfmtConfig.mjs
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
|
+
import { oxfmtConfig } from './oxfmtConfig.js';
|
|
1
2
|
import { defineConfig } from 'oxfmt';
|
|
2
3
|
|
|
3
|
-
export const oxfmtConfig = {
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
singleQuote: true,
|
|
6
|
-
trailingComma: 'all',
|
|
7
|
-
singleAttributePerLine: true,
|
|
8
|
-
sortImports: {
|
|
9
|
-
groups: [
|
|
10
|
-
'type-builtin',
|
|
11
|
-
'type-external',
|
|
12
|
-
['type-internal', 'type-parent', 'type-sibling', 'type-index'],
|
|
13
|
-
'value-builtin',
|
|
14
|
-
'value-external',
|
|
15
|
-
'value-internal',
|
|
16
|
-
'value-index',
|
|
17
|
-
['value-parent', 'value-sibling'],
|
|
18
|
-
'unknown',
|
|
19
|
-
],
|
|
20
|
-
newlinesBetween: false,
|
|
21
|
-
},
|
|
22
|
-
ignorePatterns: ['node_modules/**', '.yarn/**'],
|
|
23
|
-
sortPackageJson: false,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// oxlint-disable-next-line import-x/no-default-export
|
|
27
4
|
export default defineConfig(oxfmtConfig);
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
|
-
"packageManager": "yarn@4.17.
|
|
5
|
+
"packageManager": "yarn@4.17.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
|
-
"configs",
|
|
9
|
-
"rules",
|
|
10
|
-
"plugins",
|
|
11
|
-
"index.mjs",
|
|
12
|
-
"index.d.mts",
|
|
13
|
-
"oxfmtConfig.mjs",
|
|
14
|
-
"oxfmtConfig.d.mts"
|
|
8
|
+
"/configs",
|
|
9
|
+
"/rules",
|
|
10
|
+
"/plugins",
|
|
11
|
+
"/index.mjs",
|
|
12
|
+
"/index.d.mts",
|
|
13
|
+
"/oxfmtConfig.mjs",
|
|
14
|
+
"/oxfmtConfig.d.mts"
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
"./package.json": "./package.json",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"validate": "vitest run test/validate-configs.test.mjs"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"eslint": ">= 10.
|
|
63
|
-
"oxfmt": ">= 0.
|
|
64
|
-
"oxlint": ">= 1.
|
|
62
|
+
"eslint": ">= 10.6.0",
|
|
63
|
+
"oxfmt": ">= 0.57.0",
|
|
64
|
+
"oxlint": ">= 1.72.0",
|
|
65
65
|
"oxlint-tsgolint": ">= 0.23.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
73
|
+
"@eslint-react/eslint-plugin": "^5.10.0",
|
|
74
74
|
"@vitest/eslint-plugin": "^1.6.20",
|
|
75
75
|
"confusing-browser-globals": "^1.0.11",
|
|
76
76
|
"eslint-plugin-barrel-files": "^3.0.1",
|
|
77
|
-
"eslint-plugin-import-x": "^4.
|
|
77
|
+
"eslint-plugin-import-x": "^4.17.1",
|
|
78
78
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
79
|
-
"eslint-plugin-n": "^18.1
|
|
79
|
+
"eslint-plugin-n": "^18.2.1",
|
|
80
80
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
81
81
|
"eslint-plugin-playwright": "^2.10.4",
|
|
82
|
-
"eslint-plugin-storybook": "^10.4.
|
|
82
|
+
"eslint-plugin-storybook": "^10.4.6",
|
|
83
83
|
"eslint-plugin-styled-components": "^0.0.0",
|
|
84
84
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
85
85
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@changesets/changelog-github": "^0.7.0",
|
|
90
90
|
"@changesets/cli": "^2.31.0",
|
|
91
|
-
"eslint": "^10.
|
|
92
|
-
"oxfmt": "^0.
|
|
93
|
-
"oxlint": "^1.
|
|
91
|
+
"eslint": "^10.6.0",
|
|
92
|
+
"oxfmt": "^0.57.0",
|
|
93
|
+
"oxlint": "^1.72.0",
|
|
94
94
|
"oxlint-tsgolint": "^0.23.0",
|
|
95
|
-
"storybook": "^10.4.
|
|
95
|
+
"storybook": "^10.4.6",
|
|
96
96
|
"vitest": "^4.1.9"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|
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
|
-
|
|
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:
|
|
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
|