@4mbl/lint 0.0.0-alpha.a9085f2 → 0.0.0-alpha.a9f7845

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,96 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 1.0.0-beta.26
4
+
5
+ ### Minor Changes
6
+
7
+ - 10abc93: Upgrade dependencies
8
+
9
+ ## 1.0.0-beta.25
10
+
11
+ ### Minor Changes
12
+
13
+ - b812b8d: Upgrade dependencies
14
+
15
+ ## 1.0.0-beta.24
16
+
17
+ ### Minor Changes
18
+
19
+ - c713974: [base] Enable type-check within oxlint
20
+ - 87a9f36: Upgrade dependencies
21
+
22
+ ## 1.0.0-beta.23
23
+
24
+ ### Minor Changes
25
+
26
+ - 09239e5: Upgrade dependencies
27
+
28
+ ## 1.0.0-beta.22
29
+
30
+ ### Minor Changes
31
+
32
+ - 75f5fe2: Upgrade dependencies
33
+
34
+ ## 1.0.0-beta.21
35
+
36
+ ### Minor Changes
37
+
38
+ - ae2bb06: [base] Disable unicorn/max-nested-calls rule
39
+
40
+ ## 1.0.0-beta.20
41
+
42
+ ### Minor Changes
43
+
44
+ - 0a0c233: Upgrade dependencies
45
+
46
+ ## 1.0.0-beta.19
47
+
48
+ ### Minor Changes
49
+
50
+ - 4d35fb5: [react] Disable react/jsx-no-literals rule
51
+
52
+ ## 1.0.0-beta.18
53
+
54
+ ### Minor Changes
55
+
56
+ - a50c3f4: Upgrade dependencies
57
+
58
+ ## 1.0.0-beta.17
59
+
60
+ ### Minor Changes
61
+
62
+ - f0f62f4: Upgrade dependencies
63
+
64
+ ## 1.0.0-beta.16
65
+
66
+ ### Minor Changes
67
+
68
+ - b303b6f: Upgrade dependencies
69
+
70
+ ## 1.0.0-beta.15
71
+
72
+ ### Minor Changes
73
+
74
+ - aa95edc: Upgrade dependencies
75
+
76
+ ## 1.0.0-beta.14
77
+
78
+ ### Minor Changes
79
+
80
+ - e34f9fe: Enable import plugin in base
81
+ - 5586655: Disable some import plugin rules in base
82
+ - 9b2b412: Disable `no-nodejs-modules` in node
83
+
84
+ ## 1.0.0-beta.13
85
+
86
+ ### Minor Changes
87
+
88
+ - dd66007: Pin dependencies to ensure future compatibility
89
+ - 0feb87d: Remove unused dependencies and inline trivial imports
90
+ - 1d98a33: Disable `react/forbid-component-props` and `react/forbid-dom-props` to ensure Tailwind compatibility
91
+ - a9085f2: Extend inherited plugins in child presets
92
+ - 014d999: Allow `eslint/no-underscore-dangle` for `__dirname` and `__filename` in node
93
+
3
94
  ## 1.0.0-beta.12
4
95
 
5
96
  ### 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")[];
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";
@@ -133,12 +134,16 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
133
134
  'import/no-namespace': "off";
134
135
  'import/exports-last': "off";
135
136
  'import/no-unassigned-import': "off";
137
+ 'import/group-exports': "off";
138
+ 'import/consistent-type-specifier-style': "off";
136
139
  'unicorn/no-new-array': "off";
137
140
  'eslint/no-array-constructor': "warn";
138
141
  'typescript/explicit-function-return-type': "off";
139
142
  'typescript/explicit-module-boundary-types': "off";
140
143
  'unicorn/no-anonymous-default-export': "off";
141
144
  'eslint/sort-imports': "off";
145
+ 'import/no-relative-parent-imports': "off";
146
+ 'unicorn/max-nested-calls': "off";
142
147
  'eslint/no-magic-numbers': "off";
143
148
  'unicorn/prefer-modern-math-apis': "off";
144
149
  'eslint/no-use-before-define': "off";
@@ -160,7 +165,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
160
165
  };
161
166
  export { type OxlintConfig, defineConfig, baseConfig };
