@4mbl/lint 0.0.0-alpha.75c2471 → 0.0.0-alpha.75f5fe2

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/dist/next.js CHANGED
@@ -2,50 +2,62 @@ import path from 'node:path';
2
2
  import process from 'node:process';
3
3
  import { defineConfig } from 'oxlint';
4
4
  import { reactConfig } from './react.js';
5
- import reactRefresh from 'eslint-plugin-react-refresh';
6
5
  const DEFAULT_OPTIONS = { uiPath: 'src/components/ui/' };
7
6
  function nextConfig(options) {
8
7
  const opts = { ...DEFAULT_OPTIONS, ...options };
8
+ const react = reactConfig(options);
9
9
  return defineConfig({
10
- extends: [reactConfig(options)],
11
- plugins: ['nextjs'],
10
+ extends: [react],
11
+ plugins: [...react.plugins, 'nextjs'],
12
12
  rules: {
13
- '@next/next/google-font-display': 'warn',
14
- '@next/next/google-font-preconnect': 'warn',
15
- '@next/next/next-script-for-ga': 'warn',
16
- '@next/next/no-async-client-component': 'warn',
17
- '@next/next/no-before-interactive-script-outside-document': 'warn',
18
- '@next/next/no-css-tags': 'warn',
19
- '@next/next/no-head-element': 'warn',
20
- '@next/next/no-html-link-for-pages': 'error',
21
- '@next/next/no-page-custom-font': 'warn',
22
- '@next/next/no-styled-jsx-in-document': 'warn',
23
- '@next/next/no-sync-scripts': 'error',
24
- '@next/next/no-title-in-document-head': 'warn',
25
- '@next/next/no-typos': 'warn',
26
- '@next/next/no-unwanted-polyfillio': 'warn',
27
- '@next/next/inline-script-id': 'error',
28
- '@next/next/no-assign-module-variable': 'error',
29
- '@next/next/no-document-import-in-page': 'error',
30
- '@next/next/no-duplicate-head': 'error',
31
- '@next/next/no-head-import-in-document': 'error',
32
- '@next/next/no-script-component-in-head': 'error',
33
- },
34
- ignorePatterns: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
35
- overrides: [
13
+ 'nextjs/google-font-display': 'warn',
14
+ 'nextjs/google-font-preconnect': 'warn',
15
+ 'nextjs/next-script-for-ga': 'warn',
16
+ 'nextjs/no-async-client-component': 'warn',
17
+ 'nextjs/no-before-interactive-script-outside-document': 'warn',
18
+ 'nextjs/no-css-tags': 'warn',
19
+ 'nextjs/no-head-element': 'warn',
20
+ 'nextjs/no-html-link-for-pages': 'error',
21
+ 'nextjs/no-page-custom-font': 'warn',
22
+ 'nextjs/no-styled-jsx-in-document': 'warn',
23
+ 'nextjs/no-sync-scripts': 'error',
24
+ 'nextjs/no-title-in-document-head': 'warn',
25
+ 'nextjs/no-typos': 'warn',
26
+ 'nextjs/no-unwanted-polyfillio': 'warn',
27
+ 'nextjs/inline-script-id': 'error',
28
+ 'nextjs/no-assign-module-variable': 'error',
29
+ 'nextjs/no-document-import-in-page': 'error',
30
+ 'nextjs/no-duplicate-head': 'error',
31
+ 'nextjs/no-head-import-in-document': 'error',
32
+ 'nextjs/no-script-component-in-head': 'error',
36
33
  // ignores warnings for special exports in page and layout files
37
- // https://github.com/ArnaudBarre/eslint-plugin-react-refresh?tab=readme-ov-file#next-config
38
- {
39
- files: ['**/*.{js,jsx,mjs,ts,tsx,mts,cts}'],
40
- rules: {
41
- 'react-refresh-js/only-export-components': [
42
- 'error',
43
- {
44
- allowExportNames: reactRefresh.configs.next.rules['react-refresh/only-export-components'][1]['allowExportNames'],
45
- },
34
+ 'react/only-export-components': [
35
+ 'warn',
36
+ {
37
+ // https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/src/index.ts
38
+ allowExportNames: [
39
+ // removed in next@16.0.0: https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#version-history
40
+ // 'experimental_ppr',
41
+ 'dynamic',
42
+ 'dynamicParams',
43
+ 'revalidate',
44
+ 'fetchCache',
45
+ 'runtime',
46
+ 'preferredRegion',
47
+ 'maxDuration',
48
+ 'metadata',
49
+ 'generateMetadata',
50
+ 'viewport',
51
+ 'generateViewport',
52
+ 'generateImageMetadata',
53
+ 'generateSitemaps',
54
+ 'generateStaticParams',
46
55
  ],
47
56
  },
48
- },
57
+ ],
58
+ },
59
+ ignorePatterns: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
60
+ overrides: [
49
61
  opts.uiPath === null
50
62
  ? { files: [], rules: {} }
51
63
  : {
@@ -53,7 +65,7 @@ function nextConfig(options) {
53
65
  `${path.resolve(process.cwd(), opts.uiPath)}/**/*.{js,jsx,mjs,ts,tsx,mts,cts}`.replaceAll('//', '/'),
54
66
  ],
55
67
  rules: {
56
- 'react-refresh-js/only-export-components': 'off',
68
+ 'react/only-export-components': 'off',
57
69
  },
58
70
  },
59
71
  ],
package/dist/next.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAqB,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAcvD,MAAM,eAAe,GAAgB,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC;AAEtE,SAAS,UAAU,CAAC,OAA8B;IAChD,MAAM,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IAEhD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,KAAK,EAAE;YACL,gCAAgC,EAAE,MAAM;YACxC,mCAAmC,EAAE,MAAM;YAC3C,+BAA+B,EAAE,MAAM;YACvC,sCAAsC,EAAE,MAAM;YAC9C,0DAA0D,EAAE,MAAM;YAClE,wBAAwB,EAAE,MAAM;YAChC,4BAA4B,EAAE,MAAM;YACpC,mCAAmC,EAAE,OAAO;YAC5C,gCAAgC,EAAE,MAAM;YACxC,sCAAsC,EA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AAiB;wBACjB,aAAa;wBACb,UAAU;wBACV,kBAAkB;wBAClB,UAAU;wBACV,kBAAkB;wBAClB,uBAAuB;wBACvB,kBAAkB;wBAClB,sBAAsB;qBACvB;iBACF;aACF;SACF;QACD,cAAc,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,CAAC;QACnE,SAAS,EAAE;YACT,IAAI,CAAC,MAAM,KAAK,IAAI;gBAClB,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;gBAC1B,CAAC,CAAC;oBACE,KAAK,EAAE;wBACL,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,mCAAmC,CAAC,UAAU,CACvF,IAAI,EACJ,GAAG,CACJ;qBACF;oBACD,KAAK,EAAE;wBACL,8BAA8B,EAAE,KAAK;qBACtC;iBACF;SACN;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
package/dist/node.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  type NodeOptions = {};
3
- declare function nodeConfig(_options?: Partial<NodeOptions>): {
3
+ declare function nodeConfig(options?: Partial<NodeOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript")[];
5
+ plugins: ("unicorn" | "typescript" | "import")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
8
  correctness: "error";
@@ -92,7 +92,7 @@ declare function nodeConfig(_options?: Partial<NodeOptions>): {
92
92
  'typescript/prefer-as-const': "error";
93
93
  'typescript/triple-slash-reference': "error";
94
94
  'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
95
+ accessibility: "no-public";
96
96
  }];
97
97
  'eslint/id-length': "off";
98
98
  'eslint/sort-keys': "off";
@@ -102,13 +102,13 @@ declare function nodeConfig(_options?: Partial<NodeOptions>): {
102
102
  'eslint/max-params': "off";
103
103
  'eslint/no-ternary': "off";
104
104
  'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
105
+ 'typescript/consistent-type-definitions': ["warn", "type"];
106
106
  'eslint/max-statements': "off";
107
107
  'typescript/consistent-return': "off";
108
108
  'unicorn/switch-case-braces': "warn";
109
109
  'typescript/prefer-regexp-exec': "warn";
110
110
  'eslint/init-declarations': "off";
111
- 'unicorn/no-null': "warn";
111
+ 'unicorn/no-null': "off";
112
112
  'eslint/no-undefined': "off";
113
113
  'eslint/no-console': "off";
114
114
  'eslint/no-continue': "off";
@@ -121,15 +121,29 @@ declare function nodeConfig(_options?: Partial<NodeOptions>): {
121
121
  'eslint/no-empty-function': ["warn", {
122
122
  allow: string[];
123
123
  }];
124
+ 'unicorn/no-instanceof-builtins': "off";
125
+ 'unicorn/prefer-spread': "off";
126
+ 'eslint/new-cap': "off";
127
+ 'unicorn/no-await-expression-member': "off";
124
128
  'eslint/no-duplicate-imports': ["warn", {
125
129
  allowSeparateTypeImports: boolean;
126
130
  }];
131
+ 'import/no-named-export': "off";
132
+ 'import/no-default-export': "off";
133
+ 'import/prefer-default-export': "off";
134
+ 'import/no-namespace': "off";
135
+ 'import/exports-last': "off";
136
+ 'import/no-unassigned-import': "off";
137
+ 'import/group-exports': "off";
138
+ 'import/consistent-type-specifier-style': "off";
127
139
  'unicorn/no-new-array': "off";
128
140
  'eslint/no-array-constructor': "warn";
129
141
  'typescript/explicit-function-return-type': "off";
130
142
  'typescript/explicit-module-boundary-types': "off";
131
143
  'unicorn/no-anonymous-default-export': "off";
132
144
  'eslint/sort-imports': "off";
145
+ 'import/no-relative-parent-imports': "off";
146
+ 'unicorn/max-nested-calls': "off";
133
147
  'eslint/no-magic-numbers': "off";
134
148
  'unicorn/prefer-modern-math-apis': "off";
135
149
  'eslint/no-use-before-define': "off";
@@ -149,14 +163,21 @@ declare function nodeConfig(_options?: Partial<NodeOptions>): {
149
163
  'oxc/no-async-await': "off";
150
164
  };
151
165
  }[];
166
+ plugins: ("unicorn" | "typescript" | "import")[];
152
167
  env: {
153
168
  node: true;
154
169
  };
170
+ rules: {
171
+ 'eslint/no-underscore-dangle': ["warn", {
172
+ allow: string[];
173
+ }];
174
+ 'no-nodejs-modules': "off";
175
+ };
155
176
  };
156
177
  export { type OxlintConfig, defineConfig, nodeConfig };
157
178
  declare const _default: {
158
179
  extends: {
159
- plugins: ("unicorn" | "typescript")[];
180
+ plugins: ("unicorn" | "typescript" | "import")[];
160
181
  jsPlugins: never[];
161
182
  categories: {
162
183
  correctness: "error";
@@ -246,7 +267,7 @@ declare const _default: {
246
267
  'typescript/prefer-as-const': "error";
247
268
  'typescript/triple-slash-reference': "error";
248
269
  'typescript/explicit-member-accessibility': ["warn", {
249
- accessibility: string;
270
+ accessibility: "no-public";
250
271
  }];
251
272
  'eslint/id-length': "off";
252
273
  'eslint/sort-keys': "off";
@@ -256,13 +277,13 @@ declare const _default: {
256
277
  'eslint/max-params': "off";
257
278
  'eslint/no-ternary': "off";
258
279
  'eslint/curly': "warn";
259
- 'typescript/consistent-type-definitions': ["warn", string];
280
+ 'typescript/consistent-type-definitions': ["warn", "type"];
260
281
  'eslint/max-statements': "off";
261
282
  'typescript/consistent-return': "off";
262
283
  'unicorn/switch-case-braces': "warn";
263
284
  'typescript/prefer-regexp-exec': "warn";
264
285
  'eslint/init-declarations': "off";
265
- 'unicorn/no-null': "warn";
286
+ 'unicorn/no-null': "off";
266
287
  'eslint/no-undefined': "off";
267
288
  'eslint/no-console': "off";
268
289
  'eslint/no-continue': "off";
@@ -275,15 +296,29 @@ declare const _default: {
275
296
  'eslint/no-empty-function': ["warn", {
276
297
  allow: string[];
277
298
  }];
299
+ 'unicorn/no-instanceof-builtins': "off";
300
+ 'unicorn/prefer-spread': "off";
301
+ 'eslint/new-cap': "off";
302
+ 'unicorn/no-await-expression-member': "off";
278
303
  'eslint/no-duplicate-imports': ["warn", {
279
304
  allowSeparateTypeImports: boolean;
280
305
  }];
306
+ 'import/no-named-export': "off";
307
+ 'import/no-default-export': "off";
308
+ 'import/prefer-default-export': "off";
309
+ 'import/no-namespace': "off";
310
+ 'import/exports-last': "off";
311
+ 'import/no-unassigned-import': "off";
312
+ 'import/group-exports': "off";
313
+ 'import/consistent-type-specifier-style': "off";
281
314
  'unicorn/no-new-array': "off";
282
315
  'eslint/no-array-constructor': "warn";
283
316
  'typescript/explicit-function-return-type': "off";
284
317
  'typescript/explicit-module-boundary-types': "off";
285
318
  'unicorn/no-anonymous-default-export': "off";
286
319
  'eslint/sort-imports': "off";
320
+ 'import/no-relative-parent-imports': "off";
321
+ 'unicorn/max-nested-calls': "off";
287
322
  'eslint/no-magic-numbers': "off";
288
323
  'unicorn/prefer-modern-math-apis': "off";
289
324
  'eslint/no-use-before-define': "off";
@@ -303,9 +338,16 @@ declare const _default: {
303
338
  'oxc/no-async-await': "off";
304
339
  };
305
340
  }[];
341
+ plugins: ("unicorn" | "typescript" | "import")[];
306
342
  env: {
307
343
  node: true;
308
344
  };
345
+ rules: {
346
+ 'eslint/no-underscore-dangle': ["warn", {
347
+ allow: string[];
348
+ }];
349
+ 'no-nodejs-modules': "off";
350
+ };
309
351
  };
310
352
  export default _default;
311
353
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,wBAA4B"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,wBAA4B"}
package/dist/node.js CHANGED
@@ -1,13 +1,23 @@
1
1
  import { defineConfig } from 'oxlint';
2
2
  import { baseConfig } from './base.js';
3
3
  // const DEFAULT_OPTIONS: NodeOptions = {};
4
- function nodeConfig(_options) {
4
+ function nodeConfig(options) {
5
5
  // const opts = { ...DEFAULT_OPTIONS, ...options };
6
+ const base = baseConfig(options);
6
7
  return defineConfig({
7
- extends: [baseConfig()],
8
+ extends: [base],
9
+ // when changing plugins the parent plugins need to be extended, otherwise they are overridden
10
+ plugins: base.plugins,
8
11
  env: {
9
12
  node: true,
10
13
  },
14
+ rules: {
15
+ 'eslint/no-underscore-dangle': [
16
+ 'warn',
17
+ { allow: ['__dirname', '__filename'] },
18
+ ],
19
+ 'no-nodejs-modules': 'off',
20
+ },
11
21
  });
12
22
  }
13
23
  export { defineConfig, nodeConfig };
package/dist/node.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,2CAA2C;AAE3C,SAAS,UAAU,CAAC,QAA+B;IACjD,mDAAmD;IAEnD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,CAAC;QACvB,GAAG,EAAE;YACH,IAAI,EAAE,IAAI;SACX;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,2CAA2C;AAE3C,SAAS,UAAU,CAAC,OAA8B;IAChD,mDAAmD;IAEnD,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,8FAA8F;QAC9F,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,GAAG,EAAE;YACH,IAAI,EAAE,IAAI;SACX;QAED,KAAK,EAAE;YACL,6BAA6B,EAAE;gBAC7B,MAAM;gBACN,EAAE,KAAK,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE;aACvC;YACD,mBAAmB,EAAE,KAAK;SAC3B;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
package/dist/react.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  export type ReactOptions = {};
3
- declare function reactConfig(_options?: Partial<ReactOptions>): {
3
+ declare function reactConfig(options?: Partial<ReactOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript")[];
5
+ plugins: ("unicorn" | "typescript" | "import")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
8
  correctness: "error";
@@ -92,7 +92,7 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
92
92
  'typescript/prefer-as-const': "error";
93
93
  'typescript/triple-slash-reference': "error";
94
94
  'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
95
+ accessibility: "no-public";
96
96
  }];
97
97
  'eslint/id-length': "off";
98
98
  'eslint/sort-keys': "off";
@@ -102,13 +102,13 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
102
102
  'eslint/max-params': "off";
103
103
  'eslint/no-ternary': "off";
104
104
  'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
105
+ 'typescript/consistent-type-definitions': ["warn", "type"];
106
106
  'eslint/max-statements': "off";
107
107
  'typescript/consistent-return': "off";
108
108
  'unicorn/switch-case-braces': "warn";
109
109
  'typescript/prefer-regexp-exec': "warn";
110
110
  'eslint/init-declarations': "off";
111
- 'unicorn/no-null': "warn";
111
+ 'unicorn/no-null': "off";
112
112
  'eslint/no-undefined': "off";
113
113
  'eslint/no-console': "off";
114
114
  'eslint/no-continue': "off";
@@ -121,15 +121,29 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
121
121
  'eslint/no-empty-function': ["warn", {
122
122
  allow: string[];
123
123
  }];
124
+ 'unicorn/no-instanceof-builtins': "off";
125
+ 'unicorn/prefer-spread': "off";
126
+ 'eslint/new-cap': "off";
127
+ 'unicorn/no-await-expression-member': "off";
124
128
  'eslint/no-duplicate-imports': ["warn", {
125
129
  allowSeparateTypeImports: boolean;
126
130
  }];
131
+ 'import/no-named-export': "off";
132
+ 'import/no-default-export': "off";
133
+ 'import/prefer-default-export': "off";
134
+ 'import/no-namespace': "off";
135
+ 'import/exports-last': "off";
136
+ 'import/no-unassigned-import': "off";
137
+ 'import/group-exports': "off";
138
+ 'import/consistent-type-specifier-style': "off";
127
139
  'unicorn/no-new-array': "off";
128
140
  'eslint/no-array-constructor': "warn";
129
141
  'typescript/explicit-function-return-type': "off";
130
142
  'typescript/explicit-module-boundary-types': "off";
131
143
  'unicorn/no-anonymous-default-export': "off";
132
144
  'eslint/sort-imports': "off";
145
+ 'import/no-relative-parent-imports': "off";
146
+ 'unicorn/max-nested-calls': "off";
133
147
  'eslint/no-magic-numbers': "off";
134
148
  'unicorn/prefer-modern-math-apis': "off";
135
149
  'eslint/no-use-before-define': "off";
@@ -149,17 +163,24 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
149
163
  'oxc/no-async-await': "off";
150
164
  };
151
165
  }[];
152
- plugins: "react"[];
166
+ plugins: ("react" | "unicorn" | "typescript" | "import")[];
153
167
  jsPlugins: {
154
168
  name: string;
155
169
  specifier: string;
156
170
  }[];
157
171
  rules: {
158
- 'react-hooks-js/rules-of-hooks': "error";
159
- 'react-hooks-js/exhaustive-deps': "warn";
172
+ 'react/rules-of-hooks': "error";
173
+ 'react/exhaustive-deps': "warn";
160
174
  'react-hooks-js/set-state-in-effect': "warn";
161
- 'react-refresh-js/only-export-components': "error";
175
+ 'react/only-export-components': "error";
162
176
  'react-compiler-js/react-compiler': "error";
177
+ 'react/jsx-filename-extension': "off";
178
+ 'react/jsx-max-depth': "off";
179
+ 'react/no-multi-comp': "off";
180
+ 'react/jsx-props-no-spreading': "off";
181
+ 'react/jsx-no-literals': "off";
182
+ 'react/forbid-component-props': "off";
183
+ 'react/forbid-dom-props': "off";
163
184
  };
164
185
  overrides: {
165
186
  files: string[];
@@ -184,7 +205,7 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
184
205
  'react/require-render-return': "error";
185
206
  'import/no-anonymous-default-export': "warn";
186
207
  'jsx-a11y/alt-text': ["warn", {
187
- elements: string[];
208
+ elements: "img"[];
188
209
  img: string[];
189
210
  }];
190
211
  'jsx-a11y/aria-props': "warn";
@@ -212,7 +233,7 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
212
233
  export { type OxlintConfig, defineConfig, reactConfig };
213
234
  declare const _default: {
214
235
  extends: {
215
- plugins: ("unicorn" | "typescript")[];
236
+ plugins: ("unicorn" | "typescript" | "import")[];
216
237
  jsPlugins: never[];
217
238
  categories: {
218
239
  correctness: "error";
@@ -302,7 +323,7 @@ declare const _default: {
302
323
  'typescript/prefer-as-const': "error";
303
324
  'typescript/triple-slash-reference': "error";
304
325
  'typescript/explicit-member-accessibility': ["warn", {
305
- accessibility: string;
326
+ accessibility: "no-public";
306
327
  }];
307
328
  'eslint/id-length': "off";
308
329
  'eslint/sort-keys': "off";
@@ -312,13 +333,13 @@ declare const _default: {
312
333
  'eslint/max-params': "off";
313
334
  'eslint/no-ternary': "off";
314
335
  'eslint/curly': "warn";
315
- 'typescript/consistent-type-definitions': ["warn", string];
336
+ 'typescript/consistent-type-definitions': ["warn", "type"];
316
337
  'eslint/max-statements': "off";
317
338
  'typescript/consistent-return': "off";
318
339
  'unicorn/switch-case-braces': "warn";
319
340
  'typescript/prefer-regexp-exec': "warn";
320
341
  'eslint/init-declarations': "off";
321
- 'unicorn/no-null': "warn";
342
+ 'unicorn/no-null': "off";
322
343
  'eslint/no-undefined': "off";
323
344
  'eslint/no-console': "off";
324
345
  'eslint/no-continue': "off";
@@ -331,15 +352,29 @@ declare const _default: {
331
352
  'eslint/no-empty-function': ["warn", {
332
353
  allow: string[];
333
354
  }];
355
+ 'unicorn/no-instanceof-builtins': "off";
356
+ 'unicorn/prefer-spread': "off";
357
+ 'eslint/new-cap': "off";
358
+ 'unicorn/no-await-expression-member': "off";
334
359
  'eslint/no-duplicate-imports': ["warn", {
335
360
  allowSeparateTypeImports: boolean;
336
361
  }];
362
+ 'import/no-named-export': "off";
363
+ 'import/no-default-export': "off";
364
+ 'import/prefer-default-export': "off";
365
+ 'import/no-namespace': "off";
366
+ 'import/exports-last': "off";
367
+ 'import/no-unassigned-import': "off";
368
+ 'import/group-exports': "off";
369
+ 'import/consistent-type-specifier-style': "off";
337
370
  'unicorn/no-new-array': "off";
338
371
  'eslint/no-array-constructor': "warn";
339
372
  'typescript/explicit-function-return-type': "off";
340
373
  'typescript/explicit-module-boundary-types': "off";
341
374
  'unicorn/no-anonymous-default-export': "off";
342
375
  'eslint/sort-imports': "off";
376
+ 'import/no-relative-parent-imports': "off";
377
+ 'unicorn/max-nested-calls': "off";
343
378
  'eslint/no-magic-numbers': "off";
344
379
  'unicorn/prefer-modern-math-apis': "off";
345
380
  'eslint/no-use-before-define': "off";
@@ -359,17 +394,24 @@ declare const _default: {
359
394
  'oxc/no-async-await': "off";
360
395
  };
361
396
  }[];
362
- plugins: "react"[];
397
+ plugins: ("react" | "unicorn" | "typescript" | "import")[];
363
398
  jsPlugins: {
364
399
  name: string;
365
400
  specifier: string;
366
401
  }[];
367
402
  rules: {
368
- 'react-hooks-js/rules-of-hooks': "error";
369
- 'react-hooks-js/exhaustive-deps': "warn";
403
+ 'react/rules-of-hooks': "error";
404
+ 'react/exhaustive-deps': "warn";
370
405
  'react-hooks-js/set-state-in-effect': "warn";
371
- 'react-refresh-js/only-export-components': "error";
406
+ 'react/only-export-components': "error";
372
407
  'react-compiler-js/react-compiler': "error";
408
+ 'react/jsx-filename-extension': "off";
409
+ 'react/jsx-max-depth': "off";
410
+ 'react/no-multi-comp': "off";
411
+ 'react/jsx-props-no-spreading': "off";
412
+ 'react/jsx-no-literals': "off";
413
+ 'react/forbid-component-props': "off";
414
+ 'react/forbid-dom-props': "off";
373
415
  };
374
416
  overrides: {
375
417
  files: string[];
@@ -394,7 +436,7 @@ declare const _default: {
394
436
  'react/require-render-return': "error";
395
437
  'import/no-anonymous-default-export': "warn";
396
438
  'jsx-a11y/alt-text': ["warn", {
397
- elements: string[];
439
+ elements: "img"[];
398
440
  img: string[];
399
441
  }];
400
442
  'jsx-a11y/aria-props': "warn";
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEpD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,wBAA6B"}
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,wBAA6B"}
package/dist/react.js CHANGED
@@ -1,22 +1,36 @@
1
1
  import { defineConfig } from 'oxlint';
2
2
  import { baseConfig } from './base.js';
3
3
  // const DEFAULT_OPTIONS: ReactOptions = {};
4
- function reactConfig(_options) {
4
+ function reactConfig(options) {
5
5
  // const opts = { ...DEFAULT_OPTIONS, ...options };
6
+ const base = baseConfig(options);
6
7
  return defineConfig({
7
- extends: [baseConfig()],
8
- plugins: ['react'],
8
+ extends: [base],
9
+ plugins: [...base.plugins, 'react'],
9
10
  jsPlugins: [
11
+ // react compiler is not yet supported by oxc
12
+ // https://github.com/oxc-project/oxc/issues/10048
13
+ // this means compiler related rules are not yet supported
14
+ // https://github.com/oxc-project/oxc/issues/1022
15
+ // react compiler port to rust may enable compiler related rules
16
+ // https://github.com/facebook/react/pull/36173
10
17
  { name: 'react-hooks-js', specifier: 'eslint-plugin-react-hooks' },
11
- { name: 'react-refresh-js', specifier: 'eslint-plugin-react-refresh' },
12
18
  { name: 'react-compiler-js', specifier: 'eslint-plugin-react-compiler' },
13
19
  ],
14
20
  rules: {
15
- 'react-hooks-js/rules-of-hooks': 'error',
16
- 'react-hooks-js/exhaustive-deps': 'warn',
21
+ 'react/rules-of-hooks': 'error',
22
+ 'react/exhaustive-deps': 'warn',
17
23
  'react-hooks-js/set-state-in-effect': 'warn',
18
- 'react-refresh-js/only-export-components': 'error',
24
+ 'react/only-export-components': 'error',
19
25
  'react-compiler-js/react-compiler': 'error',
26
+ 'react/jsx-filename-extension': 'off',
27
+ 'react/jsx-max-depth': 'off',
28
+ 'react/no-multi-comp': 'off',
29
+ 'react/jsx-props-no-spreading': 'off',
30
+ 'react/jsx-no-literals': 'off',
31
+ // conflicts with tailwind
32
+ 'react/forbid-component-props': 'off',
33
+ 'react/forbid-dom-props': 'off',
20
34
  },
21
35
  overrides: [
22
36
  {
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,4CAA4C;AAE5C,SAAS,WAAW,CAAC,QAAgC;IACnD,mDAAmD;IAEnD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,SAAS,EAAE;YACT,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,2BAA2B,EAAE;YAClE,EAAE,IAAI,EAAE,kBAAkB,EAAE,SA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ACtB,kBAAkB,EAAE,UAAU;iBAC/B;gBACD,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;gBAC/B,GAAG,EAAE;oBACH,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,IAAI;iBACX;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,eAAe,WAAW,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.0.0-alpha.75c2471",
3
+ "version": "0.0.0-alpha.75f5fe2",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -32,16 +32,13 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
35
- "eslint-plugin-react-hooks": "^7.1.1",
36
- "eslint-plugin-react-refresh": "^0.5.2",
37
- "globals": "^17.5.0",
38
- "jiti": "^2.6.1",
39
- "oxlint": "^1.60.0",
40
- "oxlint-tsgolint": "^0.21.1"
35
+ "eslint-plugin-react-hooks": "7.1.1",
36
+ "oxlint": "1.73.x",
37
+ "oxlint-tsgolint": "0.24.x"
41
38
  },
42
39
  "devDependencies": {
43
- "@types/node": "^24.12.2",
44
- "@4mbl/tsconfig": "0.0.0-alpha.75c2471"
40
+ "@types/node": "^24.13.3",
41
+ "@4mbl/tsconfig": "0.0.0-alpha.75f5fe2"
45
42
  },
46
43
  "scripts": {
47
44
  "build": "tsc"