@devmoods/oxc 0.2.1 → 0.4.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 CHANGED
@@ -28,6 +28,8 @@ import { defineConfig } from 'oxlint';
28
28
  export default defineConfig({ ...oxlintConfig });
29
29
  ```
30
30
 
31
+ The shared lint config ignores generated `api-gen` output by default.
32
+
31
33
  ## CLI usage
32
34
 
33
35
  ```bash
package/dist/index.d.ts CHANGED
@@ -6,11 +6,344 @@ export declare const oxfmtConfig: {
6
6
  sortImports: {
7
7
  customGroups: {
8
8
  groupName: string;
9
- selector: string;
9
+ selector: "style";
10
10
  elementNamePattern: string[];
11
11
  }[];
12
12
  newlinesBetween: true;
13
13
  groups: string[];
14
14
  };
15
15
  };
16
- export declare const oxlintConfig: import("oxlint").OxlintConfig;
16
+ export declare const oxlintConfig: {
17
+ plugins: ("react" | "typescript" | "jsx-a11y")[];
18
+ categories: {
19
+ correctness: "off";
20
+ };
21
+ env: {
22
+ builtin: true;
23
+ };
24
+ rules: {
25
+ 'constructor-super': "error";
26
+ 'for-direction': "error";
27
+ 'no-async-promise-executor': "error";
28
+ 'no-case-declarations': "error";
29
+ 'no-class-assign': "error";
30
+ 'no-compare-neg-zero': "error";
31
+ 'no-cond-assign': "error";
32
+ 'no-const-assign': "error";
33
+ 'no-constant-binary-expression': "error";
34
+ 'no-constant-condition': "error";
35
+ 'no-control-regex': "error";
36
+ 'no-debugger': "error";
37
+ 'no-delete-var': "error";
38
+ 'no-dupe-class-members': "error";
39
+ 'no-dupe-else-if': "error";
40
+ 'no-dupe-keys': "error";
41
+ 'no-duplicate-case': "error";
42
+ 'no-empty': "error";
43
+ 'no-empty-character-class': "error";
44
+ 'no-empty-pattern': "off";
45
+ 'no-empty-static-block': "error";
46
+ 'no-ex-assign': "error";
47
+ 'no-extra-boolean-cast': "error";
48
+ 'no-fallthrough': "error";
49
+ 'no-func-assign': "error";
50
+ 'no-global-assign': "error";
51
+ 'no-import-assign': "error";
52
+ 'no-invalid-regexp': "error";
53
+ 'no-irregular-whitespace': "error";
54
+ 'no-loss-of-precision': "error";
55
+ 'no-misleading-character-class': "error";
56
+ 'no-new-native-nonconstructor': "error";
57
+ 'no-nonoctal-decimal-escape': "error";
58
+ 'no-obj-calls': "error";
59
+ 'no-prototype-builtins': "error";
60
+ 'no-redeclare': "error";
61
+ 'no-regex-spaces': "error";
62
+ 'no-self-assign': "error";
63
+ 'no-setter-return': "error";
64
+ 'no-shadow-restricted-names': "error";
65
+ 'no-sparse-arrays': "error";
66
+ 'no-this-before-super': "error";
67
+ 'no-unexpected-multiline': "error";
68
+ 'no-unsafe-finally': "error";
69
+ 'no-unsafe-negation': "error";
70
+ 'no-unsafe-optional-chaining': "error";
71
+ 'no-unused-labels': "error";
72
+ 'no-unused-private-class-members': "error";
73
+ 'no-unused-vars': ["error", {
74
+ varsIgnorePattern: string;
75
+ }];
76
+ 'no-useless-backreference': "error";
77
+ 'no-useless-catch': "error";
78
+ 'no-useless-escape': "error";
79
+ 'no-with': "error";
80
+ 'require-yield': "error";
81
+ 'use-isnan': "error";
82
+ 'valid-typeof': "error";
83
+ '@typescript-eslint/ban-ts-comment': "error";
84
+ 'no-array-constructor': "error";
85
+ '@typescript-eslint/no-duplicate-enum-values': "error";
86
+ '@typescript-eslint/no-empty-object-type': "error";
87
+ '@typescript-eslint/no-explicit-any': "error";
88
+ '@typescript-eslint/no-extra-non-null-assertion': "error";
89
+ '@typescript-eslint/no-misused-new': "error";
90
+ '@typescript-eslint/no-namespace': "error";
91
+ '@typescript-eslint/no-non-null-asserted-optional-chain': "error";
92
+ '@typescript-eslint/no-require-imports': "error";
93
+ '@typescript-eslint/no-this-alias': "error";
94
+ '@typescript-eslint/no-unnecessary-type-constraint': "error";
95
+ '@typescript-eslint/no-unsafe-declaration-merging': "error";
96
+ '@typescript-eslint/no-unsafe-function-type': "error";
97
+ 'no-unused-expressions': "error";
98
+ '@typescript-eslint/no-wrapper-object-types': "error";
99
+ '@typescript-eslint/prefer-as-const': "error";
100
+ '@typescript-eslint/prefer-namespace-keyword': "error";
101
+ '@typescript-eslint/triple-slash-reference': "error";
102
+ 'jsx-a11y/alt-text': "error";
103
+ 'jsx-a11y/anchor-has-content': "error";
104
+ 'jsx-a11y/anchor-is-valid': "error";
105
+ 'jsx-a11y/aria-activedescendant-has-tabindex': "error";
106
+ 'jsx-a11y/aria-props': "error";
107
+ 'jsx-a11y/aria-proptypes': "error";
108
+ 'jsx-a11y/aria-role': "error";
109
+ 'jsx-a11y/aria-unsupported-elements': "error";
110
+ 'jsx-a11y/autocomplete-valid': "error";
111
+ 'jsx-a11y/click-events-have-key-events': "error";
112
+ 'jsx-a11y/heading-has-content': "error";
113
+ 'jsx-a11y/html-has-lang': "error";
114
+ 'jsx-a11y/iframe-has-title': "error";
115
+ 'jsx-a11y/img-redundant-alt': "error";
116
+ 'jsx-a11y/label-has-associated-control': "error";
117
+ 'jsx-a11y/media-has-caption': "error";
118
+ 'jsx-a11y/mouse-events-have-key-events': "error";
119
+ 'jsx-a11y/no-access-key': "error";
120
+ 'jsx-a11y/no-distracting-elements': "error";
121
+ 'jsx-a11y/no-noninteractive-tabindex': ["error", {
122
+ tags: never[];
123
+ roles: string[];
124
+ allowExpressionValues: true;
125
+ }];
126
+ 'jsx-a11y/no-redundant-roles': "error";
127
+ 'jsx-a11y/no-static-element-interactions': ["error", {
128
+ allowExpressionValues: true;
129
+ handlers: string[];
130
+ }];
131
+ 'jsx-a11y/role-has-required-aria-props': "error";
132
+ 'jsx-a11y/role-supports-aria-props': "error";
133
+ 'jsx-a11y/scope': "error";
134
+ 'jsx-a11y/tabindex-no-positive': "error";
135
+ 'react/display-name': "error";
136
+ 'react/jsx-curly-brace-presence': "error";
137
+ 'react/jsx-boolean-value': "error";
138
+ 'react/self-closing-comp': "error";
139
+ 'react-hooks/exhaustive-deps': "error";
140
+ 'react-hooks/rules-of-hooks': "error";
141
+ 'no-restricted-imports': ["error", {
142
+ patterns: {
143
+ group: string[];
144
+ importNames: string[];
145
+ message: string;
146
+ }[];
147
+ }];
148
+ };
149
+ ignorePatterns: string[];
150
+ overrides: ({
151
+ files: string[];
152
+ rules: {
153
+ 'constructor-super': "off";
154
+ 'no-class-assign': "off";
155
+ 'no-const-assign': "off";
156
+ 'no-dupe-class-members': "off";
157
+ 'no-dupe-keys': "off";
158
+ 'no-func-assign': "off";
159
+ 'no-import-assign': "off";
160
+ 'no-new-native-nonconstructor': "off";
161
+ 'no-obj-calls': "off";
162
+ 'no-redeclare': "off";
163
+ 'no-setter-return': "off";
164
+ 'no-this-before-super': "off";
165
+ 'no-unsafe-negation': "off";
166
+ 'no-var': "error";
167
+ 'no-with': "off";
168
+ 'prefer-const': "error";
169
+ 'prefer-rest-params': "error";
170
+ 'prefer-spread': "error";
171
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
172
+ '@typescript-eslint/consistent-type-imports'?: undefined;
173
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
174
+ '@typescript-eslint/no-empty-interface'?: undefined;
175
+ '@typescript-eslint/no-empty-object-type'?: undefined;
176
+ '@typescript-eslint/no-explicit-any'?: undefined;
177
+ '@typescript-eslint/no-inferrable-types'?: undefined;
178
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
179
+ eqeqeq?: undefined;
180
+ 'import/no-default-export'?: undefined;
181
+ 'import/no-mutable-exports'?: undefined;
182
+ 'import/consistent-type-specifier-style'?: undefined;
183
+ 'import/no-duplicates'?: undefined;
184
+ 'import/no-named-as-default-member'?: undefined;
185
+ curly?: undefined;
186
+ 'no-console'?: undefined;
187
+ 'no-empty'?: undefined;
188
+ 'prefer-template'?: undefined;
189
+ 'no-unused-vars'?: undefined;
190
+ 'no-empty-function'?: undefined;
191
+ 'no-shadow'?: undefined;
192
+ '@typescript-eslint/ban-ts-comment'?: undefined;
193
+ };
194
+ env?: undefined;
195
+ plugins?: undefined;
196
+ } | {
197
+ files: string[];
198
+ rules: {
199
+ '@typescript-eslint/consistent-type-definitions': "error";
200
+ '@typescript-eslint/consistent-type-imports': ["error", {
201
+ fixStyle: "inline-type-imports";
202
+ }];
203
+ '@typescript-eslint/explicit-module-boundary-types': "off";
204
+ '@typescript-eslint/no-empty-interface': "off";
205
+ '@typescript-eslint/no-empty-object-type': "off";
206
+ '@typescript-eslint/no-explicit-any': "off";
207
+ '@typescript-eslint/no-inferrable-types': "off";
208
+ '@typescript-eslint/no-non-null-assertion': "off";
209
+ eqeqeq: ["error", "always", {
210
+ null: "ignore";
211
+ }];
212
+ 'import/no-default-export': "error";
213
+ 'import/no-mutable-exports': "error";
214
+ 'import/consistent-type-specifier-style': ["error", "prefer-inline"];
215
+ 'import/no-duplicates': ["error", {
216
+ preferInline: true;
217
+ }];
218
+ 'import/no-named-as-default-member': "off";
219
+ curly: "error";
220
+ 'no-console': "error";
221
+ 'no-dupe-keys': "error";
222
+ 'no-empty': ["error", {
223
+ allowEmptyCatch: true;
224
+ }];
225
+ 'no-var': "error";
226
+ 'prefer-template': "error";
227
+ 'no-unused-vars': ["error", {
228
+ ignoreRestSiblings: true;
229
+ }];
230
+ 'no-empty-function': "off";
231
+ 'no-shadow': "error";
232
+ 'constructor-super'?: undefined;
233
+ 'no-class-assign'?: undefined;
234
+ 'no-const-assign'?: undefined;
235
+ 'no-dupe-class-members'?: undefined;
236
+ 'no-func-assign'?: undefined;
237
+ 'no-import-assign'?: undefined;
238
+ 'no-new-native-nonconstructor'?: undefined;
239
+ 'no-obj-calls'?: undefined;
240
+ 'no-redeclare'?: undefined;
241
+ 'no-setter-return'?: undefined;
242
+ 'no-this-before-super'?: undefined;
243
+ 'no-unsafe-negation'?: undefined;
244
+ 'no-with'?: undefined;
245
+ 'prefer-const'?: undefined;
246
+ 'prefer-rest-params'?: undefined;
247
+ 'prefer-spread'?: undefined;
248
+ '@typescript-eslint/ban-ts-comment'?: undefined;
249
+ };
250
+ env: {
251
+ es2022: true;
252
+ browser: true;
253
+ node: true;
254
+ };
255
+ plugins: "import"[];
256
+ } | {
257
+ files: string[];
258
+ rules: {
259
+ 'import/no-default-export': "off";
260
+ 'constructor-super'?: undefined;
261
+ 'no-class-assign'?: undefined;
262
+ 'no-const-assign'?: undefined;
263
+ 'no-dupe-class-members'?: undefined;
264
+ 'no-dupe-keys'?: undefined;
265
+ 'no-func-assign'?: undefined;
266
+ 'no-import-assign'?: undefined;
267
+ 'no-new-native-nonconstructor'?: undefined;
268
+ 'no-obj-calls'?: undefined;
269
+ 'no-redeclare'?: undefined;
270
+ 'no-setter-return'?: undefined;
271
+ 'no-this-before-super'?: undefined;
272
+ 'no-unsafe-negation'?: undefined;
273
+ 'no-var'?: undefined;
274
+ 'no-with'?: undefined;
275
+ 'prefer-const'?: undefined;
276
+ 'prefer-rest-params'?: undefined;
277
+ 'prefer-spread'?: undefined;
278
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
279
+ '@typescript-eslint/consistent-type-imports'?: undefined;
280
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
281
+ '@typescript-eslint/no-empty-interface'?: undefined;
282
+ '@typescript-eslint/no-empty-object-type'?: undefined;
283
+ '@typescript-eslint/no-explicit-any'?: undefined;
284
+ '@typescript-eslint/no-inferrable-types'?: undefined;
285
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
286
+ eqeqeq?: undefined;
287
+ 'import/no-mutable-exports'?: undefined;
288
+ 'import/consistent-type-specifier-style'?: undefined;
289
+ 'import/no-duplicates'?: undefined;
290
+ 'import/no-named-as-default-member'?: undefined;
291
+ curly?: undefined;
292
+ 'no-console'?: undefined;
293
+ 'no-empty'?: undefined;
294
+ 'prefer-template'?: undefined;
295
+ 'no-unused-vars'?: undefined;
296
+ 'no-empty-function'?: undefined;
297
+ 'no-shadow'?: undefined;
298
+ '@typescript-eslint/ban-ts-comment'?: undefined;
299
+ };
300
+ plugins: "import"[];
301
+ env?: undefined;
302
+ } | {
303
+ files: string[];
304
+ rules: {
305
+ '@typescript-eslint/ban-ts-comment': "off";
306
+ 'no-shadow': "off";
307
+ 'constructor-super'?: undefined;
308
+ 'no-class-assign'?: undefined;
309
+ 'no-const-assign'?: undefined;
310
+ 'no-dupe-class-members'?: undefined;
311
+ 'no-dupe-keys'?: undefined;
312
+ 'no-func-assign'?: undefined;
313
+ 'no-import-assign'?: undefined;
314
+ 'no-new-native-nonconstructor'?: undefined;
315
+ 'no-obj-calls'?: undefined;
316
+ 'no-redeclare'?: undefined;
317
+ 'no-setter-return'?: undefined;
318
+ 'no-this-before-super'?: undefined;
319
+ 'no-unsafe-negation'?: undefined;
320
+ 'no-var'?: undefined;
321
+ 'no-with'?: undefined;
322
+ 'prefer-const'?: undefined;
323
+ 'prefer-rest-params'?: undefined;
324
+ 'prefer-spread'?: undefined;
325
+ '@typescript-eslint/consistent-type-definitions'?: undefined;
326
+ '@typescript-eslint/consistent-type-imports'?: undefined;
327
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
328
+ '@typescript-eslint/no-empty-interface'?: undefined;
329
+ '@typescript-eslint/no-empty-object-type'?: undefined;
330
+ '@typescript-eslint/no-explicit-any'?: undefined;
331
+ '@typescript-eslint/no-inferrable-types'?: undefined;
332
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
333
+ eqeqeq?: undefined;
334
+ 'import/no-default-export'?: undefined;
335
+ 'import/no-mutable-exports'?: undefined;
336
+ 'import/consistent-type-specifier-style'?: undefined;
337
+ 'import/no-duplicates'?: undefined;
338
+ 'import/no-named-as-default-member'?: undefined;
339
+ curly?: undefined;
340
+ 'no-console'?: undefined;
341
+ 'no-empty'?: undefined;
342
+ 'prefer-template'?: undefined;
343
+ 'no-unused-vars'?: undefined;
344
+ 'no-empty-function'?: undefined;
345
+ };
346
+ env?: undefined;
347
+ plugins?: undefined;
348
+ })[];
349
+ };
package/dist/index.js CHANGED
@@ -191,6 +191,7 @@ export const oxlintConfig = defineOxlintConfig({
191
191
  '**/dist/**',
192
192
  '**/snap/**',
193
193
  '**/vite.config.*.timestamp-*.*',
194
+ '**/api-gen/**',
194
195
  ],
195
196
  overrides: [
196
197
  {
@@ -234,7 +235,7 @@ export const oxlintConfig = defineOxlintConfig({
234
235
  'import/no-default-export': 'error',
235
236
  'import/no-mutable-exports': 'error',
236
237
  'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
237
- 'import/no-duplicates': ['error', { 'prefer-inline': true }],
238
+ 'import/no-duplicates': ['error', { preferInline: true }],
238
239
  'import/no-named-as-default-member': 'off',
239
240
  curly: 'error',
240
241
  'no-console': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmoods/oxc",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "Shared oxfmt and oxlint configs for Devmoods projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,13 +22,13 @@
22
22
  "clean": "rm -rf dist",
23
23
  "lint": "oxlint .",
24
24
  "format": "oxfmt .",
25
- "build": "pnpm run clean && tsgo",
25
+ "build": "pnpm run clean && tsc",
26
26
  "prepublishOnly": "pnpm run clean && pnpm run build"
27
27
  },
28
28
  "peerDependencies": {
29
- "oxfmt": ">=0.45.0",
30
- "oxlint": ">=1.60.0"
29
+ "oxfmt": ">=0.68.0",
30
+ "oxlint": ">=1.83.0"
31
31
  },
32
32
  "license": "MIT",
33
- "gitHead": "35497f5a3f7cbbec1ff2d2b65d0c607a90555d58"
33
+ "gitHead": "60fe0c3459c81c7d71a4423cdc66d046d166de75"
34
34
  }