@genesislcap/oxlint-config 14.442.0 → 14.443.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 +18 -5
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@ Published **Oxlint** rules for Genesis Foundation UI. It is the lint analogue of
|
|
|
10
10
|
|
|
11
11
|
## How it runs in the monorepo
|
|
12
12
|
|
|
13
|
-
1. **`npm run lint
|
|
13
|
+
1. **`npm run lint`** / **`genx lint`** runs **Oxlint** (first, before Oxfmt and Stylelint) from the **current working directory**.
|
|
14
14
|
2. The repo root has a small [`.oxlintrc.json`](../../../../.oxlintrc.json) that **only** `extends` this package so `oxlint` finds the same rules from the workspace root.
|
|
15
|
-
3. Nested apps that run `genx lint
|
|
15
|
+
3. Nested apps that run `genx lint` from their own folder may need a local stub `extends` (see Consumption) so config resolves correctly.
|
|
16
16
|
|
|
17
17
|
## Import rules and ESLint
|
|
18
18
|
|
|
@@ -32,7 +32,17 @@ JS plugins are **alpha** in Oxlint; **type-aware** TypeScript rules still requir
|
|
|
32
32
|
|
|
33
33
|
**In this repository:** change rules only in **this package’s** [`.oxlintrc.json`](./.oxlintrc.json). Keep the root stub in sync with the `extends` pattern below.
|
|
34
34
|
|
|
35
|
-
**Downstream:**
|
|
35
|
+
**Downstream:** installing `@genesislcap/oxlint-config` automatically brings in `oxlint`, `oxfmt`, and the required ESLint plugins as bundled dependencies — no separate installs needed. At your app root, add:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@genesislcap/oxlint-config": "latest"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Then create `.oxlintrc.json`:
|
|
36
46
|
|
|
37
47
|
```json
|
|
38
48
|
{
|
|
@@ -41,13 +51,16 @@ JS plugins are **alpha** in Oxlint; **type-aware** TypeScript rules still requir
|
|
|
41
51
|
}
|
|
42
52
|
```
|
|
43
53
|
|
|
54
|
+
And copy [`.oxfmtrc.json`](https://github.com/genesislcap/foundation-ui/blob/master/.oxfmtrc.json) from the `foundation-ui` repo for Oxfmt config (no extra package needed).
|
|
55
|
+
|
|
44
56
|
If you run Oxlint only from a **subfolder** of a monorepo, ensure a `.oxlintrc.json` in that folder can resolve the shared config (for example by extending a path or package that exists from that directory).
|
|
45
57
|
|
|
46
|
-
##
|
|
58
|
+
## Bundled dependencies
|
|
47
59
|
|
|
48
|
-
|
|
60
|
+
Shipped as `dependencies` in [`package.json`](./package.json) so they install automatically:
|
|
49
61
|
|
|
50
62
|
- `oxlint`
|
|
63
|
+
- `oxfmt`
|
|
51
64
|
- `eslint-import-resolver-typescript`
|
|
52
65
|
- `eslint-plugin-import`
|
|
53
66
|
- `eslint-plugin-unused-imports`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/oxlint-config",
|
|
3
3
|
"description": "Oxlint rules derived from @genesislcap/eslint-config and eslint.config.mjs",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.443.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"license.txt"
|
|
14
14
|
],
|
|
15
|
-
"
|
|
15
|
+
"dependencies": {
|
|
16
16
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
17
17
|
"eslint-plugin-import": "^2.27.5",
|
|
18
18
|
"eslint-plugin-unused-imports": "^4.0.0",
|
|
19
|
-
"
|
|
19
|
+
"oxfmt": "^0.44.0",
|
|
20
|
+
"oxlint": "^1.59.0"
|
|
20
21
|
},
|
|
21
22
|
"repository": {
|
|
22
23
|
"type": "git",
|
|
@@ -30,5 +31,5 @@
|
|
|
30
31
|
"lint": "genx lint -l ox",
|
|
31
32
|
"lint:fix": "genx lint -l ox --fix"
|
|
32
33
|
},
|
|
33
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "057cb7a0d06f339094c8634a413e4a6e1aa95659"
|
|
34
35
|
}
|