@4mbl/lint 0.0.0-alpha.26fa690 → 0.0.0-alpha.27f2dbf

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/CHANGELOG.md CHANGED
@@ -1,5 +1,95 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 1.0.0-beta.29
4
+
5
+ ### Minor Changes
6
+
7
+ - fec850c: Migrate to native React Compiler rules
8
+
9
+ ## 1.0.0-beta.28
10
+
11
+ ### Patch Changes
12
+
13
+ - cd19ade: Preserve all config properties when extending presets
14
+
15
+ ## 1.0.0-beta.27
16
+
17
+ ### Minor Changes
18
+
19
+ - 10abc93: Upgrade dependencies
20
+
21
+ ### Patch Changes
22
+
23
+ - dcfb4b0: [react] Preserve inherited plugins.
24
+ - f48a223: [react] Scope JSX rules in React preset
25
+
26
+ ## 1.0.0-beta.26
27
+
28
+ ### Minor Changes
29
+
30
+ - 10abc93: Upgrade dependencies
31
+
32
+ ## 1.0.0-beta.25
33
+
34
+ ### Minor Changes
35
+
36
+ - b812b8d: Upgrade dependencies
37
+
38
+ ## 1.0.0-beta.24
39
+
40
+ ### Minor Changes
41
+
42
+ - c713974: [base] Enable type-check within oxlint
43
+ - 87a9f36: Upgrade dependencies
44
+
45
+ ## 1.0.0-beta.23
46
+
47
+ ### Minor Changes
48
+
49
+ - 09239e5: Upgrade dependencies
50
+
51
+ ## 1.0.0-beta.22
52
+
53
+ ### Minor Changes
54
+
55
+ - 75f5fe2: Upgrade dependencies
56
+
57
+ ## 1.0.0-beta.21
58
+
59
+ ### Minor Changes
60
+
61
+ - ae2bb06: [base] Disable unicorn/max-nested-calls rule
62
+
63
+ ## 1.0.0-beta.20
64
+
65
+ ### Minor Changes
66
+
67
+ - 0a0c233: Upgrade dependencies
68
+
69
+ ## 1.0.0-beta.19
70
+
71
+ ### Minor Changes
72
+
73
+ - 4d35fb5: [react] Disable react/jsx-no-literals rule
74
+
75
+ ## 1.0.0-beta.18
76
+
77
+ ### Minor Changes
78
+
79
+ - a50c3f4: Upgrade dependencies
80
+
81
+ ## 1.0.0-beta.17
82
+
83
+ ### Minor Changes
84
+
85
+ - f0f62f4: Upgrade dependencies
86
+
87
+ ## 1.0.0-beta.16
88
+
89
+ ### Minor Changes
90
+
91
+ - b303b6f: Upgrade dependencies
92
+
3
93
  ## 1.0.0-beta.15
4
94
 
