@archon-research/oxlint-config 0.1.0 → 0.2.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 +40 -0
- package/package.json +4 -2
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @archon-research/oxlint-config
|
|
2
|
+
|
|
3
|
+
Shared Oxlint configuration presets for consistent code quality across projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save-dev @archon-research/oxlint-config oxlint
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Use the configuration presets in your `oxlint.config.ts`:
|
|
14
|
+
|
|
15
|
+
### Base configuration
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import baseConfig from '@archon-research/oxlint-config';
|
|
19
|
+
import { defineConfig } from 'oxlint';
|
|
20
|
+
|
|
21
|
+
export default defineConfig({
|
|
22
|
+
...baseConfig,
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### React projects
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import reactConfig from '@archon-research/oxlint-config/react';
|
|
30
|
+
import { defineConfig } from 'oxlint';
|
|
31
|
+
|
|
32
|
+
export default defineConfig({
|
|
33
|
+
...reactConfig,
|
|
34
|
+
});
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Included presets
|
|
38
|
+
|
|
39
|
+
- **base** (default) - General linting rules
|
|
40
|
+
- **react** - Additional rules for React projects
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archon-research/oxlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
|
-
"registry": "https://npm.pkg.github.com",
|
|
6
5
|
"access": "public"
|
|
7
6
|
},
|
|
8
7
|
"type": "module",
|
|
@@ -13,5 +12,8 @@
|
|
|
13
12
|
"exports": {
|
|
14
13
|
"./base": "./base.mjs",
|
|
15
14
|
"./react": "./react.mjs"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"url": "https://github.com/archon-research/uikit"
|
|
16
18
|
}
|
|
17
19
|
}
|