@imranbarbhuiya/oxc-config 0.0.1 → 0.1.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 +119 -156
- package/dist/api-error.d.ts +7 -2
- package/dist/api-error.js +6 -5
- package/dist/api-error.js.map +1 -1
- package/dist/central-icons.d.ts +7 -2
- package/dist/central-icons.js +6 -5
- package/dist/central-icons.js.map +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +523 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/common.d.ts +8 -2
- package/dist/common.js +36 -52
- package/dist/common.js.map +1 -1
- package/dist/config.d.ts +8 -0
- package/dist/config.js +31 -0
- package/dist/config.js.map +1 -0
- package/dist/edge.d.ts +5 -2
- package/dist/edge.js +14 -10
- package/dist/edge.js.map +1 -1
- package/dist/i18n.d.ts +8 -2
- package/dist/i18n.js +6 -5
- package/dist/i18n.js.map +1 -1
- package/dist/jsdoc.d.ts +5 -2
- package/dist/jsdoc.js +18 -17
- package/dist/jsdoc.js.map +1 -1
- package/dist/jsx.d.ts +5 -2
- package/dist/jsx.js +24 -26
- package/dist/jsx.js.map +1 -1
- package/dist/module.d.ts +4 -2
- package/dist/module.js +6 -3
- package/dist/module.js.map +1 -1
- package/dist/native-tailwind.d.ts +7 -2
- package/dist/native-tailwind.js +6 -5
- package/dist/native-tailwind.js.map +1 -1
- package/dist/native.d.ts +51 -2
- package/dist/native.js +37 -43
- package/dist/native.js.map +1 -1
- package/dist/nest-plugin.d.ts +2 -0
- package/dist/nest-plugin.js +3 -0
- package/dist/nest.d.ts +5 -2
- package/dist/nest.js +7 -7
- package/dist/nest.js.map +1 -1
- package/dist/next.d.ts +4 -2
- package/dist/next.js +25 -25
- package/dist/next.js.map +1 -1
- package/dist/node.d.ts +8 -2
- package/dist/node.js +67 -74
- package/dist/node.js.map +1 -1
- package/dist/oxfmt.d.ts +13 -0
- package/dist/oxfmt.js +16 -0
- package/dist/oxfmt.js.map +1 -0
- package/dist/plugins/api-error.js +14 -14
- package/dist/plugins/api-error.js.map +1 -1
- package/dist/react.d.ts +14 -2
- package/dist/react.js +56 -58
- package/dist/react.js.map +1 -1
- package/dist/tailwind.d.ts +15 -2
- package/dist/tailwind.js +10 -9
- package/dist/tailwind.js.map +1 -1
- package/dist/tsdoc.d.ts +15 -2
- package/dist/tsdoc.js +14 -14
- package/dist/tsdoc.js.map +1 -1
- package/dist/typescript.d.ts +5 -2
- package/dist/typescript.js +155 -192
- package/dist/typescript.js.map +1 -1
- package/package.json +162 -178
- package/dist/mdx.d.ts +0 -6
- package/dist/mdx.js +0 -25
- package/dist/mdx.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,180 +1,164 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"oxfmt": "^0.65.0",
|
|
165
|
-
"oxlint": "^1.80.0",
|
|
166
|
-
"oxlint-tsgolint": "^7.0.2001"
|
|
167
|
-
},
|
|
168
|
-
"peerDependenciesMeta": {
|
|
169
|
-
"oxfmt": {
|
|
170
|
-
"optional": true
|
|
171
|
-
},
|
|
172
|
-
"oxlint-tsgolint": {
|
|
173
|
-
"optional": true
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"overrides": {
|
|
177
|
-
"zod": "^4",
|
|
178
|
-
"zod-validation-error": "^4"
|
|
179
|
-
}
|
|
2
|
+
"name": "@imranbarbhuiya/oxc-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared Oxlint and Oxfmt configs for JavaScript and TypeScript projects",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"config",
|
|
7
|
+
"format",
|
|
8
|
+
"formatter",
|
|
9
|
+
"lint",
|
|
10
|
+
"linter",
|
|
11
|
+
"oxc",
|
|
12
|
+
"oxfmt",
|
|
13
|
+
"oxlint",
|
|
14
|
+
"typescript"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/imranbarbhuiya/oxc-config#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/imranbarbhuiya/oxc-config/issues"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Parbez <imranbarbhuiya.fsd@gmail.com>",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/imranbarbhuiya/oxc-config.git"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"oxc-config": "dist/cli/index.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist/**"
|
|
31
|
+
],
|
|
32
|
+
"type": "module",
|
|
33
|
+
"exports": {
|
|
34
|
+
"./api-error": {
|
|
35
|
+
"types": "./dist/api-error.d.ts",
|
|
36
|
+
"import": "./dist/api-error.js"
|
|
37
|
+
},
|
|
38
|
+
"./central-icons": {
|
|
39
|
+
"types": "./dist/central-icons.d.ts",
|
|
40
|
+
"import": "./dist/central-icons.js"
|
|
41
|
+
},
|
|
42
|
+
"./common": {
|
|
43
|
+
"types": "./dist/common.d.ts",
|
|
44
|
+
"import": "./dist/common.js"
|
|
45
|
+
},
|
|
46
|
+
"./edge": {
|
|
47
|
+
"types": "./dist/edge.d.ts",
|
|
48
|
+
"import": "./dist/edge.js"
|
|
49
|
+
},
|
|
50
|
+
"./i18n": {
|
|
51
|
+
"types": "./dist/i18n.d.ts",
|
|
52
|
+
"import": "./dist/i18n.js"
|
|
53
|
+
},
|
|
54
|
+
"./jsdoc": {
|
|
55
|
+
"types": "./dist/jsdoc.d.ts",
|
|
56
|
+
"import": "./dist/jsdoc.js"
|
|
57
|
+
},
|
|
58
|
+
"./jsx": {
|
|
59
|
+
"types": "./dist/jsx.d.ts",
|
|
60
|
+
"import": "./dist/jsx.js"
|
|
61
|
+
},
|
|
62
|
+
"./module": {
|
|
63
|
+
"types": "./dist/module.d.ts",
|
|
64
|
+
"import": "./dist/module.js"
|
|
65
|
+
},
|
|
66
|
+
"./native": {
|
|
67
|
+
"types": "./dist/native.d.ts",
|
|
68
|
+
"import": "./dist/native.js"
|
|
69
|
+
},
|
|
70
|
+
"./native-tailwind": {
|
|
71
|
+
"types": "./dist/native-tailwind.d.ts",
|
|
72
|
+
"import": "./dist/native-tailwind.js"
|
|
73
|
+
},
|
|
74
|
+
"./nest": {
|
|
75
|
+
"types": "./dist/nest.d.ts",
|
|
76
|
+
"import": "./dist/nest.js"
|
|
77
|
+
},
|
|
78
|
+
"./next": {
|
|
79
|
+
"types": "./dist/next.d.ts",
|
|
80
|
+
"import": "./dist/next.js"
|
|
81
|
+
},
|
|
82
|
+
"./node": {
|
|
83
|
+
"types": "./dist/node.d.ts",
|
|
84
|
+
"import": "./dist/node.js"
|
|
85
|
+
},
|
|
86
|
+
"./react": {
|
|
87
|
+
"types": "./dist/react.d.ts",
|
|
88
|
+
"import": "./dist/react.js"
|
|
89
|
+
},
|
|
90
|
+
"./tsdoc": {
|
|
91
|
+
"types": "./dist/tsdoc.d.ts",
|
|
92
|
+
"import": "./dist/tsdoc.js"
|
|
93
|
+
},
|
|
94
|
+
"./typescript": {
|
|
95
|
+
"types": "./dist/typescript.d.ts",
|
|
96
|
+
"import": "./dist/typescript.js"
|
|
97
|
+
},
|
|
98
|
+
"./tailwind": {
|
|
99
|
+
"types": "./dist/tailwind.d.ts",
|
|
100
|
+
"import": "./dist/tailwind.js"
|
|
101
|
+
},
|
|
102
|
+
"./oxfmt": {
|
|
103
|
+
"types": "./dist/oxfmt.d.ts",
|
|
104
|
+
"import": "./dist/oxfmt.js"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"publishConfig": {
|
|
108
|
+
"access": "public"
|
|
109
|
+
},
|
|
110
|
+
"scripts": {
|
|
111
|
+
"lint": "oxlint --fix .",
|
|
112
|
+
"lint:check": "oxlint .",
|
|
113
|
+
"format": "oxfmt",
|
|
114
|
+
"format:check": "oxfmt --check",
|
|
115
|
+
"build": "tsdown",
|
|
116
|
+
"test": "bun run build && bun test",
|
|
117
|
+
"prepack": "bun run build"
|
|
118
|
+
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@clack/prompts": "^1.7.0",
|
|
121
|
+
"@darraghor/eslint-plugin-nestjs-typed": "^7.2.5",
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^8.63.0",
|
|
123
|
+
"eslint-plugin-better-tailwindcss": "^4.6.1",
|
|
124
|
+
"eslint-plugin-import-x": "^4.17.1",
|
|
125
|
+
"eslint-plugin-jsdoc": "^63.0.12",
|
|
126
|
+
"eslint-plugin-n": "^18.2.1",
|
|
127
|
+
"eslint-plugin-react": "^7.37.5",
|
|
128
|
+
"eslint-plugin-sonarjs": "^4.1.0",
|
|
129
|
+
"eslint-plugin-tsdoc": "^0.5.2",
|
|
130
|
+
"eslint-plugin-unicorn": "^71.1.0",
|
|
131
|
+
"nypm": "^0.6.8",
|
|
132
|
+
"oxlint-plugin-eslint": "^1.80.0"
|
|
133
|
+
},
|
|
134
|
+
"devDependencies": {
|
|
135
|
+
"@types/bun": "^1.4.0",
|
|
136
|
+
"@types/node": "^25.9.5",
|
|
137
|
+
"@typescript-eslint/utils": "^8.63.0",
|
|
138
|
+
"oxfmt": "^0.65.0",
|
|
139
|
+
"oxlint": "^1.80.0",
|
|
140
|
+
"oxlint-tsgolint": "^7.0.2001",
|
|
141
|
+
"tsdown": "^0.22.4",
|
|
142
|
+
"typescript": "6.0.3"
|
|
143
|
+
},
|
|
144
|
+
"peerDependencies": {
|
|
145
|
+
"oxfmt": "^0.65.0",
|
|
146
|
+
"oxlint": "^1.80.0",
|
|
147
|
+
"oxlint-tsgolint": "^7.0.2001"
|
|
148
|
+
},
|
|
149
|
+
"peerDependenciesMeta": {
|
|
150
|
+
"oxfmt": {
|
|
151
|
+
"optional": true
|
|
152
|
+
},
|
|
153
|
+
"oxlint-tsgolint": {
|
|
154
|
+
"optional": true
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"overrides": {
|
|
158
|
+
"zod": "^4",
|
|
159
|
+
"zod-validation-error": "^4"
|
|
160
|
+
},
|
|
161
|
+
"engines": {
|
|
162
|
+
"node": ">=22.18.0"
|
|
163
|
+
}
|
|
180
164
|
}
|
package/dist/mdx.d.ts
DELETED
package/dist/mdx.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as mdx from "eslint-plugin-mdx";
|
|
2
|
-
|
|
3
|
-
//#region src/mdx.ts
|
|
4
|
-
const config = [
|
|
5
|
-
{
|
|
6
|
-
...mdx.flat,
|
|
7
|
-
processor: mdx.createRemarkProcessor({
|
|
8
|
-
lintCodeBlocks: false,
|
|
9
|
-
languageMapper: false
|
|
10
|
-
})
|
|
11
|
-
},
|
|
12
|
-
mdx.flatCodeBlocks,
|
|
13
|
-
{
|
|
14
|
-
name: "mahir/mdx",
|
|
15
|
-
rules: {
|
|
16
|
-
"react/jsx-sort-props": "off",
|
|
17
|
-
"@next/next/no-img-element": "off",
|
|
18
|
-
"react/jsx-closing-bracket-location": "off"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { config as default };
|
|
25
|
-
//# sourceMappingURL=mdx.js.map
|
package/dist/mdx.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.js","names":[],"sources":["../src/mdx.ts"],"sourcesContent":["import * as mdx from 'eslint-plugin-mdx';\n\nimport type { TSESLint } from '@typescript-eslint/utils';\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\t...mdx.flat,\n\t\tprocessor: mdx.createRemarkProcessor({\n\t\t\tlintCodeBlocks: false,\n\t\t\tlanguageMapper: false,\n\t\t}),\n\t},\n\tmdx.flatCodeBlocks,\n\t{\n\t\tname: 'mahir/mdx',\n\t\trules: {\n\t\t\t'react/jsx-sort-props': 'off',\n\t\t\t'@next/next/no-img-element': 'off',\n\t\t\t'react/jsx-closing-bracket-location': 'off',\n\t\t},\n\t},\n];\n\nexport default config;\n"],"mappings":";;;AAIA,MAAM,SAA0C;CAC/C;EACC,GAAG,IAAI;EACP,WAAW,IAAI,sBAAsB;GACpC,gBAAgB;GAChB,gBAAgB;EACjB,CAAC;CACF;CACA,IAAI;CACJ;EACC,MAAM;EACN,OAAO;GACN,wBAAwB;GACxB,6BAA6B;GAC7B,sCAAsC;EACvC;CACD;AACD"}
|