5
95
  ### Minor Changes
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  type BaseOptions = {};
3
3
  declare function baseConfig(_options?: Partial<BaseOptions>): {
4
- plugins: ("unicorn" | "typescript" | "import")[];
4
+ plugins: ("import" | "typescript" | "unicorn")[];
5
5
  jsPlugins: never[];
6
6
  categories: {
7
7
  correctness: "error";
@@ -17,6 +17,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
17
17
  };
18
18
  options: {
19
19
  typeAware: true;
20
+ typeCheck: true;
20
21
  };
21
22
  rules: {
22
23
  'eslint/no-var': "warn";
@@ -91,7 +92,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
91
92
  'typescript/prefer-as-const': "error";
92
93
  'typescript/triple-slash-reference': "error";
93
94
  'typescript/explicit-member-accessibility': ["warn", {
94
- accessibility: string;
95
+ accessibility: "no-public";
95
96
  }];
96
97
  'eslint/id-length': "off";
97
98
  'eslint/sort-keys': "off";
@@ -101,7 +102,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
101
102
  'eslint/max-params': "off";
102
103
  'eslint/no-ternary': "off";
103
104
  'eslint/curly': "warn";
104
- 'typescript/consistent-type-definitions': ["warn", string];
105
+ 'typescript/consistent-type-definitions': ["warn", "type"];
105
106
  'eslint/max-statements': "off";
106
107
  'typescript/consistent-return': "off";
107
108
  'unicorn/switch-case-braces': "warn";
@@ -142,6 +143,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
142
143
  'unicorn/no-anonymous-default-export': "off";
143
144
  'eslint/sort-imports': "off";
144
145
  'import/no-relative-parent-imports': "off";
146
+ 'unicorn/max-nested-calls': "off";
145
147
  'eslint/no-magic-numbers': "off";
146
148
  'unicorn/prefer-modern-math-apis': "off";
147
149
  'eslint/no-use-before-define': "off";
@@ -163,7 +165,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
163
165
  };
164
166
  export { type OxlintConfig, defineConfig, baseConfig };
165
167
  declare const _default: {
166
- plugins: ("unicorn" | "typescript" | "import")[];
168
+ plugins: ("import" | "typescript" | "unicorn")[];
167
169
  jsPlugins: never[];
168
170
  categories: {
169
171
  correctness: "error";
@@ -179,6 +181,7 @@ declare const _default: {
179
181
  };
180
182
  options: {
181
183
  typeAware: true;
184
+ typeCheck: true;
182
185
  };
183
186
  rules: {
184
187
  'eslint/no-var': "warn";
@@ -253,7 +256,7 @@ declare const _default: {
253
256
  'typescript/prefer-as-const': "error";
254
257
  'typescript/triple-slash-reference': "error";
255
258
  'typescript/explicit-member-accessibility': ["warn", {
256
- accessibility: string;
259
+ accessibility: "no-public";
257
260
  }];
258
261
  'eslint/id-length': "off";
259
262
  'eslint/sort-keys': "off";
@@ -263,7 +266,7 @@ declare const _default: {
263
266
  'eslint/max-params': "off";
264
267
  'eslint/no-ternary': "off";
265
268
  'eslint/curly': "warn";
266
- 'typescript/consistent-type-definitions': ["warn", string];
269
+ 'typescript/consistent-type-definitions': ["warn", "type"];
267
270
  'eslint/max-statements': "off";
268
271
  'typescript/consistent-return': "off";
269
272
  'unicorn/switch-case-braces': "warn";
@@ -304,6 +307,7 @@ declare const _default: {
304
307
  'unicorn/no-anonymous-default-export': "off";
305
308
  'eslint/sort-imports': "off";
306
309
  'import/no-relative-parent-imports': "off";
310
+ 'unicorn/max-nested-calls': "off";
307
311
  'eslint/no-magic-numbers': "off";
308
312
  'unicorn/prefer-modern-math-apis': "off";
309
313
  'eslint/no-use-before-define': "off";
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyLlD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,wBAA4B"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2LlD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/base.js CHANGED
@@ -19,6 +19,7 @@ function baseConfig(_options) {
19
19
  },
20
20
  options: {
21
21
  typeAware: true,
22
+ typeCheck: true,
22
23
  },
23
24
  rules: {
24
25
  //* ERRORS - base rules that are always mistakes
@@ -150,6 +151,7 @@ function baseConfig(_options) {
150
151
  'unicorn/no-anonymous-default-export': 'off',
151
152
  'eslint/sort-imports': 'off', // consider when oxfmt is setup
152
153
  'import/no-relative-parent-imports': 'off',
154
+ 'unicorn/max-nested-calls': 'off',
153
155
  // currently produces too many false positives
154
156
  'eslint/no-magic-numbers': 'off',
155
157
  'unicorn/prefer-modern-math-apis': 'off',
package/dist/base.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AAIzD,2CAA2C;AAE3C,SAAS,UAAU,CAAC,QAA+B;IACjD,mDAAmD;IAEnD,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,CAAC;QAC5C,SAAS,EAAE,EAAE;QACb,UAAU,EAAE;YACV,WAAW,EAAE,OAAO;YACpB,UAAU,EAAE,MAAM;YAClB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,MAAM;YACnB,OAAO,EAAE,KAAK;SACf;QACD,GAAG,EAAE;YACH,OAAO,EAAE,IAAI;SACd;QACD,OAAO,EAAE;YACP,SAAS,EAAE,IAAI;SAChB;QACD,KAAK,EAAE;YACL,gDAAgD;YAChD,wCAAwC;YACxC,kEAAkE;YAClE,eAAe,EAAE,MAAM;YACvB,qBAAqB,EAAE,OAAO;YAC9B,2BAA2B,EAAE,OAAO;YACpC,sBAAsB,EAAE,OAAO;YAC/B,kCAAkC,EAAE,OAAO;YAC3C,6BAA6B,EAAE,OAAO;YACtC,wBAAwB,EAAE,OAAO;YACjC,4BAA4B,EAAE,OAAO;YACrC,uBAAuB,EAAE,OAA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iCAAiC;YACjC,0BAA0B,EAAE,KAAK;YACjC,sBAAsB,EAAE,KAAK;YAC7B,8BAA8B,EAAE,KAAK;YACrC,qBAAqB,EAAE,KAAK;YAC5B,qCAAqC,EAAE,KAAK;YAC5C,yBAAyB,EAAE,KAAK;YAChC,6BAA6B,EAAE,KAAK;YACpC,iBAAiB,EAAE,KAAK;YACxB,uBAAuB,EAAE,KAAK,EAAE,yEAAyE;YACzG,gBAAgB,EAAE,KAAK;YAEvB,0BAA0B;YAC1B,2BAA2B,EAAE,KAAK;YAElC,oDAAoD;YACpD,0BAA0B,EAAE,KAAK;YACjC,+BAA+B,EAAE,KAAK;YACtC,oBAAoB,EAAE,KAAK;SAC5B;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type OxlintConfig } from 'oxlint';
2
+ declare function extendConfig(parent: OxlintConfig, config: Omit<OxlintConfig, 'extends'>): OxlintConfig;
3
+ export { extendConfig };
4
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,iBAAS,YAAY,CACnB,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GACpC,YAAY,CAmBd;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/dist/config.js ADDED
@@ -0,0 +1,23 @@
1
+ import { defineConfig } from 'oxlint';
2
+ function extendConfig(parent, config) {
3
+ return defineConfig({
4
+ ...config,
5
+ extends: [parent],
6
+ categories: { ...parent.categories, ...config.categories },
7
+ env: { ...parent.env, ...config.env },
8
+ globals: { ...parent.globals, ...config.globals },
9
+ ignorePatterns: [
10
+ ...(parent.ignorePatterns ?? []),
11
+ ...(config.ignorePatterns ?? []),
12
+ ],
13
+ jsPlugins: [
14
+ ...(parent.jsPlugins ?? []),
15
+ ...(config.jsPlugins ?? []),
16
+ ],
17
+ options: { ...parent.options, ...config.options },
18
+ plugins: config.plugins ?? [],
19
+ settings: { ...parent.settings, ...config.settings },
20
+ });
21
+ }
22
+ export { extendConfig };
23
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AAEzD,SAAS,YAAY,CACnB,MAAoB,EACpB,MAAqC;IAErC,OAAO,YAAY,CAAC;QAClB,GAAG,MAAM;QACT,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,UAAU,EAAE,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE;QAC1D,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE;QACrC,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE;QACjD,cAAc,EAAE;YACd,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;YAChC,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;SACjC;QACD,SAAS,EAAE;YACT,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;YAC3B,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;SAC5B;QACD,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE;QACjD,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;QAC7B,QAAQ,EAAE,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE;KACrD,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAE5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,gBA0EjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;AAEvD,wBAA4B"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAE5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,gBAyEjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/next.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import path from 'node:path';
2
2
  import process from 'node:process';
3
3
  import { defineConfig } from 'oxlint';
4
+ import { extendConfig } from './config.js';
4
5
  import { reactConfig } from './react.js';
5
6
  const DEFAULT_OPTIONS = { uiPath: 'src/components/ui/' };
6
7
  function nextConfig(options) {
7
8
  const opts = { ...DEFAULT_OPTIONS, ...options };
8
9
  const react = reactConfig(options);
9
- return defineConfig({
10
- extends: [react],
11
- plugins: [...react.plugins, 'nextjs'],
10
+ return extendConfig(react, {
11
+ plugins: ['nextjs'],
12
12
  rules: {
13
13
  'nextjs/google-font-display': 'warn',
14
14
  'nextjs/google-font-preconnect': 'warn',
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,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,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC;QACrC,KAAK,EAAE;YACL,4BAA4B,EAAE,MAAM;YACpC,+BAA+B,EAAE,MAAM;YACvC,2BAA2B,EAAE,MAAM;YACnC,kCAAkC,EAAE,MAAM;YAC1C,sDAAsD,EAAE,MAAM;YAC9D,oBAAoB,EAAE,MAAM;YAC5B,wBAAwB,EAAE,MAAM;YAChC,+BAA+B,EAAE,OAAO;YACxC,4BAA4B,EAAE,MAAM;YACpC,kCAAkC,EAAE,MAAM;YAC1C,wBAAwB,EAAE,OAAO;YACjC,kCAAkC,EAAE,MAAM;YAC1C,iBAAiB,EAAE,MAAM;YACzB,+BAA+B,EAAE,MAAM;YACvC,yBAAyB,EAAE,OAAO;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vB,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,351 +1,7 @@
1
1
  import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  type NodeOptions = {};
3
- declare function nodeConfig(options?: Partial<NodeOptions>): {
4
- extends: {
5
- plugins: ("unicorn" | "typescript" | "import")[];
6
- jsPlugins: never[];
7
- categories: {
8
- correctness: "error";
9
- suspicious: "warn";
10
- pedantic: "off";
11
- perf: "warn";
12
- style: "warn";
13
- restriction: "warn";
14
- nursery: "off";
15
- };
16
- env: {
17
- builtin: true;
18
- };
19
- options: {
20
- typeAware: true;
21
- };
22
- rules: {
23
- 'eslint/no-var': "warn";
24
- 'eslint/prefer-const': "error";
25
- 'eslint/prefer-rest-params': "error";
26
- 'eslint/prefer-spread': "error";
27
- 'eslint/no-async-promise-executor': "error";
28
- 'eslint/no-case-declarations': "error";
29
- 'eslint/no-class-assign': "error";
30
- 'eslint/no-compare-neg-zero': "error";
31
- 'eslint/no-cond-assign': "error";
32
- 'eslint/no-const-assign': "error";
33
- 'eslint/no-constant-binary-expression': "error";
34
- 'eslint/no-constant-condition': "error";
35
- 'eslint/no-control-regex': "error";
36
- 'eslint/no-debugger': "error";
37
- 'eslint/no-delete-var': "error";
38
- 'eslint/no-dupe-else-if': "error";
39
- 'eslint/no-duplicate-case': "error";
40
- 'eslint/no-empty': "error";
41
- 'eslint/no-empty-character-class': "error";
42
- 'eslint/no-empty-pattern': "error";
43
- 'eslint/no-empty-static-block': "error";
44
- 'eslint/no-ex-assign': "error";
45
- 'eslint/no-extra-boolean-cast': "error";
46
- 'eslint/no-fallthrough': ["error", {
47
- allowEmptyCase: boolean;
48
- }];
49
- 'eslint/no-func-assign': "error";
50
- 'eslint/no-global-assign': "error";
51
- 'eslint/no-import-assign': "error";
52
- 'eslint/no-invalid-regexp': "error";
53
- 'eslint/no-irregular-whitespace': "error";
54
- 'eslint/no-loss-of-precision': "error";
55
- 'eslint/no-misleading-character-class': "error";
56
- 'eslint/no-nonoctal-decimal-escape': "error";
57
- 'eslint/no-obj-calls': "error";
58
- 'eslint/no-prototype-builtins': "error";
59
- 'eslint/no-redeclare': "error";
60
- 'eslint/no-regex-spaces': "error";
61
- 'eslint/no-self-assign': "error";
62
- 'eslint/no-shadow-restricted-names': "error";
63
- 'eslint/no-sparse-arrays': "error";
64
- 'eslint/no-unexpected-multiline': "error";
65
- 'eslint/no-unsafe-finally': "error";
66
- 'eslint/no-unsafe-negation': "error";
67
- 'eslint/no-unsafe-optional-chaining': "error";
68
- 'eslint/no-unused-labels': "error";
69
- 'eslint/no-unused-private-class-members': "error";
70
- 'eslint/no-unused-vars': "warn";
71
- 'eslint/no-useless-backreference': "error";
72
- 'eslint/no-useless-catch': "error";
73
- 'eslint/no-useless-escape': "error";
74
- 'eslint/require-yield': "error";
75
- 'eslint/use-isnan': "error";
76
- 'eslint/valid-typeof': "error";
77
- 'eslint/no-unused-expressions': "warn";
78
- 'typescript/ban-ts-comment': "error";
79
- 'typescript/no-duplicate-enum-values': "off";
80
- 'typescript/no-empty-object-type': "error";
81
- 'typescript/no-explicit-any': "error";
82
- 'typescript/no-extra-non-null-assertion': "error";
83
- 'typescript/no-misused-new': "error";
84
- 'typescript/no-namespace': "error";
85
- 'typescript/no-non-null-asserted-optional-chain': "error";
86
- 'typescript/no-require-imports': "error";
87
- 'typescript/no-this-alias': "error";
88
- 'typescript/no-unnecessary-type-constraint': "error";
89
- 'typescript/no-unsafe-declaration-merging': "error";
90
- 'typescript/no-unsafe-function-type': "error";
91
- 'typescript/no-wrapper-object-types': "error";
92
- 'typescript/prefer-as-const': "error";
93
- 'typescript/triple-slash-reference': "error";
94
- 'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
96
- }];
97
- 'eslint/id-length': "off";
98
- 'eslint/sort-keys': "off";
99
- 'eslint/capitalized-comments': "off";
100
- 'eslint/func-style': "off";
101
- 'eslint/complexity': "off";
102
- 'eslint/max-params': "off";
103
- 'eslint/no-ternary': "off";
104
- 'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
106
- 'eslint/max-statements': "off";
107
- 'typescript/consistent-return': "off";
108
- 'unicorn/switch-case-braces': "warn";
109
- 'typescript/prefer-regexp-exec': "warn";
110
- 'eslint/init-declarations': "off";
111
- 'unicorn/no-null': "off";
112
- 'eslint/no-undefined': "off";
113
- 'eslint/no-console': "off";
114
- 'eslint/no-continue': "off";
115
- 'eslint/no-implicit-coercion': ["warn", {
116
- allow: string[];
117
- }];
118
- 'eslint/no-plusplus': "off";
119
- 'eslint/no-void': "off";
120
- 'eslint/no-nested-ternary': "off";
121
- 'eslint/no-empty-function': ["warn", {
122
- allow: string[];
123
- }];
124
- 'unicorn/no-instanceof-builtins': "off";
125
- 'unicorn/prefer-spread': "off";
126
- 'eslint/new-cap': "off";
127
- 'unicorn/no-await-expression-member': "off";
128
- 'eslint/no-duplicate-imports': ["warn", {
129
- allowSeparateTypeImports: boolean;
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";
139
- 'unicorn/no-new-array': "off";
140
- 'eslint/no-array-constructor': "warn";
141
- 'typescript/explicit-function-return-type': "off";
142
- 'typescript/explicit-module-boundary-types': "off";
143
- 'unicorn/no-anonymous-default-export': "off";
144
- 'eslint/sort-imports': "off";
145
- 'import/no-relative-parent-imports': "off";
146
- 'eslint/no-magic-numbers': "off";
147
- 'unicorn/prefer-modern-math-apis': "off";
148
- 'eslint/no-use-before-define': "off";
149
- 'eslint/constructor-super': "off";
150
- 'eslint/getter-return': "off";
151
- 'eslint/no-dupe-class-members': "off";
152
- 'eslint/no-dupe-keys': "off";
153
- 'eslint/no-new-native-nonconstructor': "off";
154
- 'eslint/no-setter-return': "off";
155
- 'eslint/no-this-before-super': "off";
156
- 'eslint/no-undef': "off";
157
- 'eslint/no-unreachable': "off";
158
- 'eslint/no-with': "off";
159
- 'unicorn/no-nested-ternary': "off";
160
- 'oxc/no-optional-chaining': "off";
161
- 'oxc/no-rest-spread-properties': "off";
162
- 'oxc/no-async-await': "off";
163
- };
164
- }[];
165
- plugins: ("unicorn" | "typescript" | "import")[];
166
- env: {
167
- node: true;
168
- };
169
- rules: {
170
- 'eslint/no-underscore-dangle': ["warn", {
171
- allow: string[];
172
- }];
173
- 'no-nodejs-modules': "off";
174
- };
175
- };
3
+ declare function nodeConfig(options?: Partial<NodeOptions>): OxlintConfig;
176
4
  export { type OxlintConfig, defineConfig, nodeConfig };
177
- declare const _default: {
178
- extends: {
179
- plugins: ("unicorn" | "typescript" | "import")[];
180
- jsPlugins: never[];
181
- categories: {
182
- correctness: "error";
183
- suspicious: "warn";
184
- pedantic: "off";
185
- perf: "warn";
186
- style: "warn";
187
- restriction: "warn";
188
- nursery: "off";
189
- };
190
- env: {
191
- builtin: true;
192
- };
193
- options: {
194
- typeAware: true;
195
- };
196
- rules: {
197
- 'eslint/no-var': "warn";
198
- 'eslint/prefer-const': "error";
199
- 'eslint/prefer-rest-params': "error";
200
- 'eslint/prefer-spread': "error";
201
- 'eslint/no-async-promise-executor': "error";
202
- 'eslint/no-case-declarations': "error";
203
- 'eslint/no-class-assign': "error";
204
- 'eslint/no-compare-neg-zero': "error";
205
- 'eslint/no-cond-assign': "error";
206
- 'eslint/no-const-assign': "error";
207
- 'eslint/no-constant-binary-expression': "error";
208
- 'eslint/no-constant-condition': "error";
209
- 'eslint/no-control-regex': "error";
210
- 'eslint/no-debugger': "error";
211
- 'eslint/no-delete-var': "error";
212
- 'eslint/no-dupe-else-if': "error";
213
- 'eslint/no-duplicate-case': "error";
214
- 'eslint/no-empty': "error";
215
- 'eslint/no-empty-character-class': "error";
216
- 'eslint/no-empty-pattern': "error";
217
- 'eslint/no-empty-static-block': "error";
218
- 'eslint/no-ex-assign': "error";
219
- 'eslint/no-extra-boolean-cast': "error";
220
- 'eslint/no-fallthrough': ["error", {
221
- allowEmptyCase: boolean;
222
- }];
223
- 'eslint/no-func-assign': "error";
224
- 'eslint/no-global-assign': "error";
225
- 'eslint/no-import-assign': "error";
226
- 'eslint/no-invalid-regexp': "error";
227
- 'eslint/no-irregular-whitespace': "error";
228
- 'eslint/no-loss-of-precision': "error";
229
- 'eslint/no-misleading-character-class': "error";
230
- 'eslint/no-nonoctal-decimal-escape': "error";
231
- 'eslint/no-obj-calls': "error";
232
- 'eslint/no-prototype-builtins': "error";
233
- 'eslint/no-redeclare': "error";
234
- 'eslint/no-regex-spaces': "error";
235
- 'eslint/no-self-assign': "error";
236
- 'eslint/no-shadow-restricted-names': "error";
237
- 'eslint/no-sparse-arrays': "error";
238
- 'eslint/no-unexpected-multiline': "error";
239
- 'eslint/no-unsafe-finally': "error";
240
- 'eslint/no-unsafe-negation': "error";
241
- 'eslint/no-unsafe-optional-chaining': "error";
242
- 'eslint/no-unused-labels': "error";
243
- 'eslint/no-unused-private-class-members': "error";
244
- 'eslint/no-unused-vars': "warn";
245
- 'eslint/no-useless-backreference': "error";
246
- 'eslint/no-useless-catch': "error";
247
- 'eslint/no-useless-escape': "error";
248
- 'eslint/require-yield': "error";
249
- 'eslint/use-isnan': "error";
250
- 'eslint/valid-typeof': "error";
251
- 'eslint/no-unused-expressions': "warn";
252
- 'typescript/ban-ts-comment': "error";
253
- 'typescript/no-duplicate-enum-values': "off";
254
- 'typescript/no-empty-object-type': "error";
255
- 'typescript/no-explicit-any': "error";
256
- 'typescript/no-extra-non-null-assertion': "error";
257
- 'typescript/no-misused-new': "error";
258
- 'typescript/no-namespace': "error";
259
- 'typescript/no-non-null-asserted-optional-chain': "error";
260
- 'typescript/no-require-imports': "error";
261
- 'typescript/no-this-alias': "error";
262
- 'typescript/no-unnecessary-type-constraint': "error";
263
- 'typescript/no-unsafe-declaration-merging': "error";
264
- 'typescript/no-unsafe-function-type': "error";
265
- 'typescript/no-wrapper-object-types': "error";
266
- 'typescript/prefer-as-const': "error";
267
- 'typescript/triple-slash-reference': "error";
268
- 'typescript/explicit-member-accessibility': ["warn", {
269
- accessibility: string;
270
- }];
271
- 'eslint/id-length': "off";
272
- 'eslint/sort-keys': "off";
273
- 'eslint/capitalized-comments': "off";
274
- 'eslint/func-style': "off";
275
- 'eslint/complexity': "off";
276
- 'eslint/max-params': "off";
277
- 'eslint/no-ternary': "off";
278
- 'eslint/curly': "warn";
279
- 'typescript/consistent-type-definitions': ["warn", string];
280
- 'eslint/max-statements': "off";
281
- 'typescript/consistent-return': "off";
282
- 'unicorn/switch-case-braces': "warn";
283
- 'typescript/prefer-regexp-exec': "warn";
284
- 'eslint/init-declarations': "off";
285
- 'unicorn/no-null': "off";
286
- 'eslint/no-undefined': "off";
287
- 'eslint/no-console': "off";
288
- 'eslint/no-continue': "off";
289
- 'eslint/no-implicit-coercion': ["warn", {
290
- allow: string[];
291
- }];
292
- 'eslint/no-plusplus': "off";
293
- 'eslint/no-void': "off";
294
- 'eslint/no-nested-ternary': "off";
295
- 'eslint/no-empty-function': ["warn", {
296
- allow: string[];
297
- }];
298
- 'unicorn/no-instanceof-builtins': "off";
299
- 'unicorn/prefer-spread': "off";
300
- 'eslint/new-cap': "off";
301
- 'unicorn/no-await-expression-member': "off";
302
- 'eslint/no-duplicate-imports': ["warn", {
303
- allowSeparateTypeImports: boolean;
304
- }];
305
- 'import/no-named-export': "off";
306
- 'import/no-default-export': "off";
307
- 'import/prefer-default-export': "off";
308
- 'import/no-namespace': "off";
309
- 'import/exports-last': "off";
310
- 'import/no-unassigned-import': "off";
311
- 'import/group-exports': "off";
312
- 'import/consistent-type-specifier-style': "off";
313
- 'unicorn/no-new-array': "off";
314
- 'eslint/no-array-constructor': "warn";
315
- 'typescript/explicit-function-return-type': "off";
316
- 'typescript/explicit-module-boundary-types': "off";
317
- 'unicorn/no-anonymous-default-export': "off";
318
- 'eslint/sort-imports': "off";
319
- 'import/no-relative-parent-imports': "off";
320
- 'eslint/no-magic-numbers': "off";
321
- 'unicorn/prefer-modern-math-apis': "off";
322
- 'eslint/no-use-before-define': "off";
323
- 'eslint/constructor-super': "off";
324
- 'eslint/getter-return': "off";
325
- 'eslint/no-dupe-class-members': "off";
326
- 'eslint/no-dupe-keys': "off";
327
- 'eslint/no-new-native-nonconstructor': "off";
328
- 'eslint/no-setter-return': "off";
329
- 'eslint/no-this-before-super': "off";
330
- 'eslint/no-undef': "off";
331
- 'eslint/no-unreachable': "off";
332
- 'eslint/no-with': "off";
333
- 'unicorn/no-nested-ternary': "off";
334
- 'oxc/no-optional-chaining': "off";
335
- 'oxc/no-rest-spread-properties': "off";
336
- 'oxc/no-async-await': "off";
337
- };
338
- }[];
339
- plugins: ("unicorn" | "typescript" | "import")[];
340
- env: {
341
- node: true;
342
- };
343
- rules: {
344
- 'eslint/no-underscore-dangle': ["warn", {
345
- allow: string[];
346
- }];
347
- 'no-nodejs-modules': "off";
348
- };
349
- };
5
+ declare const _default: OxlintConfig;
350
6
  export default _default;
351
7
  //# sourceMappingURL=node.d.ts.map