@oxlint-types/define-config 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026-PRESENT ntnyq <https://github.com/ntnyq>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @oxlint-types/define-config
2
+
3
+ [![CI](https://github.com/ntnyq/oxlint-types/workflows/CI/badge.svg)](https://github.com/ntnyq/oxlint-types/actions)
4
+ [![NPM VERSION](https://img.shields.io/npm/v/@oxlint-types/define-config.svg)](https://www.npmjs.com/package/@oxlint-types/define-config)
5
+ [![NPM DOWNLOADS](https://img.shields.io/npm/dy/@oxlint-types/define-config.svg)](https://www.npmjs.com/package/@oxlint-types/define-config)
6
+ [![LICENSE](https://img.shields.io/github/license/ntnyq/oxlint-types.svg)](https://github.com/ntnyq/oxlint-types/blob/main/LICENSE)
7
+
8
+ :package: Strong typed `defineConfig` function support for [oxlint](https://oxc.rs/docs/guide/usage/linter).
9
+
10
+ > [!CAUTION]
11
+ > This package is work in progress.
12
+
13
+ ## Install
14
+
15
+ ```shell
16
+ npm install @oxlint-types/define-config
17
+ ```
18
+
19
+ ```shell
20
+ yarn add @oxlint-types/define-config
21
+ ```
22
+
23
+ ```shell
24
+ pnpm add @oxlint-types/define-config
25
+ ```
26
+
27
+ ## Credits
28
+
29
+ - [eslint-define-config](https://github.com/eslint-types/eslint-define-config) create by [Shinigami92](https://github.com/Shinigami92)
30
+
31
+ ## License
32
+
33
+ [MIT](./LICENSE) License © 2026-PRESENT [ntnyq](https://github.com/ntnyq)
@@ -0,0 +1,6 @@
1
+ import { OxlintConfig } from "oxlint";
2
+
3
+ //#region src/index.d.ts
4
+ declare function defineConfig<T extends OxlintConfig>(config: T): T;
5
+ //#endregion
6
+ export { defineConfig };
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ //#region src/index.ts
2
+ function defineConfig(config) {
3
+ return config;
4
+ }
5
+
6
+ //#endregion
7
+ export { defineConfig };
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@oxlint-types/define-config",
3
+ "type": "module",
4
+ "version": "0.0.0",
5
+ "packageManager": "pnpm@10.30.3",
6
+ "description": "Strong typed `defineConfig` function support for oxlint.",
7
+ "keywords": [
8
+ "oxlint",
9
+ "define-config",
10
+ "typescript"
11
+ ],
12
+ "license": "MIT",
13
+ "author": {
14
+ "name": "ntnyq",
15
+ "email": "ntnyq13@gmail.com"
16
+ },
17
+ "homepage": "https://github.com/ntnyq/oxlint-types#readme",
18
+ "repository": "ntnyq/oxlint-types",
19
+ "bugs": {
20
+ "url": "https://github.com/ntnyq/oxlint-types/issues"
21
+ },
22
+ "exports": {
23
+ "./package.json": "./package.json",
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.js"
27
+ }
28
+ },
29
+ "main": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "sideEffects": false,
38
+ "scripts": {
39
+ "build": "tsdown",
40
+ "dev": "tsdown --watch",
41
+ "format": "oxfmt",
42
+ "format:check": "oxfmt --check",
43
+ "lint": "oxlint",
44
+ "prepare": "husky",
45
+ "prepublishOnly": "pnpm run build",
46
+ "release": "run-s release:check release:version",
47
+ "release:check": "run-s format:check lint typecheck test",
48
+ "release:version": "bumpp",
49
+ "test": "vitest",
50
+ "typecheck": "tsgo --noEmit"
51
+ },
52
+ "devDependencies": {
53
+ "@ntnyq/tsconfig": "^3.1.0",
54
+ "@types/node": "^25.3.3",
55
+ "@typescript/native-preview": "^7.0.0-dev.20260301.1",
56
+ "bumpp": "^10.4.1",
57
+ "husky": "^9.1.7",
58
+ "nano-staged": "^0.9.0",
59
+ "npm-run-all2": "^8.0.4",
60
+ "oxfmt": "^0.35.0",
61
+ "oxlint": "^1.50.0",
62
+ "tsdown": "^0.21.0-beta.2",
63
+ "typescript": "^5.9.3",
64
+ "vitest": "^4.0.18"
65
+ },
66
+ "nano-staged": {
67
+ "*.{js,ts,mjs,tsx,vue}": "oxlint --fix",
68
+ "*": "oxfmt --no-error-on-unmatched-pattern"
69
+ }
70
+ }