@wistia/oxlint-config 0.2.0 → 0.3.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/configs/javascript.mjs +13 -0
- package/configs/node.mjs +8 -0
- package/configs/playwright.mjs +7 -0
- package/configs/react.mjs +11 -0
- package/configs/storybook.mjs +7 -0
- package/configs/styled-components.mjs +7 -0
- package/configs/testing-library.mjs +7 -0
- package/configs/typescript.mjs +20 -0
- package/configs/vitest.mjs +8 -0
- package/index.mjs +24 -0
- package/package.json +10 -16
- package/rules/{base.jsonc → base.mjs} +179 -184
- package/rules/{import.jsonc → import.mjs} +30 -32
- package/rules/{node.jsonc → node.mjs} +37 -39
- package/rules/{playwright.jsonc → playwright.mjs} +52 -54
- package/rules/{promise.jsonc → promise.mjs} +20 -22
- package/rules/{react-a11y.jsonc → react-a11y.mjs} +48 -50
- package/rules/{react.jsonc → react.mjs} +55 -57
- package/rules/{storybook.jsonc → storybook.mjs} +20 -22
- package/rules/styled-components.mjs +151 -0
- package/rules/{testing-library.jsonc → testing-library.mjs} +48 -50
- package/rules/{typescript.jsonc → typescript.mjs} +134 -136
- package/rules/{vitest.jsonc → vitest.mjs} +87 -89
- package/configs/javascript.jsonc +0 -4
- package/configs/node.jsonc +0 -4
- package/configs/playwright.jsonc +0 -4
- package/configs/react.jsonc +0 -4
- package/configs/storybook.jsonc +0 -4
- package/configs/styled-components.jsonc +0 -4
- package/configs/testing-library.jsonc +0 -4
- package/configs/typescript.jsonc +0 -4
- package/configs/vitest.jsonc +0 -4
- package/jsoncLoader.d.mts +0 -10
- package/jsoncLoader.mjs +0 -27
- package/rules/styled-components.jsonc +0 -153
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineConfig } from 'oxlint';
|
|
2
|
+
import { baseRules } from '../rules/base.mjs';
|
|
3
|
+
import { importRules } from '../rules/import.mjs';
|
|
4
|
+
import { promiseRules } from '../rules/promise.mjs';
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [...baseRules.plugins, ...importRules.plugins, ...promiseRules.plugins],
|
|
8
|
+
rules: {
|
|
9
|
+
...baseRules.rules,
|
|
10
|
+
...importRules.rules,
|
|
11
|
+
...promiseRules.rules,
|
|
12
|
+
},
|
|
13
|
+
});
|
package/configs/node.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig } from 'oxlint';
|
|
2
|
+
import { reactRules } from '../rules/react.mjs';
|
|
3
|
+
import { reactA11yRules } from '../rules/react-a11y.mjs';
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [...reactRules.plugins, ...reactA11yRules.plugins],
|
|
7
|
+
rules: {
|
|
8
|
+
...reactRules.rules,
|
|
9
|
+
...reactA11yRules.rules,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineConfig } from 'oxlint';
|
|
2
|
+
import { baseRules } from '../rules/base.mjs';
|
|
3
|
+
import { importRules } from '../rules/import.mjs';
|
|
4
|
+
import { promiseRules } from '../rules/promise.mjs';
|
|
5
|
+
import { typescriptRules } from '../rules/typescript.mjs';
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
plugins: [
|
|
9
|
+
...baseRules.plugins,
|
|
10
|
+
...importRules.plugins,
|
|
11
|
+
...promiseRules.plugins,
|
|
12
|
+
...typescriptRules.plugins,
|
|
13
|
+
],
|
|
14
|
+
rules: {
|
|
15
|
+
...baseRules.rules,
|
|
16
|
+
...importRules.rules,
|
|
17
|
+
...promiseRules.rules,
|
|
18
|
+
...typescriptRules.rules,
|
|
19
|
+
},
|
|
20
|
+
});
|
package/index.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Rules
|
|
2
|
+
export { baseRules } from './rules/base.mjs';
|
|
3
|
+
export { importRules } from './rules/import.mjs';
|
|
4
|
+
export { promiseRules } from './rules/promise.mjs';
|
|
5
|
+
export { typescriptRules } from './rules/typescript.mjs';
|
|
6
|
+
export { reactRules } from './rules/react.mjs';
|
|
7
|
+
export { reactA11yRules } from './rules/react-a11y.mjs';
|
|
8
|
+
export { nodeRules } from './rules/node.mjs';
|
|
9
|
+
export { vitestRules } from './rules/vitest.mjs';
|
|
10
|
+
export { playwrightRules } from './rules/playwright.mjs';
|
|
11
|
+
export { storybookRules } from './rules/storybook.mjs';
|
|
12
|
+
export { styledComponentsRules } from './rules/styled-components.mjs';
|
|
13
|
+
export { testingLibraryRules } from './rules/testing-library.mjs';
|
|
14
|
+
|
|
15
|
+
// Configs
|
|
16
|
+
export { default as javascriptConfig } from './configs/javascript.mjs';
|
|
17
|
+
export { default as typescriptConfig } from './configs/typescript.mjs';
|
|
18
|
+
export { default as reactConfig } from './configs/react.mjs';
|
|
19
|
+
export { default as nodeConfig } from './configs/node.mjs';
|
|
20
|
+
export { default as vitestConfig } from './configs/vitest.mjs';
|
|
21
|
+
export { default as playwrightConfig } from './configs/playwright.mjs';
|
|
22
|
+
export { default as storybookConfig } from './configs/storybook.mjs';
|
|
23
|
+
export { default as styledComponentsConfig } from './configs/styled-components.mjs';
|
|
24
|
+
export { default as testingLibraryConfig } from './configs/testing-library.mjs';
|
package/package.json
CHANGED
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/oxlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Wistia's Oxlint configurations",
|
|
5
5
|
"packageManager": "yarn@4.13.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"configs",
|
|
9
9
|
"rules",
|
|
10
|
-
"
|
|
11
|
-
"jsoncLoader.d.mts"
|
|
10
|
+
"index.mjs"
|
|
12
11
|
],
|
|
13
12
|
"exports": {
|
|
14
13
|
"./package.json": "./package.json",
|
|
15
14
|
"./configs/*": "./configs/*",
|
|
16
15
|
"./rules/*": "./rules/*",
|
|
17
|
-
".": "./
|
|
18
|
-
"./javascript": "./configs/javascript.
|
|
19
|
-
"./typescript": "./configs/typescript.
|
|
20
|
-
"./react": "./configs/react.
|
|
21
|
-
"./node": "./configs/node.
|
|
22
|
-
"./vitest": "./configs/vitest.
|
|
23
|
-
"./jsoncLoader": {
|
|
24
|
-
"types": "./jsoncLoader.d.mts",
|
|
25
|
-
"default": "./jsoncLoader.mjs"
|
|
26
|
-
}
|
|
16
|
+
".": "./index.mjs",
|
|
17
|
+
"./javascript": "./configs/javascript.mjs",
|
|
18
|
+
"./typescript": "./configs/typescript.mjs",
|
|
19
|
+
"./react": "./configs/react.mjs",
|
|
20
|
+
"./node": "./configs/node.mjs",
|
|
21
|
+
"./vitest": "./configs/vitest.mjs"
|
|
27
22
|
},
|
|
28
23
|
"scripts": {
|
|
29
24
|
"changeset": "changeset",
|
|
@@ -46,13 +41,12 @@
|
|
|
46
41
|
"eslint-plugin-storybook": "^10.3.4",
|
|
47
42
|
"eslint-plugin-styled-components": "^0.0.0",
|
|
48
43
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
49
|
-
"eslint-plugin-testing-library": "^7.16.2"
|
|
50
|
-
"jsonc-parser": "^3.3.1"
|
|
44
|
+
"eslint-plugin-testing-library": "^7.16.2"
|
|
51
45
|
},
|
|
52
46
|
"devDependencies": {
|
|
53
47
|
"@changesets/changelog-github": "^0.6.0",
|
|
54
48
|
"@changesets/cli": "^2.30.0",
|
|
55
|
-
"eslint": "^10.
|
|
49
|
+
"eslint": "^10.2.0",
|
|
56
50
|
"oxfmt": "^0.43.0",
|
|
57
51
|
"oxlint": "^1.58.0",
|
|
58
52
|
"storybook": "^10.3.4",
|