@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.
Files changed (69) hide show
  1. package/README.md +119 -156
  2. package/dist/api-error.d.ts +7 -2
  3. package/dist/api-error.js +6 -5
  4. package/dist/api-error.js.map +1 -1
  5. package/dist/central-icons.d.ts +7 -2
  6. package/dist/central-icons.js +6 -5
  7. package/dist/central-icons.js.map +1 -1
  8. package/dist/cli/index.d.ts +1 -0
  9. package/dist/cli/index.js +523 -0
  10. package/dist/cli/index.js.map +1 -0
  11. package/dist/common.d.ts +8 -2
  12. package/dist/common.js +36 -52
  13. package/dist/common.js.map +1 -1
  14. package/dist/config.d.ts +8 -0
  15. package/dist/config.js +31 -0
  16. package/dist/config.js.map +1 -0
  17. package/dist/edge.d.ts +5 -2
  18. package/dist/edge.js +14 -10
  19. package/dist/edge.js.map +1 -1
  20. package/dist/i18n.d.ts +8 -2
  21. package/dist/i18n.js +6 -5
  22. package/dist/i18n.js.map +1 -1
  23. package/dist/jsdoc.d.ts +5 -2
  24. package/dist/jsdoc.js +18 -17
  25. package/dist/jsdoc.js.map +1 -1
  26. package/dist/jsx.d.ts +5 -2
  27. package/dist/jsx.js +24 -26
  28. package/dist/jsx.js.map +1 -1
  29. package/dist/module.d.ts +4 -2
  30. package/dist/module.js +6 -3
  31. package/dist/module.js.map +1 -1
  32. package/dist/native-tailwind.d.ts +7 -2
  33. package/dist/native-tailwind.js +6 -5
  34. package/dist/native-tailwind.js.map +1 -1
  35. package/dist/native.d.ts +51 -2
  36. package/dist/native.js +37 -43
  37. package/dist/native.js.map +1 -1
  38. package/dist/nest-plugin.d.ts +2 -0
  39. package/dist/nest-plugin.js +3 -0
  40. package/dist/nest.d.ts +5 -2
  41. package/dist/nest.js +7 -7
  42. package/dist/nest.js.map +1 -1
  43. package/dist/next.d.ts +4 -2
  44. package/dist/next.js +25 -25
  45. package/dist/next.js.map +1 -1
  46. package/dist/node.d.ts +8 -2
  47. package/dist/node.js +67 -74
  48. package/dist/node.js.map +1 -1
  49. package/dist/oxfmt.d.ts +13 -0
  50. package/dist/oxfmt.js +16 -0
  51. package/dist/oxfmt.js.map +1 -0
  52. package/dist/plugins/api-error.js +14 -14
  53. package/dist/plugins/api-error.js.map +1 -1
  54. package/dist/react.d.ts +14 -2
  55. package/dist/react.js +56 -58
  56. package/dist/react.js.map +1 -1
  57. package/dist/tailwind.d.ts +15 -2
  58. package/dist/tailwind.js +10 -9
  59. package/dist/tailwind.js.map +1 -1
  60. package/dist/tsdoc.d.ts +15 -2
  61. package/dist/tsdoc.js +14 -14
  62. package/dist/tsdoc.js.map +1 -1
  63. package/dist/typescript.d.ts +5 -2
  64. package/dist/typescript.js +155 -192
  65. package/dist/typescript.js.map +1 -1
  66. package/package.json +162 -178
  67. package/dist/mdx.d.ts +0 -6
  68. package/dist/mdx.js +0 -25
  69. package/dist/mdx.js.map +0 -1
