@4mbl/lint 1.0.0-beta.13 → 1.0.0-beta.14
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 +8 -0
- package/dist/base.d.ts +8 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +4 -1
- package/dist/base.js.map +1 -1
- package/dist/node.d.ts +12 -4
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +1 -0
- package/dist/node.js.map +1 -1
- package/dist/react.d.ts +10 -4
- package/dist/react.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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: ("unicorn" | "typescript" | "import")[];
|
|
5
5
|
jsPlugins: never[];
|
|
6
6
|
categories: {
|
|
7
7
|
correctness: "error";
|
|
@@ -133,12 +133,15 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
|
|
|
133
133
|
'import/no-namespace': "off";
|
|
134
134
|
'import/exports-last': "off";
|
|
135
135
|
'import/no-unassigned-import': "off";
|
|
136
|
+
'import/group-exports': "off";
|
|
137
|
+
'import/consistent-type-specifier-style': "off";
|
|
136
138
|
'unicorn/no-new-array': "off";
|
|
137
139
|
'eslint/no-array-constructor': "warn";
|
|
138
140
|
'typescript/explicit-function-return-type': "off";
|
|
139
141
|
'typescript/explicit-module-boundary-types': "off";
|
|
140
142
|
'unicorn/no-anonymous-default-export': "off";
|
|
141
143
|
'eslint/sort-imports': "off";
|
|
144
|
+
'import/no-relative-parent-imports': "off";
|
|
142
145
|
'eslint/no-magic-numbers': "off";
|
|
143
146
|
'unicorn/prefer-modern-math-apis': "off";
|
|
144
147
|
'eslint/no-use-before-define': "off";
|
|
@@ -160,7 +163,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
|
|
|
160
163
|
};
|
|
161
164
|
export { type OxlintConfig, defineConfig, baseConfig };
|
|
162
165
|
declare const _default: {
|
|
163
|
-
plugins: ("unicorn" | "typescript")[];
|
|
166
|
+
plugins: ("unicorn" | "typescript" | "import")[];
|
|
164
167
|
jsPlugins: never[];
|
|
165
168
|
categories: {
|
|
166
169
|
correctness: "error";
|
|
@@ -292,12 +295,15 @@ declare const _default: {
|
|
|
292
295
|
'import/no-namespace': "off";
|
|
293
296
|
'import/exports-last': "off";
|
|
294
297
|
'import/no-unassigned-import': "off";
|
|
298
|
+
'import/group-exports': "off";
|
|
299
|
+
'import/consistent-type-specifier-style': "off";
|
|
295
300
|
'unicorn/no-new-array': "off";
|
|
296
301
|
'eslint/no-array-constructor': "warn";
|
|
297
302
|
'typescript/explicit-function-return-type': "off";
|
|
298
303
|
'typescript/explicit-module-boundary-types': "off";
|
|
299
304
|
'unicorn/no-anonymous-default-export': "off";
|
|
300
305
|
'eslint/sort-imports': "off";
|
|
306
|
+
'import/no-relative-parent-imports': "off";
|
|
301
307
|
'eslint/no-magic-numbers': "off";
|
|
302
308
|
'unicorn/prefer-modern-math-apis': "off";
|
|
303
309
|
'eslint/no-use-before-define': "off";
|
package/dist/base.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
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',
|
|
@@ -137,6 +137,8 @@ function baseConfig(_options) {
|
|
|
137
137
|
'import/no-namespace': 'off', // star imports are still pretty necessary
|
|
138
138
|
'import/exports-last': 'off', // star imports are still pretty necessary
|
|
139
139
|
'import/no-unassigned-import': 'off', // required for css imports
|
|
140
|
+
'import/group-exports': 'off', // co-locating export statement with the function it exports is more readable
|
|
141
|
+
'import/consistent-type-specifier-style': 'off', // single import per file is more readable
|
|
140
142
|
// Array.from() is slower than new Array()
|
|
141
143
|
// https://jsperf.app/tatuse
|
|
142
144
|
'unicorn/no-new-array': 'off',
|
|
@@ -147,6 +149,7 @@ function baseConfig(_options) {
|
|
|
147
149
|
// may revisit
|
|
148
150
|
'unicorn/no-anonymous-default-export': 'off',
|
|
149
151
|
'eslint/sort-imports': 'off', // consider when oxfmt is setup
|
|
152
|
+
'import/no-relative-parent-imports': 'off',
|
|
150
153
|
// currently produces too many false positives
|
|
151
154
|
'eslint/no-magic-numbers': 'off',
|
|
152
155
|
'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;
|
|
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,e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C,EAAE,KAAK;YAE1C,8CAA8C;YAC9C,yBAAyB,EAAE,KAAK;YAChC,iCAAiC,EAAE,KAAK;YACxC,6BAA6B,EAAE,KAAK;YAEpC,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"}
|
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: ("unicorn" | "typescript" | "import")[];
|
|
6
6
|
jsPlugins: never[];
|
|
7
7
|
categories: {
|
|
8
8
|
correctness: "error";
|
|
@@ -134,12 +134,15 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
|
|
|
134
134
|
'import/no-namespace': "off";
|
|
135
135
|
'import/exports-last': "off";
|
|
136
136
|
'import/no-unassigned-import': "off";
|
|
137
|
+
'import/group-exports': "off";
|
|
138
|
+
'import/consistent-type-specifier-style': "off";
|
|
137
139
|
'unicorn/no-new-array': "off";
|
|
138
140
|
'eslint/no-array-constructor': "warn";
|
|
139
141
|
'typescript/explicit-function-return-type': "off";
|
|
140
142
|
'typescript/explicit-module-boundary-types': "off";
|
|
141
143
|
'unicorn/no-anonymous-default-export': "off";
|
|
142
144
|
'eslint/sort-imports': "off";
|
|
145
|
+
'import/no-relative-parent-imports': "off";
|
|
143
146
|
'eslint/no-magic-numbers': "off";
|
|
144
147
|
'unicorn/prefer-modern-math-apis': "off";
|
|
145
148
|
'eslint/no-use-before-define': "off";
|
|
@@ -159,7 +162,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
|
|
|
159
162
|
'oxc/no-async-await': "off";
|
|
160
163
|
};
|
|
161
164
|
}[];
|
|
162
|
-
plugins: ("unicorn" | "typescript")[];
|
|
165
|
+
plugins: ("unicorn" | "typescript" | "import")[];
|
|
163
166
|
env: {
|
|
164
167
|
node: true;
|
|
165
168
|
};
|
|
@@ -167,12 +170,13 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
|
|
|
167
170
|
'eslint/no-underscore-dangle': ["warn", {
|
|
168
171
|
allow: string[];
|
|
169
172
|
}];
|
|
173
|
+
'no-nodejs-modules': "off";
|
|
170
174
|
};
|
|
171
175
|
};
|
|
172
176
|
export { type OxlintConfig, defineConfig, nodeConfig };
|
|
173
177
|
declare const _default: {
|
|
174
178
|
extends: {
|
|
175
|
-
plugins: ("unicorn" | "typescript")[];
|
|
179
|
+
plugins: ("unicorn" | "typescript" | "import")[];
|
|
176
180
|
jsPlugins: never[];
|
|
177
181
|
categories: {
|
|
178
182
|
correctness: "error";
|
|
@@ -304,12 +308,15 @@ declare const _default: {
|
|
|
304
308
|
'import/no-namespace': "off";
|
|
305
309
|
'import/exports-last': "off";
|
|
306
310
|
'import/no-unassigned-import': "off";
|
|
311
|
+
'import/group-exports': "off";
|
|
312
|
+
'import/consistent-type-specifier-style': "off";
|
|
307
313
|
'unicorn/no-new-array': "off";
|
|
308
314
|
'eslint/no-array-constructor': "warn";
|
|
309
315
|
'typescript/explicit-function-return-type': "off";
|
|
310
316
|
'typescript/explicit-module-boundary-types': "off";
|
|
311
317
|
'unicorn/no-anonymous-default-export': "off";
|
|
312
318
|
'eslint/sort-imports': "off";
|
|
319
|
+
'import/no-relative-parent-imports': "off";
|
|
313
320
|
'eslint/no-magic-numbers': "off";
|
|
314
321
|
'unicorn/prefer-modern-math-apis': "off";
|
|
315
322
|
'eslint/no-use-before-define': "off";
|
|
@@ -329,7 +336,7 @@ declare const _default: {
|
|
|
329
336
|
'oxc/no-async-await': "off";
|
|
330
337
|
};
|
|
331
338
|
}[];
|
|
332
|
-
plugins: ("unicorn" | "typescript")[];
|
|
339
|
+
plugins: ("unicorn" | "typescript" | "import")[];
|
|
333
340
|
env: {
|
|
334
341
|
node: true;
|
|
335
342
|
};
|
|
@@ -337,6 +344,7 @@ declare const _default: {
|
|
|
337
344
|
'eslint/no-underscore-dangle': ["warn", {
|
|
338
345
|
allow: string[];
|
|
339
346
|
}];
|
|
347
|
+
'no-nodejs-modules': "off";
|
|
340
348
|
};
|
|
341
349
|
};
|
|
342
350
|
export default _default;
|
package/dist/node.d.ts.map
CHANGED
|
@@ -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
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,wBAA4B"}
|
package/dist/node.js
CHANGED
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;QAED,KAAK,EAAE;YACL,6BAA6B,EAAE;gBAC7B,MAAM;gBACN,EAAE,KAAK,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE;aACvC;
|
|
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: ("unicorn" | "typescript" | "import")[];
|
|
6
6
|
jsPlugins: never[];
|
|
7
7
|
categories: {
|
|
8
8
|
correctness: "error";
|
|
@@ -134,12 +134,15 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
134
134
|
'import/no-namespace': "off";
|
|
135
135
|
'import/exports-last': "off";
|
|
136
136
|
'import/no-unassigned-import': "off";
|
|
137
|
+
'import/group-exports': "off";
|
|
138
|
+
'import/consistent-type-specifier-style': "off";
|
|
137
139
|
'unicorn/no-new-array': "off";
|
|
138
140
|
'eslint/no-array-constructor': "warn";
|
|
139
141
|
'typescript/explicit-function-return-type': "off";
|
|
140
142
|
'typescript/explicit-module-boundary-types': "off";
|
|
141
143
|
'unicorn/no-anonymous-default-export': "off";
|
|
142
144
|
'eslint/sort-imports': "off";
|
|
145
|
+
'import/no-relative-parent-imports': "off";
|
|
143
146
|
'eslint/no-magic-numbers': "off";
|
|
144
147
|
'unicorn/prefer-modern-math-apis': "off";
|
|
145
148
|
'eslint/no-use-before-define': "off";
|
|
@@ -159,7 +162,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
159
162
|
'oxc/no-async-await': "off";
|
|
160
163
|
};
|
|
161
164
|
}[];
|
|
162
|
-
plugins: ("react" | "unicorn" | "typescript")[];
|
|
165
|
+
plugins: ("react" | "unicorn" | "typescript" | "import")[];
|
|
163
166
|
jsPlugins: {
|
|
164
167
|
name: string;
|
|
165
168
|
specifier: string;
|
|
@@ -228,7 +231,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
228
231
|
export { type OxlintConfig, defineConfig, reactConfig };
|
|
229
232
|
declare const _default: {
|
|
230
233
|
extends: {
|
|
231
|
-
plugins: ("unicorn" | "typescript")[];
|
|
234
|
+
plugins: ("unicorn" | "typescript" | "import")[];
|
|
232
235
|
jsPlugins: never[];
|
|
233
236
|
categories: {
|
|
234
237
|
correctness: "error";
|
|
@@ -360,12 +363,15 @@ declare const _default: {
|
|
|
360
363
|
'import/no-namespace': "off";
|
|
361
364
|
'import/exports-last': "off";
|
|
362
365
|
'import/no-unassigned-import': "off";
|
|
366
|
+
'import/group-exports': "off";
|
|
367
|
+
'import/consistent-type-specifier-style': "off";
|
|
363
368
|
'unicorn/no-new-array': "off";
|
|
364
369
|
'eslint/no-array-constructor': "warn";
|
|
365
370
|
'typescript/explicit-function-return-type': "off";
|
|
366
371
|
'typescript/explicit-module-boundary-types': "off";
|
|
367
372
|
'unicorn/no-anonymous-default-export': "off";
|
|
368
373
|
'eslint/sort-imports': "off";
|
|
374
|
+
'import/no-relative-parent-imports': "off";
|
|
369
375
|
'eslint/no-magic-numbers': "off";
|
|
370
376
|
'unicorn/prefer-modern-math-apis': "off";
|
|
371
377
|
'eslint/no-use-before-define': "off";
|
|
@@ -385,7 +391,7 @@ declare const _default: {
|
|
|
385
391
|
'oxc/no-async-await': "off";
|
|
386
392
|
};
|
|
387
393
|
}[];
|
|
388
|
-
plugins: ("react" | "unicorn" | "typescript")[];
|
|
394
|
+
plugins: ("react" | "unicorn" | "typescript" | "import")[];
|
|
389
395
|
jsPlugins: {
|
|
390
396
|
name: string;
|
|
391
397
|
specifier: string;
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,wBAA6B"}
|