@imranbarbhuiya/oxc-config 0.2.1 → 0.2.3
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 +3 -6
- package/dist/config.d.ts +3 -4
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -58,12 +58,11 @@ npm install --save-dev @imranbarbhuiya/oxc-config oxlint oxlint-tsgolint oxfmt
|
|
|
58
58
|
Create `oxlint.config.ts`:
|
|
59
59
|
|
|
60
60
|
```ts
|
|
61
|
-
import { defineConfig } from 'oxlint';
|
|
62
|
-
|
|
63
61
|
import common from '@imranbarbhuiya/oxc-config/common';
|
|
64
62
|
import module from '@imranbarbhuiya/oxc-config/module';
|
|
65
63
|
import node from '@imranbarbhuiya/oxc-config/node';
|
|
66
64
|
import typescript from '@imranbarbhuiya/oxc-config/typescript';
|
|
65
|
+
import { defineConfig } from 'oxlint';
|
|
67
66
|
|
|
68
67
|
export default defineConfig({
|
|
69
68
|
extends: [common, node, typescript, module],
|
|
@@ -78,9 +77,8 @@ export default defineConfig({
|
|
|
78
77
|
Create `oxfmt.config.ts`:
|
|
79
78
|
|
|
80
79
|
```ts
|
|
81
|
-
import { defineConfig } from 'oxfmt';
|
|
82
|
-
|
|
83
80
|
import config from '@imranbarbhuiya/oxc-config/oxfmt';
|
|
81
|
+
import { defineConfig } from 'oxfmt';
|
|
84
82
|
|
|
85
83
|
export default defineConfig({
|
|
86
84
|
...config,
|
|
@@ -123,10 +121,9 @@ Fragments can be combined through `defineConfig({ extends: [...] })`. The Tailwi
|
|
|
123
121
|
TanStack Query can be added directly:
|
|
124
122
|
|
|
125
123
|
```ts
|
|
126
|
-
import { defineConfig } from 'oxlint';
|
|
127
|
-
|
|
128
124
|
import common from '@imranbarbhuiya/oxc-config/common';
|
|
129
125
|
import react from '@imranbarbhuiya/oxc-config/react';
|
|
126
|
+
import { defineConfig } from 'oxlint';
|
|
130
127
|
|
|
131
128
|
export default defineConfig({
|
|
132
129
|
extends: [common, react],
|
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ExternalPluginEntry, OxlintConfig } from "oxlint";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
|
-
declare const nativePlugins: NonNullable<OxlintConfig['plugins']>;
|
|
4
|
-
declare function packagePlugin(name: string, specifier: string): ExternalPluginEntry;
|
|
5
|
-
declare function localPlugin(name: string, path: string): ExternalPluginEntry;
|
|
3
|
+
export declare const nativePlugins: NonNullable<OxlintConfig['plugins']>;
|
|
4
|
+
export declare function packagePlugin(name: string, specifier: string): ExternalPluginEntry;
|
|
5
|
+
export declare function localPlugin(name: string, path: string): ExternalPluginEntry;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { localPlugin, nativePlugins, packagePlugin };
|
|
8
7
|
//# sourceMappingURL=config.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imranbarbhuiya/oxc-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Shared Oxlint and Oxfmt configs for JavaScript and TypeScript projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -185,30 +185,30 @@
|
|
|
185
185
|
"prepack": "bun run build"
|
|
186
186
|
},
|
|
187
187
|
"dependencies": {
|
|
188
|
-
"@clack/prompts": "^1.
|
|
189
|
-
"@oxlint/plugins": "1.
|
|
190
|
-
"eslint": "^10.
|
|
191
|
-
"eslint-plugin-jsdoc": "^
|
|
192
|
-
"eslint-plugin-n": "^18.
|
|
193
|
-
"eslint-plugin-sonarjs": "^4.2.
|
|
194
|
-
"eslint-plugin-tsdoc": "^0.5.
|
|
195
|
-
"nypm": "^0.6.
|
|
196
|
-
"oxlint-tailwindcss": "^1.
|
|
188
|
+
"@clack/prompts": "^1.8.1",
|
|
189
|
+
"@oxlint/plugins": "1.87.0",
|
|
190
|
+
"eslint": "^10.12.0",
|
|
191
|
+
"eslint-plugin-jsdoc": "^65.1.0",
|
|
192
|
+
"eslint-plugin-n": "^18.4.1",
|
|
193
|
+
"eslint-plugin-sonarjs": "^4.2.2",
|
|
194
|
+
"eslint-plugin-tsdoc": "^0.5.4",
|
|
195
|
+
"nypm": "^0.6.10",
|
|
196
|
+
"oxlint-tailwindcss": "^1.14.0"
|
|
197
197
|
},
|
|
198
198
|
"devDependencies": {
|
|
199
|
-
"@types/bun": "^1.4.
|
|
200
|
-
"@types/node": "^
|
|
201
|
-
"@typescript-eslint/utils": "^8.
|
|
202
|
-
"oxfmt": "^0.
|
|
203
|
-
"oxlint": "^1.
|
|
204
|
-
"oxlint-tsgolint": "^7.0.
|
|
205
|
-
"tsdown": "^0.
|
|
199
|
+
"@types/bun": "^1.4.2",
|
|
200
|
+
"@types/node": "^26.6.4",
|
|
201
|
+
"@typescript-eslint/utils": "^8.71.1",
|
|
202
|
+
"oxfmt": "^0.72.0",
|
|
203
|
+
"oxlint": "^1.87.0",
|
|
204
|
+
"oxlint-tsgolint": "^7.0.2003",
|
|
205
|
+
"tsdown": "^0.23.0",
|
|
206
206
|
"typescript": "6.0.3"
|
|
207
207
|
},
|
|
208
208
|
"peerDependencies": {
|
|
209
|
-
"oxfmt": "^0.
|
|
210
|
-
"oxlint": "^1.
|
|
211
|
-
"oxlint-tsgolint": "^7.0.
|
|
209
|
+
"oxfmt": "^0.72.0",
|
|
210
|
+
"oxlint": "^1.87.0",
|
|
211
|
+
"oxlint-tsgolint": "^7.0.2003"
|
|
212
212
|
},
|
|
213
213
|
"peerDependenciesMeta": {
|
|
214
214
|
"oxfmt": {
|