package/package.json CHANGED
@@ -1,180 +1,164 @@
1
1
  {
2
- "name": "@imranbarbhuiya/oxc-config",
3
- "version": "0.0.1",
4
- "description": "Shared Oxlint and Oxfmt configs for JavaScript and TypeScript projects",
5
- "type": "module",
6
- "bin": {
7
- "oxc-config": "./dist/cli/index.js"
8
- },
9
- "scripts": {
10
- "lint": "oxlint --fix .",
11
- "lint:check": "oxlint .",
12
- "format": "oxfmt",
13
- "format:check": "oxfmt --check",
14
- "build": "tsdown",
15
- "test": "bun run build && bun test",
16
- "prepack": "bun run build"
17
- },
18
- "exports": {
19
- "./api-error": {
20
- "types": "./dist/api-error.d.ts",
21
- "import": "./dist/api-error.js"
22
- },
23
- "./central-icons": {
24
- "types": "./dist/central-icons.d.ts",
25
- "import": "./dist/central-icons.js"
26
- },
27
- "./common": {
28
- "types": "./dist/common.d.ts",
29
- "import": "./dist/common.js"
30
- },
31
- "./edge": {
32
- "types": "./dist/edge.d.ts",
33
- "import": "./dist/edge.js"
34
- },
35
- "./i18n": {
36
- "types": "./dist/i18n.d.ts",
37
- "import": "./dist/i18n.js"
38
- },
39
- "./jsdoc": {
40
- "types": "./dist/jsdoc.d.ts",
41
- "import": "./dist/jsdoc.js"
42
- },
43
- "./jsx": {
44
- "types": "./dist/jsx.d.ts",
45
- "import": "./dist/jsx.js"
46
- },
47
- "./module": {
48
- "types": "./dist/module.d.ts",
49
- "import": "./dist/module.js"
50
- },
51
- "./native": {
52
- "types": "./dist/native.d.ts",
53
- "import": "./dist/native.js"
54
- },
55
- "./native-tailwind": {
56
- "types": "./dist/native-tailwind.d.ts",
57
- "import": "./dist/native-tailwind.js"
58
- },
59
- "./nest": {
60
- "types": "./dist/nest.d.ts",
61
- "import": "./dist/nest.js"
62
- },
63
- "./next": {
64
- "types": "./dist/next.d.ts",
65
- "import": "./dist/next.js"
66
- },
67
- "./node": {
68
- "types": "./dist/node.d.ts",
69
- "import": "./dist/node.js"
70
- },
71
- "./react": {
72
- "types": "./dist/react.d.ts",
73
- "import": "./dist/react.js"
74
- },
75
- "./tsdoc": {
76
- "types": "./dist/tsdoc.d.ts",
77
- "import": "./dist/tsdoc.js"
78
- },
79
- "./typescript": {
80
- "types": "./dist/typescript.d.ts",
81
- "import": "./dist/typescript.js"
82
- },
83
- "./tailwind": {
84
- "types": "./dist/tailwind.d.ts",
85
- "import": "./dist/tailwind.js"
86
- },
87
- "./oxfmt": {
88
- "types": "./dist/oxfmt.d.ts",
89
- "import": "./dist/oxfmt.js"
90
- }
91
- },
92
- "keywords": [
93
- "oxc",
94
- "oxlint",
95
- "oxfmt",
96
- "config",
97
- "typescript",
98
- "lint",
99
- "format",
100
- "linter",
101
- "formatter"
102
- ],
103
- "repository": {
104
- "type": "git",
105
- "url": "https://github.com/imranbarbhuiya/oxc-config.git"
106
- },
107
- "bugs": {
108
- "url": "https://github.com/imranbarbhuiya/oxc-config/issues"
109
- },
110
- "homepage": "https://github.com/imranbarbhuiya/oxc-config#readme",
111
- "author": "Parbez <imranbarbhuiya.fsd@gmail.com>",
112
- "license": "MIT",
113
- "engines": {
114
- "node": ">=22.18.0"
115
- },
116
- "publishConfig": {
117
- "access": "public"
118
- },
119
- "files": [
120
- "dist/**"
121
- ],
122
- "dependencies": {
123
- "@clack/prompts": "^1.7.0",
124
- "@darraghor/eslint-plugin-nestjs-typed": "^7.2.5",
125
- "@eslint/eslintrc": "^3.3.5",
126
- "@eslint/js": "^10.0.1",
127
- "@next/eslint-plugin-next": "^16.2.10",
128
- "@typescript-eslint/eslint-plugin": "^8.63.0",
129
- "@typescript-eslint/parser": "^8.63.0",
130
- "eslint-import-resolver-typescript": "^4.4.5",
131
- "eslint-mdx": "^3.8.1",
132
- "eslint-plugin-better-tailwindcss": "^4.6.1",
133
- "eslint-plugin-import-x": "^4.17.1",
134
- "eslint-plugin-jsdoc": "^63.0.12",
135
- "eslint-plugin-mdx": "^3.8.1",
136
- "eslint-plugin-n": "^18.2.1",
137
- "eslint-plugin-promise": "^7.3.0",
138
- "eslint-plugin-react": "^7.37.5",
139
- "eslint-plugin-react-hooks": "^7.1.1",
140
- "eslint-plugin-sonarjs": "^4.1.0",
141
- "eslint-plugin-tsdoc": "^0.5.2",
142
- "eslint-plugin-typescript-sort-keys": "^3.3.0",
143
- "eslint-plugin-unicorn": "^71.1.0",
144
- "globals": "^17.7.0",
145
- "nypm": "^0.6.8",
146
- "oxlint-plugin-eslint": "^1.80.0",
147
- "typescript-eslint": "^8.63.0"
148
- },
149
- "devDependencies": {
150
- "@prettier/plugin-oxc": "^0.2.0",
151
- "@types/bun": "^1.3.14",
152
- "@types/node": "^25.9.5",
153
- "@typescript-eslint/utils": "^8.63.0",
154
- "eslint": "^10.6.0",
155
- "eslint-v9": "npm:eslint@^9.39.5",
156
- "oxfmt": "^0.65.0",
157
- "oxlint": "^1.80.0",
158
- "oxlint-tsgolint": "^7.0.2001",
159
- "prettier": "^3.9.5",
160
- "tsdown": "^0.22.4",
161
- "typescript": "6.0.3"
162
- },
163
- "peerDependencies": {
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
@@ -1,6 +0,0 @@
1
- import { TSESLint } from "@typescript-eslint/utils";
2
- //#region src/mdx.d.ts
3
- declare const config: TSESLint.FlatConfig.ConfigArray;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=mdx.d.ts.map
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"}