@slowpoketail/oxc 1.3.0 → 1.4.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.
- package/README.md +16 -6
- package/dist/lint/base.mjs +1 -1
- package/dist/lint/index.d.mts +2 -0
- package/dist/lint/index.mjs +1 -1
- package/dist/lint/jest.d.mts +5 -0
- package/dist/lint/jest.mjs +1 -0
- package/dist/lint/vitest.d.mts +5 -0
- package/dist/lint/vitest.mjs +1 -0
- package/package.json +7 -2
- package/dist/lint.d.mts +0 -2
- package/dist/lint.mjs +0 -1
package/README.md
CHANGED
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
This package contains shareable configurations of Oxlint and Oxfmt.
|
|
4
4
|
|
|
5
5
|
At this time, all configuration dependencies are included for you when this package is installed --
|
|
6
|
-
even if you don't explictly use them, for convenience.
|
|
7
|
-
|
|
8
|
-
JavaScript plugins use `fileURLToPath(import.meta.resolve(...))` to resolve their ESM entry points
|
|
9
|
-
from this package rather than from the consuming project. This also avoids UnoCSS's incompatible
|
|
10
|
-
CommonJS export shape. Locally linked copies must have their dependencies installed and be built
|
|
11
|
-
before use.
|
|
6
|
+
even if you don't explictly use them, for convenience. I understand this does increase install size,
|
|
7
|
+
however. May switch this in the future in a breaking release.
|
|
12
8
|
|
|
13
9
|
## Usage
|
|
14
10
|
|
|
@@ -25,6 +21,11 @@ In `oxlint.config.ts`:
|
|
|
25
21
|
|
|
26
22
|
```ts
|
|
27
23
|
import lint from "@slowpoketail/oxc/lint";
|
|
24
|
+
// alternatively, import your framework's config:
|
|
25
|
+
// import next from "@slowpoketail/oxc/lint/next";
|
|
26
|
+
// as well as any additional plugins you might need
|
|
27
|
+
// import jest from "@slowpoketail/oxc/lint/jest";
|
|
28
|
+
// import tailwind from "@slowpoketail/oxc/lint/tailwind";
|
|
28
29
|
import { defineConfig } from "oxlint";
|
|
29
30
|
|
|
30
31
|
export default defineConfig({
|
|
@@ -44,3 +45,12 @@ export default defineConfig({
|
|
|
44
45
|
// Other overrides
|
|
45
46
|
});
|
|
46
47
|
```
|
|
48
|
+
|
|
49
|
+
## Additional Notes
|
|
50
|
+
|
|
51
|
+
- The export at `@slowpoketail/oxc/lint` is the same as the base preset
|
|
52
|
+
`@slowpoketail/oxc/lint/base`.
|
|
53
|
+
- Extra, potentially unused packages at this time include:
|
|
54
|
+
- `@unocss/eslint-plugin`
|
|
55
|
+
- `eslint-plugin-better-tailwindcss`
|
|
56
|
+
- `eslint-plugin-perfectionist`
|
package/dist/lint/base.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"eslint-plugin-perfectionist";import{fileURLToPath as t}from"node:url";const n={categories:{correctness:`error`,perf:`warn`,style:`warn`,suspicious:`warn`},jsPlugins:[{name:`perfectionist`,specifier:t(import.meta.resolve(`eslint-plugin-perfectionist`))}],options:{typeAware:!0,typeCheck:!0},plugins:[`eslint`,`import`,`
|
|
1
|
+
import e from"eslint-plugin-perfectionist";import{fileURLToPath as t}from"node:url";const n={categories:{correctness:`error`,perf:`warn`,style:`warn`,suspicious:`warn`},jsPlugins:[{name:`perfectionist`,specifier:t(import.meta.resolve(`eslint-plugin-perfectionist`))}],options:{typeAware:!0,typeCheck:!0},plugins:[`eslint`,`import`,`jsdoc`,`promise`,`typescript`,`unicorn`],rules:{"eslint/capitalized-comments":`off`,"eslint/new-cap":`off`,"eslint/one-var":`off`,"eslint/sort-imports":`off`,"import/exports-last":`off`,"import/newline-after-import":`warn`,"import/no-default-export":`off`,"import/no-named-as-default-member":`off`,"import/no-named-export":`off`,"import/no-unassigned-import":[`error`,{allow:[`**/*.css`,`**/*.scss`,`**/*.less`,`**/*.styl`,`**/*.sass`]}],"oxc/no-rest-spread-properties":`off`,"perfectionist/sort-imports":`off`,...e.configs[`recommended-natural`].rules,"eslint/id-length":`off`,"eslint/init-declarations":`off`,"eslint/max-statements":[`error`,{ignoreTopLevelFunctions:!0,max:32}],"eslint/no-continue":`off`,"eslint/no-magic-numbers":`off`,"eslint/no-ternary":`off`,"eslint/no-undefined":`off`,"import/group-exports":`off`,"import/prefer-default-export":`off`,"unicorn/no-null":`off`}};export{n as default};
|
package/dist/lint/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default}from"./base.mjs";
|
|
1
|
+
export{default}from"./base.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={env:{browser:!0,jest:!0},plugins:[`jest`]};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={env:{browser:!0,vitest:!0},plugins:[`vitest`]};export{e as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slowpoketail/oxc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Shareable configurations for Oxlint and Oxfmt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@slowpoketail",
|
|
@@ -33,10 +33,12 @@
|
|
|
33
33
|
"./lint": "./dist/lint/index.mjs",
|
|
34
34
|
"./lint/astro": "./dist/lint/astro.mjs",
|
|
35
35
|
"./lint/base": "./dist/lint/base.mjs",
|
|
36
|
+
"./lint/jest": "./dist/lint/jest.mjs",
|
|
36
37
|
"./lint/next": "./dist/lint/next.mjs",
|
|
37
38
|
"./lint/react": "./dist/lint/react.mjs",
|
|
38
39
|
"./lint/tailwind": "./dist/lint/tailwind.mjs",
|
|
39
40
|
"./lint/unocss": "./dist/lint/unocss.mjs",
|
|
41
|
+
"./lint/vitest": "./dist/lint/vitest.mjs",
|
|
40
42
|
"./lint/wrenjs": "./dist/lint/wrenjs.mjs",
|
|
41
43
|
"./package.json": "./package.json"
|
|
42
44
|
},
|
|
@@ -50,6 +52,9 @@
|
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"@types/node": "26.6.5",
|
|
55
|
+
"oxfmt": "0.73.0",
|
|
56
|
+
"oxlint": "1.88.0",
|
|
57
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
53
58
|
"typescript": "7.0.2",
|
|
54
59
|
"vite-plus": "1.3.0"
|
|
55
60
|
},
|
|
@@ -71,7 +76,7 @@
|
|
|
71
76
|
},
|
|
72
77
|
"scripts": {
|
|
73
78
|
"build": "vp pack",
|
|
74
|
-
"check": "
|
|
79
|
+
"check": "oxfmt && oxlint --fix --fix-suggestions",
|
|
75
80
|
"dev": "vp pack --watch",
|
|
76
81
|
"test": "vp test"
|
|
77
82
|
}
|
package/dist/lint.d.mts
DELETED
package/dist/lint.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./lint/base.mjs";
|