@mouse_484/oxc-config 0.4.0 → 0.4.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/README.md +29 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @mouse_484/oxc-config
|
|
2
|
+
|
|
3
|
+
Oxlint Config by me
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
- Oxlint: recomended latest (required `jsPlugin` support)
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
Install the packages
|
|
10
|
+
```sh
|
|
11
|
+
npm install -D oxlint @mouse_484/oxc-config
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Create a `oxlint.config.ts` and add the following code:
|
|
15
|
+
```js
|
|
16
|
+
import { lint } from '@mouse_484/oxc-config'
|
|
17
|
+
|
|
18
|
+
export default lint(
|
|
19
|
+
{
|
|
20
|
+
// custom options
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
// oxlint config
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Features
|
|
29
|
+
See [configs](https://github.com/mouse484/config/tree/main/packages/oxc/src/configs) for all available presets and options.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mouse_484/oxc-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"author": "mouse_484",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/mouse484/config/tree/main/packages/oxc",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"defu": "^6.1.7",
|
|
23
23
|
"eslint-plugin-antfu": "^3.2.3",
|
|
24
24
|
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
25
|
-
"eslint-plugin-perfectionist": "^5.10.
|
|
26
|
-
"oxlint": "^1.
|
|
25
|
+
"eslint-plugin-perfectionist": "^5.10.1",
|
|
26
|
+
"oxlint": "^1.77.0",
|
|
27
27
|
"oxlint-tsgolint": "^7.0.2001"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"ts-morph": "
|
|
33
|
+
"ts-morph": "28.0.0"
|
|
34
34
|
}
|
|
35
35
|
}
|