162
167
  declare const _default: {
163
- plugins: ("unicorn" | "typescript")[];
168
+ plugins: ("import" | "typescript" | "unicorn")[];
164
169
  jsPlugins: never[];
165
170
  categories: {
166
171
  correctness: "error";
@@ -176,6 +181,7 @@ declare const _default: {
176
181
  };
177
182
  options: {
178
183
  typeAware: true;
184
+ typeCheck: true;
179
185
  };
180
186
  rules: {
181
187
  'eslint/no-var': "warn";
@@ -250,7 +256,7 @@ declare const _default: {
250
256
  'typescript/prefer-as-const': "error";
251
257
  'typescript/triple-slash-reference': "error";
252
258
  'typescript/explicit-member-accessibility': ["warn", {
253
- accessibility: string;
259
+ accessibility: "no-public";
254
260
  }];
255
261
  'eslint/id-length': "off";
256
262
  'eslint/sort-keys': "off";
@@ -260,7 +266,7 @@ declare const _default: {
260
266
  'eslint/max-params': "off";
261
267
  'eslint/no-ternary': "off";
262
268
  'eslint/curly': "warn";
263
- 'typescript/consistent-type-definitions': ["warn", string];
269
+ 'typescript/consistent-type-definitions': ["warn", "type"];
264
270
  'eslint/max-statements': "off";
265
271
  'typescript/consistent-return': "off";
266
272
  'unicorn/switch-case-braces': "warn";
@@ -292,12 +298,16 @@ declare const _default: {
292
298
  'import/no-namespace': "off";
293
299
  'import/exports-last': "off";
294
300
  'import/no-unassigned-import': "off";
301
+ 'import/group-exports': "off";
302
+ 'import/consistent-type-specifier-style': "off";
295
303
  'unicorn/no-new-array': "off";
296
304
  'eslint/no-array-constructor': "warn";
297
305
  'typescript/explicit-function-return-type': "off";
298
306
  'typescript/explicit-module-boundary-types': "off";
299
307
  'unicorn/no-anonymous-default-export': "off";
300
308
  'eslint/sort-imports': "off";
309
+ 'import/no-relative-parent-imports': "off";
310
+ 'unicorn/max-nested-calls': "off";
301
311
  'eslint/no-magic-numbers': "off";
302
312
  'unicorn/prefer-modern-math-apis': "off";
303
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsLlD;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
@@ -3,7 +3,7 @@ import { defineConfig } from 'oxlint';
3
3
  function baseConfig(_options) {
4
4
  // const opts = { ...DEFAULT_OPTIONS, ...options };
5
5
  return defineConfig({
6
- plugins: ['typescript', 'unicorn'],
6
+ plugins: ['import', 'typescript', 'unicorn'],
7
7
  jsPlugins: [],
8
8
  categories: {
9
9
  correctness: 'error',
@@ -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
@@ -137,6 +138,8 @@ function baseConfig(_options) {
137
138
  'import/no-namespace': 'off', // star imports are still pretty necessary
138
139
  'import/exports-last': 'off', // star imports are still pretty necessary
139
140
  'import/no-unassigned-import': 'off', // required for css imports
141
+ 'import/group-exports': 'off', // co-locating export statement with the function it exports is more readable
142
+ 'import/consistent-type-specifier-style': 'off', // single import per file is more readable
140
143
  // Array.from() is slower than new Array()
141
144
  // https://jsperf.app/tatuse
142
145
  'unicorn/no-new-array': 'off',
@@ -147,6 +150,8 @@ function baseConfig(_options) {
147
150
  // may revisit
148
151
  'unicorn/no-anonymous-default-export': 'off',
149
152
  'eslint/sort-imports': 'off', // consider when oxfmt is setup
153
+ 'import/no-relative-parent-imports': 'off',
154
+ 'unicorn/max-nested-calls': 'off',
150
155
  // currently produces too many false positives
151
156
  'eslint/no-magic-numbers': 'off',
152
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,YAAY,EAAE,SAAS,CAAC;QAClC,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,OAAO;YAChC,wBAAwB,EAAE,OAAO;YACjC,sCAAsC,EAAE,OAAO;YAC/C,8BAA8B,EAAE,OAAO;YACvC,yBAAyB,EAAE,OAAO;YAClC,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xB,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"}
package/dist/next.d.ts CHANGED
@@ -11,8 +11,546 @@ type NextOptions = ReactOptions & {
11
11
  */
12
12
  uiPath: string | null;
13
13
  };
14
- declare function nextConfig(options?: Partial<NextOptions>): OxlintConfig;
14
+ declare function nextConfig(options?: Partial<NextOptions>): {
15
+ extends: {
16
+ extends: {
17
+ plugins: ("import" | "typescript" | "unicorn")[];
18
+ jsPlugins: never[];
19
+ categories: {
20
+ correctness: "error";
21
+ suspicious: "warn";
22
+ pedantic: "off";
23
+ perf: "warn";
24
+ style: "warn";
25
+ restriction: "warn";
26
+ nursery: "off";
27
+ };
28
+ env: {
29
+ builtin: true;
30
+ };
31
+ options: {
32
+ typeAware: true;
33
+ typeCheck: true;
34
+ };
35
+ rules: {
36
+ 'eslint/no-var': "warn";
37
+ 'eslint/prefer-const': "error";
38
+ 'eslint/prefer-rest-params': "error";
39
+ 'eslint/prefer-spread': "error";
40
+ 'eslint/no-async-promise-executor': "error";
41
+ 'eslint/no-case-declarations': "error";
42
+ 'eslint/no-class-assign': "error";
43
+ 'eslint/no-compare-neg-zero': "error";
44
+ 'eslint/no-cond-assign': "error";
45
+ 'eslint/no-const-assign': "error";
46
+ 'eslint/no-constant-binary-expression': "error";
47
+ 'eslint/no-constant-condition': "error";
48
+ 'eslint/no-control-regex': "error";
49
+ 'eslint/no-debugger': "error";
50
+ 'eslint/no-delete-var': "error";
51
+ 'eslint/no-dupe-else-if': "error";
52
+ 'eslint/no-duplicate-case': "error";
53
+ 'eslint/no-empty': "error";
54
+ 'eslint/no-empty-character-class': "error";
55
+ 'eslint/no-empty-pattern': "error";
56
+ 'eslint/no-empty-static-block': "error";
57
+ 'eslint/no-ex-assign': "error";
58
+ 'eslint/no-extra-boolean-cast': "error";
59
+ 'eslint/no-fallthrough': ["error", {
60
+ allowEmptyCase: boolean;
61
+ }];
62
+ 'eslint/no-func-assign': "error";
63
+ 'eslint/no-global-assign': "error";
64
+ 'eslint/no-import-assign': "error";
65
+ 'eslint/no-invalid-regexp': "error";
66
+ 'eslint/no-irregular-whitespace': "error";
67
+ 'eslint/no-loss-of-precision': "error";
68
+ 'eslint/no-misleading-character-class': "error";
69
+ 'eslint/no-nonoctal-decimal-escape': "error";
70
+ 'eslint/no-obj-calls': "error";
71
+ 'eslint/no-prototype-builtins': "error";
72
+ 'eslint/no-redeclare': "error";
73
+ 'eslint/no-regex-spaces': "error";
74
+ 'eslint/no-self-assign': "error";
75
+ 'eslint/no-shadow-restricted-names': "error";
76
+ 'eslint/no-sparse-arrays': "error";
77
+ 'eslint/no-unexpected-multiline': "error";
78
+ 'eslint/no-unsafe-finally': "error";
79
+ 'eslint/no-unsafe-negation': "error";
80
+ 'eslint/no-unsafe-optional-chaining': "error";
81
+ 'eslint/no-unused-labels': "error";
82
+ 'eslint/no-unused-private-class-members': "error";
83
+ 'eslint/no-unused-vars': "warn";
84
+ 'eslint/no-useless-backreference': "error";
85
+ 'eslint/no-useless-catch': "error";
86
+ 'eslint/no-useless-escape': "error";
87
+ 'eslint/require-yield': "error";
88
+ 'eslint/use-isnan': "error";
89
+ 'eslint/valid-typeof': "error";
90
+ 'eslint/no-unused-expressions': "warn";
91
+ 'typescript/ban-ts-comment': "error";
92
+ 'typescript/no-duplicate-enum-values': "off";
93
+ 'typescript/no-empty-object-type': "error";
94
+ 'typescript/no-explicit-any': "error";
95
+ 'typescript/no-extra-non-null-assertion': "error";
96
+ 'typescript/no-misused-new': "error";
97
+ 'typescript/no-namespace': "error";
98
+ 'typescript/no-non-null-asserted-optional-chain': "error";
99
+ 'typescript/no-require-imports': "error";
100
+ 'typescript/no-this-alias': "error";
101
+ 'typescript/no-unnecessary-type-constraint': "error";
102
+ 'typescript/no-unsafe-declaration-merging': "error";
103
+ 'typescript/no-unsafe-function-type': "error";
104
+ 'typescript/no-wrapper-object-types': "error";
105
+ 'typescript/prefer-as-const': "error";
106
+ 'typescript/triple-slash-reference': "error";
107
+ 'typescript/explicit-member-accessibility': ["warn", {
108
+ accessibility: "no-public";
109
+ }];
110
+ 'eslint/id-length': "off";
111
+ 'eslint/sort-keys': "off";
112
+ 'eslint/capitalized-comments': "off";
113
+ 'eslint/func-style': "off";
114
+ 'eslint/complexity': "off";
115
+ 'eslint/max-params': "off";
116
+ 'eslint/no-ternary': "off";
117
+ 'eslint/curly': "warn";
118
+ 'typescript/consistent-type-definitions': ["warn", "type"];
119
+ 'eslint/max-statements': "off";
120
+ 'typescript/consistent-return': "off";
121
+ 'unicorn/switch-case-braces': "warn";
122
+ 'typescript/prefer-regexp-exec': "warn";
123
+ 'eslint/init-declarations': "off";
124
+ 'unicorn/no-null': "off";
125
+ 'eslint/no-undefined': "off";
126
+ 'eslint/no-console': "off";
127
+ 'eslint/no-continue': "off";
128
+ 'eslint/no-implicit-coercion': ["warn", {
129
+ allow: string[];
130
+ }];
131
+ 'eslint/no-plusplus': "off";
132
+ 'eslint/no-void': "off";
133
+ 'eslint/no-nested-ternary': "off";
134
+ 'eslint/no-empty-function': ["warn", {
135
+ allow: string[];
136
+ }];
137
+ 'unicorn/no-instanceof-builtins': "off";
138
+ 'unicorn/prefer-spread': "off";
139
+ 'eslint/new-cap': "off";
140
+ 'unicorn/no-await-expression-member': "off";
141
+ 'eslint/no-duplicate-imports': ["warn", {
142
+ allowSeparateTypeImports: boolean;
143
+ }];
144
+ 'import/no-named-export': "off";
145
+ 'import/no-default-export': "off";
146
+ 'import/prefer-default-export': "off";
147
+ 'import/no-namespace': "off";
148
+ 'import/exports-last': "off";
149
+ 'import/no-unassigned-import': "off";
150
+ 'import/group-exports': "off";
151
+ 'import/consistent-type-specifier-style': "off";
152
+ 'unicorn/no-new-array': "off";
153
+ 'eslint/no-array-constructor': "warn";
154
+ 'typescript/explicit-function-return-type': "off";
155
+ 'typescript/explicit-module-boundary-types': "off";
156
+ 'unicorn/no-anonymous-default-export': "off";
157
+ 'eslint/sort-imports': "off";
158
+ 'import/no-relative-parent-imports': "off";
159
+ 'unicorn/max-nested-calls': "off";
160
+ 'eslint/no-magic-numbers': "off";
161
+ 'unicorn/prefer-modern-math-apis': "off";
162
+ 'eslint/no-use-before-define': "off";
163
+ 'eslint/constructor-super': "off";
164
+ 'eslint/getter-return': "off";
165
+ 'eslint/no-dupe-class-members': "off";
166
+ 'eslint/no-dupe-keys': "off";
167
+ 'eslint/no-new-native-nonconstructor': "off";
168
+ 'eslint/no-setter-return': "off";
169
+ 'eslint/no-this-before-super': "off";
170
+ 'eslint/no-undef': "off";
171
+ 'eslint/no-unreachable': "off";
172
+ 'eslint/no-with': "off";
173
+ 'unicorn/no-nested-ternary': "off";
174
+ 'oxc/no-optional-chaining': "off";
175
+ 'oxc/no-rest-spread-properties': "off";
176
+ 'oxc/no-async-await': "off";
177
+ };
178
+ }[];
179
+ plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
180
+ jsPlugins: {
181
+ name: string;
182
+ specifier: string;
183
+ }[];
184
+ rules: {
185
+ 'react/rules-of-hooks': "error";
186
+ 'react/exhaustive-deps': "warn";
187
+ 'react-hooks-js/set-state-in-effect': "warn";
188
+ 'react/only-export-components': "error";
189
+ 'react-compiler-js/react-compiler': "error";
190
+ 'react/jsx-filename-extension': "off";
191
+ 'react/jsx-max-depth': "off";
192
+ 'react/no-multi-comp': "off";
193
+ 'react/jsx-props-no-spreading': "off";
194
+ 'react/jsx-no-literals': "off";
195
+ 'react/forbid-component-props': "off";
196
+ 'react/forbid-dom-props': "off";
197
+ };
198
+ overrides: {
199
+ files: string[];
200
+ rules: {
201
+ 'react/display-name': "error";
202
+ 'react/jsx-key': "error";
203
+ 'react/jsx-no-comment-textnodes': "error";
204
+ 'react/jsx-no-duplicate-props': "error";
205
+ 'react/jsx-no-target-blank': "off";
206
+ 'react/jsx-no-undef': "error";
207
+ 'react/no-children-prop': "error";
208
+ 'react/no-danger-with-children': "error";
209
+ 'react/no-direct-mutation-state': "error";
210
+ 'react/no-find-dom-node': "error";
211
+ 'react/no-is-mounted': "error";
212
+ 'react/no-render-return-value': "error";
213
+ 'react/no-string-refs': "error";
214
+ 'react/no-unescaped-entities': "error";
215
+ 'react/no-unknown-property': "off";
216
+ 'react/no-unsafe': "off";
217
+ 'react/react-in-jsx-scope': "off";
218
+ 'react/require-render-return': "error";
219
+ 'import/no-anonymous-default-export': "warn";
220
+ 'jsx-a11y/alt-text': ["warn", {
221
+ elements: "img"[];
222
+ img: string[];
223
+ }];
224
+ 'jsx-a11y/aria-props': "warn";
225
+ 'jsx-a11y/aria-proptypes': "warn";
226
+ 'jsx-a11y/aria-unsupported-elements': "warn";
227
+ 'jsx-a11y/role-has-required-aria-props': "warn";
228
+ 'jsx-a11y/role-supports-aria-props': "warn";
229
+ };
230
+ globals: {
231
+ AudioWorkletGlobalScope: "readonly";
232
+ AudioWorkletProcessor: "readonly";
233
+ currentFrame: "readonly";
234
+ currentTime: "readonly";
235
+ registerProcessor: "readonly";
236
+ sampleRate: "readonly";
237
+ WorkletGlobalScope: "readonly";
238
+ };
239
+ env: {
240
+ browser: true;
241
+ node: true;
242
+ };
243
+ }[];
244
+ }[];
245
+ plugins: ("import" | "jsx-a11y" | "nextjs" | "react" | "typescript" | "unicorn")[];
246
+ rules: {
247
+ 'nextjs/google-font-display': "warn";
248
+ 'nextjs/google-font-preconnect': "warn";
249
+ 'nextjs/next-script-for-ga': "warn";
250
+ 'nextjs/no-async-client-component': "warn";
251
+ 'nextjs/no-before-interactive-script-outside-document': "warn";
252
+ 'nextjs/no-css-tags': "warn";
253
+ 'nextjs/no-head-element': "warn";
254
+ 'nextjs/no-html-link-for-pages': "error";
255
+ 'nextjs/no-page-custom-font': "warn";
256
+ 'nextjs/no-styled-jsx-in-document': "warn";
257
+ 'nextjs/no-sync-scripts': "error";
258
+ 'nextjs/no-title-in-document-head': "warn";
259
+ 'nextjs/no-typos': "warn";
260
+ 'nextjs/no-unwanted-polyfillio': "warn";
261
+ 'nextjs/inline-script-id': "error";
262
+ 'nextjs/no-assign-module-variable': "error";
263
+ 'nextjs/no-document-import-in-page': "error";
264
+ 'nextjs/no-duplicate-head': "error";
265
+ 'nextjs/no-head-import-in-document': "error";
266
+ 'nextjs/no-script-component-in-head': "error";
267
+ 'react/only-export-components': ["warn", {
268
+ allowExportNames: string[];
269
+ }];
270
+ };
271
+ ignorePatterns: string[];
272
+ overrides: ({
273
+ files: never[];
274
+ rules: {
275
+ 'react/only-export-components'?: never;
276
+ };
277
+ } | {
278
+ files: string[];
279
+ rules: {
280
+ 'react/only-export-components': "off";
281
+ };
282
+ })[];
283
+ };
15
284
  export { type OxlintConfig, defineConfig, nextConfig };
16
- declare const _default: OxlintConfig;
285
+ declare const _default: {
286
+ extends: {
287
+ extends: {
288
+ plugins: ("import" | "typescript" | "unicorn")[];
289
+ jsPlugins: never[];
290
+ categories: {
291
+ correctness: "error";
292
+ suspicious: "warn";
293
+ pedantic: "off";
294
+ perf: "warn";
295
+ style: "warn";
296
+ restriction: "warn";
297
+ nursery: "off";
298
+ };
299
+ env: {
300
+ builtin: true;
301
+ };
302
+ options: {
303
+ typeAware: true;
304
+ typeCheck: true;
305
+ };
306
+ rules: {
307
+ 'eslint/no-var': "warn";
308
+ 'eslint/prefer-const': "error";
309
+ 'eslint/prefer-rest-params': "error";
310
+ 'eslint/prefer-spread': "error";
311
+ 'eslint/no-async-promise-executor': "error";
312
+ 'eslint/no-case-declarations': "error";
313
+ 'eslint/no-class-assign': "error";
314
+ 'eslint/no-compare-neg-zero': "error";
315
+ 'eslint/no-cond-assign': "error";
316
+ 'eslint/no-const-assign': "error";
317
+ 'eslint/no-constant-binary-expression': "error";
318
+ 'eslint/no-constant-condition': "error";
319
+ 'eslint/no-control-regex': "error";
320
+ 'eslint/no-debugger': "error";
321
+ 'eslint/no-delete-var': "error";
322
+ 'eslint/no-dupe-else-if': "error";
323
+ 'eslint/no-duplicate-case': "error";
324
+ 'eslint/no-empty': "error";
325
+ 'eslint/no-empty-character-class': "error";
326
+ 'eslint/no-empty-pattern': "error";
327
+ 'eslint/no-empty-static-block': "error";
328
+ 'eslint/no-ex-assign': "error";
329
+ 'eslint/no-extra-boolean-cast': "error";
330
+ 'eslint/no-fallthrough': ["error", {
331
+ allowEmptyCase: boolean;
332
+ }];
333
+ 'eslint/no-func-assign': "error";
334
+ 'eslint/no-global-assign': "error";
335
+ 'eslint/no-import-assign': "error";
336
+ 'eslint/no-invalid-regexp': "error";
337
+ 'eslint/no-irregular-whitespace': "error";
338
+ 'eslint/no-loss-of-precision': "error";
339
+ 'eslint/no-misleading-character-class': "error";
340
+ 'eslint/no-nonoctal-decimal-escape': "error";
341
+ 'eslint/no-obj-calls': "error";
342
+ 'eslint/no-prototype-builtins': "error";
343
+ 'eslint/no-redeclare': "error";
344
+ 'eslint/no-regex-spaces': "error";
345
+ 'eslint/no-self-assign': "error";
346
+ 'eslint/no-shadow-restricted-names': "error";
347
+ 'eslint/no-sparse-arrays': "error";
348
+ 'eslint/no-unexpected-multiline': "error";
349
+ 'eslint/no-unsafe-finally': "error";
350
+ 'eslint/no-unsafe-negation': "error";
351
+ 'eslint/no-unsafe-optional-chaining': "error";
352
+ 'eslint/no-unused-labels': "error";
353
+ 'eslint/no-unused-private-class-members': "error";
354
+ 'eslint/no-unused-vars': "warn";
355
+ 'eslint/no-useless-backreference': "error";
356
+ 'eslint/no-useless-catch': "error";
357
+ 'eslint/no-useless-escape': "error";
358
+ 'eslint/require-yield': "error";
359
+ 'eslint/use-isnan': "error";
360
+ 'eslint/valid-typeof': "error";
361
+ 'eslint/no-unused-expressions': "warn";
362
+ 'typescript/ban-ts-comment': "error";
363
+ 'typescript/no-duplicate-enum-values': "off";
364
+ 'typescript/no-empty-object-type': "error";
365
+ 'typescript/no-explicit-any': "error";
366
+ 'typescript/no-extra-non-null-assertion': "error";
367
+ 'typescript/no-misused-new': "error";
368
+ 'typescript/no-namespace': "error";
369
+ 'typescript/no-non-null-asserted-optional-chain': "error";
370
+ 'typescript/no-require-imports': "error";
371
+ 'typescript/no-this-alias': "error";
372
+ 'typescript/no-unnecessary-type-constraint': "error";
373
+ 'typescript/no-unsafe-declaration-merging': "error";
374
+ 'typescript/no-unsafe-function-type': "error";
375
+ 'typescript/no-wrapper-object-types': "error";
376
+ 'typescript/prefer-as-const': "error";
377
+ 'typescript/triple-slash-reference': "error";
378
+ 'typescript/explicit-member-accessibility': ["warn", {
379
+ accessibility: "no-public";
380
+ }];
381
+ 'eslint/id-length': "off";
382
+ 'eslint/sort-keys': "off";
383
+ 'eslint/capitalized-comments': "off";
384
+ 'eslint/func-style': "off";
385
+ 'eslint/complexity': "off";
386
+ 'eslint/max-params': "off";
387
+ 'eslint/no-ternary': "off";
388
+ 'eslint/curly': "warn";
389
+ 'typescript/consistent-type-definitions': ["warn", "type"];
390
+ 'eslint/max-statements': "off";
391
+ 'typescript/consistent-return': "off";
392
+ 'unicorn/switch-case-braces': "warn";
393
+ 'typescript/prefer-regexp-exec': "warn";
394
+ 'eslint/init-declarations': "off";
395
+ 'unicorn/no-null': "off";
396
+ 'eslint/no-undefined': "off";
397
+ 'eslint/no-console': "off";
398
+ 'eslint/no-continue': "off";
399
+ 'eslint/no-implicit-coercion': ["warn", {
400
+ allow: string[];
401
+ }];
402
+ 'eslint/no-plusplus': "off";
403
+ 'eslint/no-void': "off";
404
+ 'eslint/no-nested-ternary': "off";
405
+ 'eslint/no-empty-function': ["warn", {
406
+ allow: string[];
407
+ }];
408
+ 'unicorn/no-instanceof-builtins': "off";
409
+ 'unicorn/prefer-spread': "off";
410
+ 'eslint/new-cap': "off";
411
+ 'unicorn/no-await-expression-member': "off";
412
+ 'eslint/no-duplicate-imports': ["warn", {
413
+ allowSeparateTypeImports: boolean;
414
+ }];
415
+ 'import/no-named-export': "off";
416
+ 'import/no-default-export': "off";
417
+ 'import/prefer-default-export': "off";
418
+ 'import/no-namespace': "off";
419
+ 'import/exports-last': "off";
420
+ 'import/no-unassigned-import': "off";
421
+ 'import/group-exports': "off";
422
+ 'import/consistent-type-specifier-style': "off";
423
+ 'unicorn/no-new-array': "off";
424
+ 'eslint/no-array-constructor': "warn";
425
+ 'typescript/explicit-function-return-type': "off";
426
+ 'typescript/explicit-module-boundary-types': "off";
427
+ 'unicorn/no-anonymous-default-export': "off";
428
+ 'eslint/sort-imports': "off";
429
+ 'import/no-relative-parent-imports': "off";
430
+ 'unicorn/max-nested-calls': "off";
431
+ 'eslint/no-magic-numbers': "off";
432
+ 'unicorn/prefer-modern-math-apis': "off";
433
+ 'eslint/no-use-before-define': "off";
434
+ 'eslint/constructor-super': "off";
435
+ 'eslint/getter-return': "off";
436
+ 'eslint/no-dupe-class-members': "off";
437
+ 'eslint/no-dupe-keys': "off";
438
+ 'eslint/no-new-native-nonconstructor': "off";
439
+ 'eslint/no-setter-return': "off";
440
+ 'eslint/no-this-before-super': "off";
441
+ 'eslint/no-undef': "off";
442
+ 'eslint/no-unreachable': "off";
443
+ 'eslint/no-with': "off";
444
+ 'unicorn/no-nested-ternary': "off";
445
+ 'oxc/no-optional-chaining': "off";
446
+ 'oxc/no-rest-spread-properties': "off";
447
+ 'oxc/no-async-await': "off";
448
+ };
449
+ }[];
450
+ plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
451
+ jsPlugins: {
452
+ name: string;
453
+ specifier: string;
454
+ }[];
455
+ rules: {
456
+ 'react/rules-of-hooks': "error";
457
+ 'react/exhaustive-deps': "warn";
458
+ 'react-hooks-js/set-state-in-effect': "warn";
459
+ 'react/only-export-components': "error";
460
+ 'react-compiler-js/react-compiler': "error";
461
+ 'react/jsx-filename-extension': "off";
462
+ 'react/jsx-max-depth': "off";
463
+ 'react/no-multi-comp': "off";
464
+ 'react/jsx-props-no-spreading': "off";
465
+ 'react/jsx-no-literals': "off";
466
+ 'react/forbid-component-props': "off";
467
+ 'react/forbid-dom-props': "off";
468
+ };
469
+ overrides: {
470
+ files: string[];
471
+ rules: {
472
+ 'react/display-name': "error";
473
+ 'react/jsx-key': "error";
474
+ 'react/jsx-no-comment-textnodes': "error";
475
+ 'react/jsx-no-duplicate-props': "error";
476
+ 'react/jsx-no-target-blank': "off";
477
+ 'react/jsx-no-undef': "error";
478
+ 'react/no-children-prop': "error";
479
+ 'react/no-danger-with-children': "error";
480
+ 'react/no-direct-mutation-state': "error";
481
+ 'react/no-find-dom-node': "error";
482
+ 'react/no-is-mounted': "error";
483
+ 'react/no-render-return-value': "error";
484
+ 'react/no-string-refs': "error";
485
+ 'react/no-unescaped-entities': "error";
486
+ 'react/no-unknown-property': "off";
487
+ 'react/no-unsafe': "off";
488
+ 'react/react-in-jsx-scope': "off";
489
+ 'react/require-render-return': "error";
490
+ 'import/no-anonymous-default-export': "warn";
491
+ 'jsx-a11y/alt-text': ["warn", {
492
+ elements: "img"[];
493
+ img: string[];
494
+ }];
495
+ 'jsx-a11y/aria-props': "warn";
496
+ 'jsx-a11y/aria-proptypes': "warn";
497
+ 'jsx-a11y/aria-unsupported-elements': "warn";
498
+ 'jsx-a11y/role-has-required-aria-props': "warn";
499
+ 'jsx-a11y/role-supports-aria-props': "warn";
500
+ };
501
+ globals: {
502
+ AudioWorkletGlobalScope: "readonly";
503
+ AudioWorkletProcessor: "readonly";
504
+ currentFrame: "readonly";
505
+ currentTime: "readonly";
506
+ registerProcessor: "readonly";
507
+ sampleRate: "readonly";
508
+ WorkletGlobalScope: "readonly";
509
+ };
510
+ env: {
511
+ browser: true;
512
+ node: true;
513
+ };
514
+ }[];
515
+ }[];
516
+ plugins: ("import" | "jsx-a11y" | "nextjs" | "react" | "typescript" | "unicorn")[];
517
+ rules: {
518
+ 'nextjs/google-font-display': "warn";
519
+ 'nextjs/google-font-preconnect': "warn";
520
+ 'nextjs/next-script-for-ga': "warn";
521
+ 'nextjs/no-async-client-component': "warn";
522
+ 'nextjs/no-before-interactive-script-outside-document': "warn";
523
+ 'nextjs/no-css-tags': "warn";
524
+ 'nextjs/no-head-element': "warn";
525
+ 'nextjs/no-html-link-for-pages': "error";
526
+ 'nextjs/no-page-custom-font': "warn";
527
+ 'nextjs/no-styled-jsx-in-document': "warn";
528
+ 'nextjs/no-sync-scripts': "error";
529
+ 'nextjs/no-title-in-document-head': "warn";
530
+ 'nextjs/no-typos': "warn";
531
+ 'nextjs/no-unwanted-polyfillio': "warn";
532
+ 'nextjs/inline-script-id': "error";
533
+ 'nextjs/no-assign-module-variable': "error";
534
+ 'nextjs/no-document-import-in-page': "error";
535
+ 'nextjs/no-duplicate-head': "error";
536
+ 'nextjs/no-head-import-in-document': "error";
537
+ 'nextjs/no-script-component-in-head': "error";
538
+ 'react/only-export-components': ["warn", {
539
+ allowExportNames: string[];
540
+ }];
541
+ };
542
+ ignorePatterns: string[];
543
+ overrides: ({
544
+ files: never[];
545
+ rules: {
546
+ 'react/only-export-components'?: never;
547
+ };
548
+ } | {
549
+ files: string[];
550
+ rules: {
551
+ 'react/only-export-components': "off";
552
+ };
553
+ })[];
554
+ };
17
555
  export default _default;
18
556
  //# sourceMappingURL=next.d.ts.map
@@ -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;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/node.d.ts CHANGED
@@ -2,7 +2,7 @@ import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  type NodeOptions = {};
3
3
  declare function nodeConfig(options?: Partial<NodeOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript")[];
5
+ plugins: ("import" | "typescript" | "unicorn")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
8
  correctness: "error";
@@ -18,6 +18,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
18
18
  };
19
19
  options: {
20
20
  typeAware: true;
21
+ typeCheck: true;
21
22
  };
22
23
  rules: {
23
24
  'eslint/no-var': "warn";
@@ -92,7 +93,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
92
93
  'typescript/prefer-as-const': "error";
93
94
  'typescript/triple-slash-reference': "error";
94
95
  'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
96
+ accessibility: "no-public";
96
97
  }];
97
98
  'eslint/id-length': "off";
98
99
  'eslint/sort-keys': "off";
@@ -102,7 +103,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
102
103
  'eslint/max-params': "off";
103
104
  'eslint/no-ternary': "off";
104
105
  'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
106
+ 'typescript/consistent-type-definitions': ["warn", "type"];
106
107
  'eslint/max-statements': "off";
107
108
  'typescript/consistent-return': "off";
108
109
  'unicorn/switch-case-braces': "warn";
@@ -134,12 +135,16 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
134
135
  'import/no-namespace': "off";
135
136
  'import/exports-last': "off";
136
137
  'import/no-unassigned-import': "off";
138
+ 'import/group-exports': "off";
139
+ 'import/consistent-type-specifier-style': "off";
137
140
  'unicorn/no-new-array': "off";
138
141
  'eslint/no-array-constructor': "warn";
139
142
  'typescript/explicit-function-return-type': "off";
140
143
  'typescript/explicit-module-boundary-types': "off";
141
144
  'unicorn/no-anonymous-default-export': "off";
142
145
  'eslint/sort-imports': "off";
146
+ 'import/no-relative-parent-imports': "off";
147
+ 'unicorn/max-nested-calls': "off";
143
148
  'eslint/no-magic-numbers': "off";
144
149
  'unicorn/prefer-modern-math-apis': "off";
145
150
  'eslint/no-use-before-define': "off";
@@ -159,15 +164,21 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
159
164
  'oxc/no-async-await': "off";
160
165
  };
161
166
  }[];
162
- plugins: ("unicorn" | "typescript")[];
167
+ plugins: ("import" | "typescript" | "unicorn")[];
163
168
  env: {
164
169
  node: true;
165
170
  };
171
+ rules: {
172
+ 'eslint/no-underscore-dangle': ["warn", {
173
+ allow: string[];
174
+ }];
175
+ 'no-nodejs-modules': "off";
176
+ };
166
177
  };
167
178
  export { type OxlintConfig, defineConfig, nodeConfig };
168
179
  declare const _default: {
169
180
  extends: {
170
- plugins: ("unicorn" | "typescript")[];
181
+ plugins: ("import" | "typescript" | "unicorn")[];
171
182
  jsPlugins: never[];
172
183
  categories: {
173
184
  correctness: "error";
@@ -183,6 +194,7 @@ declare const _default: {
183
194
  };
184
195
  options: {
185
196
  typeAware: true;
197
+ typeCheck: true;
186
198
  };
187
199
  rules: {
188
200
  'eslint/no-var': "warn";
@@ -257,7 +269,7 @@ declare const _default: {
257
269
  'typescript/prefer-as-const': "error";
258
270
  'typescript/triple-slash-reference': "error";
259
271
  'typescript/explicit-member-accessibility': ["warn", {
260
- accessibility: string;
272
+ accessibility: "no-public";
261
273
  }];
262
274
  'eslint/id-length': "off";
263
275
  'eslint/sort-keys': "off";
@@ -267,7 +279,7 @@ declare const _default: {
267
279
  'eslint/max-params': "off";
268
280
  'eslint/no-ternary': "off";
269
281
  'eslint/curly': "warn";
270
- 'typescript/consistent-type-definitions': ["warn", string];
282
+ 'typescript/consistent-type-definitions': ["warn", "type"];
271
283
  'eslint/max-statements': "off";
272
284
  'typescript/consistent-return': "off";
273
285
  'unicorn/switch-case-braces': "warn";
@@ -299,12 +311,16 @@ declare const _default: {
299
311
  'import/no-namespace': "off";
300
312
  'import/exports-last': "off";
301
313
  'import/no-unassigned-import': "off";
314
+ 'import/group-exports': "off";
315
+ 'import/consistent-type-specifier-style': "off";
302
316
  'unicorn/no-new-array': "off";
303
317
  'eslint/no-array-constructor': "warn";
304
318
  'typescript/explicit-function-return-type': "off";
305
319
  'typescript/explicit-module-boundary-types': "off";
306
320
  'unicorn/no-anonymous-default-export': "off";
307
321
  'eslint/sort-imports': "off";
322
+ 'import/no-relative-parent-imports': "off";
323
+ 'unicorn/max-nested-calls': "off";
308
324
  'eslint/no-magic-numbers': "off";
309
325
  'unicorn/prefer-modern-math-apis': "off";
310
326
  'eslint/no-use-before-define': "off";
@@ -324,10 +340,16 @@ declare const _default: {
324
340
  'oxc/no-async-await': "off";
325
341
  };
326
342
  }[];
327
- plugins: ("unicorn" | "typescript")[];
343
+ plugins: ("import" | "typescript" | "unicorn")[];
328
344
  env: {
329
345
  node: true;
330
346
  };
347
+ rules: {
348
+ 'eslint/no-underscore-dangle': ["warn", {
349
+ allow: string[];
350
+ }];
351
+ 'no-nodejs-modules': "off";
352
+ };
331
353
  };
332
354
  export default _default;
333
355
  //# 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,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAajD;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"}
package/dist/node.js CHANGED
@@ -11,6 +11,13 @@ function nodeConfig(options) {
11
11
  env: {
12
12
  node: true,
13
13
  },
14
+ rules: {
15
+ 'eslint/no-underscore-dangle': [
16
+ 'warn',
17
+ { allow: ['__dirname', '__filename'] },
18
+ ],
19
+ 'no-nodejs-modules': 'off',
20
+ },
14
21
  });
15
22
  }
16
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,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;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
@@ -2,7 +2,7 @@ import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  export type ReactOptions = {};
3
3
  declare function reactConfig(options?: Partial<ReactOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript")[];
5
+ plugins: ("import" | "typescript" | "unicorn")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
8
  correctness: "error";
@@ -18,6 +18,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
18
18
  };
19
19
  options: {
20
20
  typeAware: true;
21
+ typeCheck: true;
21
22
  };
22
23
  rules: {
23
24
  'eslint/no-var': "warn";
@@ -92,7 +93,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
92
93
  'typescript/prefer-as-const': "error";
93
94
  'typescript/triple-slash-reference': "error";
94
95
  'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
96
+ accessibility: "no-public";
96
97
  }];
97
98
  'eslint/id-length': "off";
98
99
  'eslint/sort-keys': "off";
@@ -102,7 +103,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
102
103
  'eslint/max-params': "off";
103
104
  'eslint/no-ternary': "off";
104
105
  'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
106
+ 'typescript/consistent-type-definitions': ["warn", "type"];
106
107
  'eslint/max-statements': "off";
107
108
  'typescript/consistent-return': "off";
108
109
  'unicorn/switch-case-braces': "warn";
@@ -134,12 +135,16 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
134
135
  'import/no-namespace': "off";
135
136
  'import/exports-last': "off";
136
137
  'import/no-unassigned-import': "off";
138
+ 'import/group-exports': "off";
139
+ 'import/consistent-type-specifier-style': "off";
137
140
  'unicorn/no-new-array': "off";
138
141
  'eslint/no-array-constructor': "warn";
139
142
  'typescript/explicit-function-return-type': "off";
140
143
  'typescript/explicit-module-boundary-types': "off";
141
144
  'unicorn/no-anonymous-default-export': "off";
142
145
  'eslint/sort-imports': "off";
146
+ 'import/no-relative-parent-imports': "off";
147
+ 'unicorn/max-nested-calls': "off";
143
148
  'eslint/no-magic-numbers': "off";
144
149
  'unicorn/prefer-modern-math-apis': "off";
145
150
  'eslint/no-use-before-define': "off";
@@ -159,7 +164,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
159
164
  'oxc/no-async-await': "off";
160
165
  };
161
166
  }[];
162
- plugins: ("react" | "unicorn" | "typescript")[];
167
+ plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
163
168
  jsPlugins: {
164
169
  name: string;
165
170
  specifier: string;
@@ -174,6 +179,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
174
179
  'react/jsx-max-depth': "off";
175
180
  'react/no-multi-comp': "off";
176
181
  'react/jsx-props-no-spreading': "off";
182
+ 'react/jsx-no-literals': "off";
177
183
  'react/forbid-component-props': "off";
178
184
  'react/forbid-dom-props': "off";
179
185
  };
@@ -200,7 +206,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
200
206
  'react/require-render-return': "error";
201
207
  'import/no-anonymous-default-export': "warn";
202
208
  'jsx-a11y/alt-text': ["warn", {
203
- elements: string[];
209
+ elements: "img"[];
204
210
  img: string[];
205
211
  }];
206
212
  'jsx-a11y/aria-props': "warn";
@@ -218,7 +224,6 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
218
224
  sampleRate: "readonly";
219
225
  WorkletGlobalScope: "readonly";
220
226
  };
221
- plugins: ("import" | "jsx-a11y")[];
222
227
  env: {
223
228
  browser: true;
224
229
  node: true;
@@ -228,7 +233,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
228
233
  export { type OxlintConfig, defineConfig, reactConfig };
229
234
  declare const _default: {
230
235
  extends: {
231
- plugins: ("unicorn" | "typescript")[];
236
+ plugins: ("import" | "typescript" | "unicorn")[];
232
237
  jsPlugins: never[];
233
238
  categories: {
234
239
  correctness: "error";
@@ -244,6 +249,7 @@ declare const _default: {
244
249
  };
245
250
  options: {
246
251
  typeAware: true;
252
+ typeCheck: true;
247
253
  };
248
254
  rules: {
249
255
  'eslint/no-var': "warn";
@@ -318,7 +324,7 @@ declare const _default: {
318
324
  'typescript/prefer-as-const': "error";
319
325
  'typescript/triple-slash-reference': "error";
320
326
  'typescript/explicit-member-accessibility': ["warn", {
321
- accessibility: string;
327
+ accessibility: "no-public";
322
328
  }];
323
329
  'eslint/id-length': "off";
324
330
  'eslint/sort-keys': "off";
@@ -328,7 +334,7 @@ declare const _default: {
328
334
  'eslint/max-params': "off";
329
335
  'eslint/no-ternary': "off";
330
336
  'eslint/curly': "warn";
331
- 'typescript/consistent-type-definitions': ["warn", string];
337
+ 'typescript/consistent-type-definitions': ["warn", "type"];
332
338
  'eslint/max-statements': "off";
333
339
  'typescript/consistent-return': "off";
334
340
  'unicorn/switch-case-braces': "warn";
@@ -360,12 +366,16 @@ declare const _default: {
360
366
  'import/no-namespace': "off";
361
367
  'import/exports-last': "off";
362
368
  'import/no-unassigned-import': "off";
369
+ 'import/group-exports': "off";
370
+ 'import/consistent-type-specifier-style': "off";
363
371
  'unicorn/no-new-array': "off";
364
372
  'eslint/no-array-constructor': "warn";
365
373
  'typescript/explicit-function-return-type': "off";
366
374
  'typescript/explicit-module-boundary-types': "off";
367
375
  'unicorn/no-anonymous-default-export': "off";
368
376
  'eslint/sort-imports': "off";
377
+ 'import/no-relative-parent-imports': "off";
378
+ 'unicorn/max-nested-calls': "off";
369
379
  'eslint/no-magic-numbers': "off";
370
380
  'unicorn/prefer-modern-math-apis': "off";
371
381
  'eslint/no-use-before-define': "off";
@@ -385,7 +395,7 @@ declare const _default: {
385
395
  'oxc/no-async-await': "off";
386
396
  };
387
397
  }[];
388
- plugins: ("react" | "unicorn" | "typescript")[];
398
+ plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
389
399
  jsPlugins: {
390
400
  name: string;
391
401
  specifier: string;
@@ -400,6 +410,7 @@ declare const _default: {
400
410
  'react/jsx-max-depth': "off";
401
411
  'react/no-multi-comp': "off";
402
412
  'react/jsx-props-no-spreading': "off";
413
+ 'react/jsx-no-literals': "off";
403
414
  'react/forbid-component-props': "off";
404
415
  'react/forbid-dom-props': "off";
405
416
  };
@@ -426,7 +437,7 @@ declare const _default: {
426
437
  'react/require-render-return': "error";
427
438
  'import/no-anonymous-default-export': "warn";
428
439
  'jsx-a11y/alt-text': ["warn", {
429
- elements: string[];
440
+ elements: "img"[];
430
441
  img: string[];
431
442
  }];
432
443
  'jsx-a11y/aria-props': "warn";
@@ -444,7 +455,6 @@ declare const _default: {
444
455
  sampleRate: "readonly";
445
456
  WorkletGlobalScope: "readonly";
446
457
  };
447
- plugins: ("import" | "jsx-a11y")[];
448
458
  env: {
449
459
  browser: true;
450
460
  node: true;
@@ -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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;;;EAkFnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
package/dist/react.js CHANGED
@@ -6,7 +6,7 @@ function reactConfig(options) {
6
6
  const base = baseConfig(options);
7
7
  return defineConfig({
8
8
  extends: [base],
9
- plugins: [...base.plugins, 'react'],
9
+ plugins: [...base.plugins, 'react', 'jsx-a11y'],
10
10
  jsPlugins: [
11
11
  // react compiler is not yet supported by oxc
12
12
  // https://github.com/oxc-project/oxc/issues/10048
@@ -27,6 +27,7 @@ function reactConfig(options) {
27
27
  'react/jsx-max-depth': 'off',
28
28
  'react/no-multi-comp': 'off',
29
29
  'react/jsx-props-no-spreading': 'off',
30
+ 'react/jsx-no-literals': 'off',
30
31
  // conflicts with tailwind
31
32
  'react/forbid-component-props': 'off',
32
33
  'react/forbid-dom-props': 'off',
@@ -71,7 +72,6 @@ function reactConfig(options) {
71
72
  sampleRate: 'readonly',
72
73
  WorkletGlobalScope: 'readonly',
73
74
  },
74
- plugins: ['import', 'jsx-a11y'],
75
75
  env: {
76
76
  browser: true,
77
77
  node: true,
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,OAA+B;IAClD,mDAAmD;IAEnD,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QACnC,SAAS,EAAE;YACT,6CAA6C;YAC7C,kDAAkD;YAClD,0DAA0D;YAC1D,iDAAiD;YACjD,gEAAgE;YAChE,+CAA+C;YAC/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,EAAE,MAAM;oBAC/C,mCAAmC,EAAE,MAAM;iBAC5C;gBACD,OAAO,EAAE;oBACP,uBAAuB,EAAE,UAAU;oBACnC,qBAAqB,EAAE,UAAU;oBACjC,YAAY,EAAE,UAAU;oBACxB,WAAW,EAAE,UAAU;oBACvB,iBAAiB,EAAE,UAAU;oBAC7B,UAAU,EAAE,UAAU;oBACtB,kBAAkB,EAAE,UAAU;iBAC/B;gBACD,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.a9085f2",
3
+ "version": "0.0.0-alpha.a9f7845",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -33,12 +33,12 @@
33
33
  "dependencies": {
34
34
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
35
35
  "eslint-plugin-react-hooks": "7.1.1",
36
- "oxlint": "1.62.x",
37
- "oxlint-tsgolint": "0.22.x"
36
+ "oxlint": "1.79.x",
37
+ "oxlint-tsgolint": "7.0.x"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^24.12.2",
41
- "@4mbl/tsconfig": "0.0.0-alpha.a9085f2"
40
+ "@types/node": "^24.13.3",
41
+ "@4mbl/tsconfig": "0.0.0-alpha.a9f7845"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc"