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