@lntvow/eslint-config 9.20.0 → 9.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +29 -26
- package/dist/index.d.cts +50 -47
- package/dist/index.d.mts +50 -47
- package/dist/index.d.ts +50 -47
- package/dist/index.mjs +28 -26
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,6 @@ const utils = require('@lntvow/utils');
|
|
|
6
6
|
const parse = require('parse-gitignore');
|
|
7
7
|
const pluginImport = require('eslint-plugin-import-x');
|
|
8
8
|
const js = require('@eslint/js');
|
|
9
|
-
const globals = require('globals');
|
|
10
9
|
const pluginPrettier = require('eslint-plugin-prettier');
|
|
11
10
|
const prettierConfig = require('eslint-config-prettier');
|
|
12
11
|
const eslintPluginRegexp = require('eslint-plugin-regexp');
|
|
@@ -26,7 +25,6 @@ const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
|
26
25
|
const parse__default = /*#__PURE__*/_interopDefaultCompat(parse);
|
|
27
26
|
const pluginImport__default = /*#__PURE__*/_interopDefaultCompat(pluginImport);
|
|
28
27
|
const js__default = /*#__PURE__*/_interopDefaultCompat(js);
|
|
29
|
-
const globals__default = /*#__PURE__*/_interopDefaultCompat(globals);
|
|
30
28
|
const pluginPrettier__default = /*#__PURE__*/_interopDefaultCompat(pluginPrettier);
|
|
31
29
|
const prettierConfig__default = /*#__PURE__*/_interopDefaultCompat(prettierConfig);
|
|
32
30
|
const pluginStylistic__default = /*#__PURE__*/_interopDefaultCompat(pluginStylistic);
|
|
@@ -235,6 +233,7 @@ async function ignores(ignoresList = []) {
|
|
|
235
233
|
|
|
236
234
|
async function imports(options = {}) {
|
|
237
235
|
return [
|
|
236
|
+
// pluginImport.flatConfigs.typescript,
|
|
238
237
|
{
|
|
239
238
|
name: "lntvow/imports/rules",
|
|
240
239
|
plugins: {
|
|
@@ -277,10 +276,10 @@ async function imports(options = {}) {
|
|
|
277
276
|
// // 'import/dynamic-import-chunkname': 'off',
|
|
278
277
|
// // 'import/exports-last': 'off',
|
|
279
278
|
// // 'import/extensions': 'off',
|
|
280
|
-
|
|
279
|
+
"import/first": "error",
|
|
281
280
|
// // 'import/group-exports': 'off',
|
|
282
281
|
// // 'import/max-dependencies': 'off',
|
|
283
|
-
|
|
282
|
+
"import/newline-after-import": "error",
|
|
284
283
|
// // 'import/no-anonymous-default-export': 'off',
|
|
285
284
|
// // 'import/no-default-export': 'off',
|
|
286
285
|
// 'import/no-duplicates': 'error',
|
|
@@ -288,17 +287,21 @@ async function imports(options = {}) {
|
|
|
288
287
|
// // 'import/no-named-export': 'off',
|
|
289
288
|
// // 'import/no-namespace': 'off',
|
|
290
289
|
// // 'import/no-unassigned-import': 'off',
|
|
291
|
-
|
|
290
|
+
"import/order": "error"
|
|
292
291
|
// // 'import/prefer-default-export': 'off',
|
|
293
292
|
},
|
|
294
293
|
settings: {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
294
|
+
// 'import-x/resolver': {
|
|
295
|
+
// alias: {
|
|
296
|
+
// map: [['@', './src']],
|
|
297
|
+
// extensions: ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs', '.d.ts'],
|
|
298
|
+
// },
|
|
299
|
+
// node: true,
|
|
300
|
+
// typescript: true,
|
|
301
|
+
// },
|
|
302
|
+
// 'import-x/parsers': {
|
|
303
|
+
// '@typescript-eslint/parser': [],
|
|
304
|
+
// },
|
|
302
305
|
}
|
|
303
306
|
}
|
|
304
307
|
];
|
|
@@ -320,13 +323,10 @@ async function javascript(options = {}) {
|
|
|
320
323
|
}
|
|
321
324
|
},
|
|
322
325
|
globals: {
|
|
323
|
-
...
|
|
324
|
-
...
|
|
325
|
-
...
|
|
326
|
+
// ...globals.browser,
|
|
327
|
+
// ...globals.es2021,
|
|
328
|
+
// ...globals.node,
|
|
326
329
|
}
|
|
327
|
-
},
|
|
328
|
-
linterOptions: {
|
|
329
|
-
reportUnusedDisableDirectives: true
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
{
|
|
@@ -740,16 +740,16 @@ async function typescript(options = {}) {
|
|
|
740
740
|
name: "lntvow/typescript/setup",
|
|
741
741
|
plugins: {
|
|
742
742
|
ts: pluginTs__default
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
name: "lntvow/typescript/rules",
|
|
743
|
+
},
|
|
747
744
|
languageOptions: {
|
|
748
745
|
parser: parserTs__default,
|
|
749
746
|
parserOptions: {
|
|
750
747
|
sourceType: "module"
|
|
751
748
|
}
|
|
752
|
-
}
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
name: "lntvow/typescript/rules",
|
|
753
753
|
files,
|
|
754
754
|
rules: {
|
|
755
755
|
...renameRules(pluginTs__default.configs["eslint-recommended"].overrides[0].rules, {
|
|
@@ -1101,8 +1101,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1101
1101
|
javascript({
|
|
1102
1102
|
...resolveSubOptions(options, "javascript")
|
|
1103
1103
|
}),
|
|
1104
|
-
imports({ typescript: Boolean(enableTypeScript) })
|
|
1105
|
-
prettier()
|
|
1104
|
+
imports({ typescript: Boolean(enableTypeScript) })
|
|
1106
1105
|
// comments(),
|
|
1107
1106
|
// node(),
|
|
1108
1107
|
// jsdoc({
|
|
@@ -1134,7 +1133,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1134
1133
|
if (enableStylistic) {
|
|
1135
1134
|
configs.push(stylistic({ ...resolveSubOptions(options, "stylistic") }));
|
|
1136
1135
|
}
|
|
1137
|
-
configs.push(disables());
|
|
1136
|
+
configs.push(prettier(), disables());
|
|
1138
1137
|
const fusedConfig = flatConfigProps.reduce((acc, key) => {
|
|
1139
1138
|
if (key in options) {
|
|
1140
1139
|
acc[key] = options[key];
|
|
@@ -1155,6 +1154,8 @@ function resolveSubOptions(options, key) {
|
|
|
1155
1154
|
return utils.isBoolean(options[key]) ? {} : options[key] || {};
|
|
1156
1155
|
}
|
|
1157
1156
|
|
|
1157
|
+
const name = "111333311";
|
|
1158
|
+
|
|
1158
1159
|
exports.GLOB_ALL_SRC = GLOB_ALL_SRC;
|
|
1159
1160
|
exports.GLOB_ASTRO = GLOB_ASTRO;
|
|
1160
1161
|
exports.GLOB_CSS = GLOB_CSS;
|
|
@@ -1191,6 +1192,8 @@ exports.ignores = ignores;
|
|
|
1191
1192
|
exports.imports = imports;
|
|
1192
1193
|
exports.javascript = javascript;
|
|
1193
1194
|
exports.lntvow = lntvow;
|
|
1195
|
+
exports.name = name;
|
|
1196
|
+
exports.notInRecommendedRules = notInRecommendedRules;
|
|
1194
1197
|
exports.prettier = prettier;
|
|
1195
1198
|
exports.regexp = regexp;
|
|
1196
1199
|
exports.renameRules = renameRules;
|
package/dist/index.d.cts
CHANGED
|
@@ -277,233 +277,233 @@ interface RuleOptions {
|
|
|
277
277
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
278
278
|
/**
|
|
279
279
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
281
281
|
*/
|
|
282
282
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
283
283
|
/**
|
|
284
284
|
* Ensure a default export is present, given a default import.
|
|
285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
285
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
286
286
|
*/
|
|
287
287
|
'import/default'?: Linter.RuleEntry<[]>
|
|
288
288
|
/**
|
|
289
289
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
290
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
291
291
|
*/
|
|
292
292
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
293
293
|
/**
|
|
294
294
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
295
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
296
296
|
*/
|
|
297
297
|
'import/export'?: Linter.RuleEntry<[]>
|
|
298
298
|
/**
|
|
299
299
|
* Ensure all exports appear after other statements.
|
|
300
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
300
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
301
301
|
*/
|
|
302
302
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
303
303
|
/**
|
|
304
304
|
* Ensure consistent use of file extension within the import path.
|
|
305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
305
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
306
306
|
*/
|
|
307
307
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
308
308
|
/**
|
|
309
309
|
* Ensure all imports appear before other statements.
|
|
310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
310
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
311
311
|
*/
|
|
312
312
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
313
313
|
/**
|
|
314
314
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
315
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
316
316
|
*/
|
|
317
317
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
318
318
|
/**
|
|
319
319
|
* Replaced by `import-x/first`.
|
|
320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
320
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
321
321
|
* @deprecated
|
|
322
322
|
*/
|
|
323
323
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
324
324
|
/**
|
|
325
325
|
* Enforce the maximum number of dependencies a module can have.
|
|
326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
327
327
|
*/
|
|
328
328
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
329
329
|
/**
|
|
330
330
|
* Ensure named imports correspond to a named export in the remote file.
|
|
331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
332
332
|
*/
|
|
333
333
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
334
334
|
/**
|
|
335
335
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
336
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
337
337
|
*/
|
|
338
338
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
339
339
|
/**
|
|
340
340
|
* Enforce a newline after import statements.
|
|
341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
342
342
|
*/
|
|
343
343
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
344
344
|
/**
|
|
345
345
|
* Forbid import of modules using absolute paths.
|
|
346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
347
347
|
*/
|
|
348
348
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
349
349
|
/**
|
|
350
350
|
* Forbid AMD `require` and `define` calls.
|
|
351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
352
352
|
*/
|
|
353
353
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
354
354
|
/**
|
|
355
355
|
* Forbid anonymous values as default exports.
|
|
356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
357
357
|
*/
|
|
358
358
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
359
359
|
/**
|
|
360
360
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
362
362
|
*/
|
|
363
363
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
364
364
|
/**
|
|
365
365
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
367
367
|
*/
|
|
368
368
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
369
369
|
/**
|
|
370
370
|
* Forbid default exports.
|
|
371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
372
372
|
*/
|
|
373
373
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
374
374
|
/**
|
|
375
375
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
377
377
|
*/
|
|
378
378
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
380
|
* Forbid repeated import of the same module in multiple places.
|
|
381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
382
382
|
*/
|
|
383
383
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
384
384
|
/**
|
|
385
385
|
* Forbid `require()` calls with expressions.
|
|
386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
387
387
|
*/
|
|
388
388
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
389
389
|
/**
|
|
390
390
|
* Forbid empty named import blocks.
|
|
391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
392
392
|
*/
|
|
393
393
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
394
394
|
/**
|
|
395
395
|
* Forbid the use of extraneous packages.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
397
397
|
*/
|
|
398
398
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
399
399
|
/**
|
|
400
400
|
* Forbid import statements with CommonJS module.exports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
402
402
|
*/
|
|
403
403
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
404
404
|
/**
|
|
405
405
|
* Forbid importing the submodules of other modules.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
406
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
407
407
|
*/
|
|
408
408
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
409
409
|
/**
|
|
410
410
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
411
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
412
412
|
*/
|
|
413
413
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
414
414
|
/**
|
|
415
415
|
* Forbid use of exported name as identifier of default export.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
416
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
417
417
|
*/
|
|
418
418
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
419
419
|
/**
|
|
420
420
|
* Forbid use of exported name as property of default export.
|
|
421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
421
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
422
422
|
*/
|
|
423
423
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
424
424
|
/**
|
|
425
425
|
* Forbid named default exports.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
426
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
427
427
|
*/
|
|
428
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
429
429
|
/**
|
|
430
430
|
* Forbid named exports.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
432
432
|
*/
|
|
433
433
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
434
434
|
/**
|
|
435
435
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
437
437
|
*/
|
|
438
438
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
439
439
|
/**
|
|
440
440
|
* Forbid Node.js builtin modules.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
442
442
|
*/
|
|
443
443
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
444
444
|
/**
|
|
445
445
|
* Forbid importing packages through relative paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
447
447
|
*/
|
|
448
448
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid importing modules from parent directories.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid importing a default export by a different name.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
459
459
|
/**
|
|
460
460
|
* Enforce which files can be imported in a given folder.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid a module from importing itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid unassigned imports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
474
474
|
/**
|
|
475
475
|
* Ensure imports point to a file/module that can be resolved.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid unnecessary path segments in import and require statements.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid webpack loader syntax in imports.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
494
494
|
/**
|
|
495
495
|
* Enforce a convention in module import order.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
497
497
|
*/
|
|
498
498
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
499
499
|
/**
|
|
500
500
|
* Prefer a default export if module exports a single name or multiple names.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
502
502
|
*/
|
|
503
503
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
507
507
|
*/
|
|
508
508
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
509
509
|
/**
|
|
@@ -10328,6 +10328,7 @@ declare function imports(options?: {
|
|
|
10328
10328
|
}): Promise<TypedFlatConfigItem[]>;
|
|
10329
10329
|
|
|
10330
10330
|
declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
10331
|
+
declare const notInRecommendedRules: Partial<Rules>;
|
|
10331
10332
|
|
|
10332
10333
|
declare function prettier(): Promise<TypedFlatConfigItem[]>;
|
|
10333
10334
|
|
|
@@ -10372,4 +10373,6 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
10372
10373
|
|
|
10373
10374
|
declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
10374
10375
|
|
|
10375
|
-
|
|
10376
|
+
declare const name = "111333311";
|
|
10377
|
+
|
|
10378
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.d.mts
CHANGED
|
@@ -277,233 +277,233 @@ interface RuleOptions {
|
|
|
277
277
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
278
278
|
/**
|
|
279
279
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
281
281
|
*/
|
|
282
282
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
283
283
|
/**
|
|
284
284
|
* Ensure a default export is present, given a default import.
|
|
285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
285
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
286
286
|
*/
|
|
287
287
|
'import/default'?: Linter.RuleEntry<[]>
|
|
288
288
|
/**
|
|
289
289
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
290
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
291
291
|
*/
|
|
292
292
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
293
293
|
/**
|
|
294
294
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
295
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
296
296
|
*/
|
|
297
297
|
'import/export'?: Linter.RuleEntry<[]>
|
|
298
298
|
/**
|
|
299
299
|
* Ensure all exports appear after other statements.
|
|
300
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
300
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
301
301
|
*/
|
|
302
302
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
303
303
|
/**
|
|
304
304
|
* Ensure consistent use of file extension within the import path.
|
|
305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
305
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
306
306
|
*/
|
|
307
307
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
308
308
|
/**
|
|
309
309
|
* Ensure all imports appear before other statements.
|
|
310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
310
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
311
311
|
*/
|
|
312
312
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
313
313
|
/**
|
|
314
314
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
315
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
316
316
|
*/
|
|
317
317
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
318
318
|
/**
|
|
319
319
|
* Replaced by `import-x/first`.
|
|
320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
320
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
321
321
|
* @deprecated
|
|
322
322
|
*/
|
|
323
323
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
324
324
|
/**
|
|
325
325
|
* Enforce the maximum number of dependencies a module can have.
|
|
326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
327
327
|
*/
|
|
328
328
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
329
329
|
/**
|
|
330
330
|
* Ensure named imports correspond to a named export in the remote file.
|
|
331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
332
332
|
*/
|
|
333
333
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
334
334
|
/**
|
|
335
335
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
336
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
337
337
|
*/
|
|
338
338
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
339
339
|
/**
|
|
340
340
|
* Enforce a newline after import statements.
|
|
341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
342
342
|
*/
|
|
343
343
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
344
344
|
/**
|
|
345
345
|
* Forbid import of modules using absolute paths.
|
|
346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
347
347
|
*/
|
|
348
348
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
349
349
|
/**
|
|
350
350
|
* Forbid AMD `require` and `define` calls.
|
|
351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
352
352
|
*/
|
|
353
353
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
354
354
|
/**
|
|
355
355
|
* Forbid anonymous values as default exports.
|
|
356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
357
357
|
*/
|
|
358
358
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
359
359
|
/**
|
|
360
360
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
362
362
|
*/
|
|
363
363
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
364
364
|
/**
|
|
365
365
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
367
367
|
*/
|
|
368
368
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
369
369
|
/**
|
|
370
370
|
* Forbid default exports.
|
|
371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
372
372
|
*/
|
|
373
373
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
374
374
|
/**
|
|
375
375
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
377
377
|
*/
|
|
378
378
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
380
|
* Forbid repeated import of the same module in multiple places.
|
|
381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
382
382
|
*/
|
|
383
383
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
384
384
|
/**
|
|
385
385
|
* Forbid `require()` calls with expressions.
|
|
386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
387
387
|
*/
|
|
388
388
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
389
389
|
/**
|
|
390
390
|
* Forbid empty named import blocks.
|
|
391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
392
392
|
*/
|
|
393
393
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
394
394
|
/**
|
|
395
395
|
* Forbid the use of extraneous packages.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
397
397
|
*/
|
|
398
398
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
399
399
|
/**
|
|
400
400
|
* Forbid import statements with CommonJS module.exports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
402
402
|
*/
|
|
403
403
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
404
404
|
/**
|
|
405
405
|
* Forbid importing the submodules of other modules.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
406
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
407
407
|
*/
|
|
408
408
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
409
409
|
/**
|
|
410
410
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
411
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
412
412
|
*/
|
|
413
413
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
414
414
|
/**
|
|
415
415
|
* Forbid use of exported name as identifier of default export.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
416
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
417
417
|
*/
|
|
418
418
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
419
419
|
/**
|
|
420
420
|
* Forbid use of exported name as property of default export.
|
|
421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
421
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
422
422
|
*/
|
|
423
423
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
424
424
|
/**
|
|
425
425
|
* Forbid named default exports.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
426
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
427
427
|
*/
|
|
428
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
429
429
|
/**
|
|
430
430
|
* Forbid named exports.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
432
432
|
*/
|
|
433
433
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
434
434
|
/**
|
|
435
435
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
437
437
|
*/
|
|
438
438
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
439
439
|
/**
|
|
440
440
|
* Forbid Node.js builtin modules.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
442
442
|
*/
|
|
443
443
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
444
444
|
/**
|
|
445
445
|
* Forbid importing packages through relative paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
447
447
|
*/
|
|
448
448
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid importing modules from parent directories.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid importing a default export by a different name.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
459
459
|
/**
|
|
460
460
|
* Enforce which files can be imported in a given folder.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid a module from importing itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid unassigned imports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
474
474
|
/**
|
|
475
475
|
* Ensure imports point to a file/module that can be resolved.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid unnecessary path segments in import and require statements.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid webpack loader syntax in imports.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
494
494
|
/**
|
|
495
495
|
* Enforce a convention in module import order.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
497
497
|
*/
|
|
498
498
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
499
499
|
/**
|
|
500
500
|
* Prefer a default export if module exports a single name or multiple names.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
502
502
|
*/
|
|
503
503
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
507
507
|
*/
|
|
508
508
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
509
509
|
/**
|
|
@@ -10328,6 +10328,7 @@ declare function imports(options?: {
|
|
|
10328
10328
|
}): Promise<TypedFlatConfigItem[]>;
|
|
10329
10329
|
|
|
10330
10330
|
declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
10331
|
+
declare const notInRecommendedRules: Partial<Rules>;
|
|
10331
10332
|
|
|
10332
10333
|
declare function prettier(): Promise<TypedFlatConfigItem[]>;
|
|
10333
10334
|
|
|
@@ -10372,4 +10373,6 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
10372
10373
|
|
|
10373
10374
|
declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
10374
10375
|
|
|
10375
|
-
|
|
10376
|
+
declare const name = "111333311";
|
|
10377
|
+
|
|
10378
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.d.ts
CHANGED
|
@@ -277,233 +277,233 @@ interface RuleOptions {
|
|
|
277
277
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
278
278
|
/**
|
|
279
279
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
281
281
|
*/
|
|
282
282
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
283
283
|
/**
|
|
284
284
|
* Ensure a default export is present, given a default import.
|
|
285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
285
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
286
286
|
*/
|
|
287
287
|
'import/default'?: Linter.RuleEntry<[]>
|
|
288
288
|
/**
|
|
289
289
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
290
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
291
291
|
*/
|
|
292
292
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
293
293
|
/**
|
|
294
294
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
295
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
296
296
|
*/
|
|
297
297
|
'import/export'?: Linter.RuleEntry<[]>
|
|
298
298
|
/**
|
|
299
299
|
* Ensure all exports appear after other statements.
|
|
300
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
300
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
301
301
|
*/
|
|
302
302
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
303
303
|
/**
|
|
304
304
|
* Ensure consistent use of file extension within the import path.
|
|
305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
305
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
306
306
|
*/
|
|
307
307
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
308
308
|
/**
|
|
309
309
|
* Ensure all imports appear before other statements.
|
|
310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
310
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
311
311
|
*/
|
|
312
312
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
313
313
|
/**
|
|
314
314
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
315
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
316
316
|
*/
|
|
317
317
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
318
318
|
/**
|
|
319
319
|
* Replaced by `import-x/first`.
|
|
320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
320
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
321
321
|
* @deprecated
|
|
322
322
|
*/
|
|
323
323
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
324
324
|
/**
|
|
325
325
|
* Enforce the maximum number of dependencies a module can have.
|
|
326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
327
327
|
*/
|
|
328
328
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
329
329
|
/**
|
|
330
330
|
* Ensure named imports correspond to a named export in the remote file.
|
|
331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
332
332
|
*/
|
|
333
333
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
334
334
|
/**
|
|
335
335
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
336
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
337
337
|
*/
|
|
338
338
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
339
339
|
/**
|
|
340
340
|
* Enforce a newline after import statements.
|
|
341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
342
342
|
*/
|
|
343
343
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
344
344
|
/**
|
|
345
345
|
* Forbid import of modules using absolute paths.
|
|
346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
347
347
|
*/
|
|
348
348
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
349
349
|
/**
|
|
350
350
|
* Forbid AMD `require` and `define` calls.
|
|
351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
352
352
|
*/
|
|
353
353
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
354
354
|
/**
|
|
355
355
|
* Forbid anonymous values as default exports.
|
|
356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
357
357
|
*/
|
|
358
358
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
359
359
|
/**
|
|
360
360
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
362
362
|
*/
|
|
363
363
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
364
364
|
/**
|
|
365
365
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
367
367
|
*/
|
|
368
368
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
369
369
|
/**
|
|
370
370
|
* Forbid default exports.
|
|
371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
372
372
|
*/
|
|
373
373
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
374
374
|
/**
|
|
375
375
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
377
377
|
*/
|
|
378
378
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
380
|
* Forbid repeated import of the same module in multiple places.
|
|
381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
382
382
|
*/
|
|
383
383
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
384
384
|
/**
|
|
385
385
|
* Forbid `require()` calls with expressions.
|
|
386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
387
387
|
*/
|
|
388
388
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
389
389
|
/**
|
|
390
390
|
* Forbid empty named import blocks.
|
|
391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
392
392
|
*/
|
|
393
393
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
394
394
|
/**
|
|
395
395
|
* Forbid the use of extraneous packages.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
397
397
|
*/
|
|
398
398
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
399
399
|
/**
|
|
400
400
|
* Forbid import statements with CommonJS module.exports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
402
402
|
*/
|
|
403
403
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
404
404
|
/**
|
|
405
405
|
* Forbid importing the submodules of other modules.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
406
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
407
407
|
*/
|
|
408
408
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
409
409
|
/**
|
|
410
410
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
411
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
412
412
|
*/
|
|
413
413
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
414
414
|
/**
|
|
415
415
|
* Forbid use of exported name as identifier of default export.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
416
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
417
417
|
*/
|
|
418
418
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
419
419
|
/**
|
|
420
420
|
* Forbid use of exported name as property of default export.
|
|
421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
421
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
422
422
|
*/
|
|
423
423
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
424
424
|
/**
|
|
425
425
|
* Forbid named default exports.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
426
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
427
427
|
*/
|
|
428
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
429
429
|
/**
|
|
430
430
|
* Forbid named exports.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
432
432
|
*/
|
|
433
433
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
434
434
|
/**
|
|
435
435
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
437
437
|
*/
|
|
438
438
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
439
439
|
/**
|
|
440
440
|
* Forbid Node.js builtin modules.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
442
442
|
*/
|
|
443
443
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
444
444
|
/**
|
|
445
445
|
* Forbid importing packages through relative paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
447
447
|
*/
|
|
448
448
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid importing modules from parent directories.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid importing a default export by a different name.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
459
459
|
/**
|
|
460
460
|
* Enforce which files can be imported in a given folder.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid a module from importing itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid unassigned imports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
474
474
|
/**
|
|
475
475
|
* Ensure imports point to a file/module that can be resolved.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid unnecessary path segments in import and require statements.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid webpack loader syntax in imports.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
494
494
|
/**
|
|
495
495
|
* Enforce a convention in module import order.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
497
497
|
*/
|
|
498
498
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
499
499
|
/**
|
|
500
500
|
* Prefer a default export if module exports a single name or multiple names.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
502
502
|
*/
|
|
503
503
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
507
507
|
*/
|
|
508
508
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
509
509
|
/**
|
|
@@ -10328,6 +10328,7 @@ declare function imports(options?: {
|
|
|
10328
10328
|
}): Promise<TypedFlatConfigItem[]>;
|
|
10329
10329
|
|
|
10330
10330
|
declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
10331
|
+
declare const notInRecommendedRules: Partial<Rules>;
|
|
10331
10332
|
|
|
10332
10333
|
declare function prettier(): Promise<TypedFlatConfigItem[]>;
|
|
10333
10334
|
|
|
@@ -10372,4 +10373,6 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
10372
10373
|
|
|
10373
10374
|
declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
10374
10375
|
|
|
10375
|
-
|
|
10376
|
+
declare const name = "111333311";
|
|
10377
|
+
|
|
10378
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { castArray, isBoolean } from '@lntvow/utils';
|
|
|
4
4
|
import parse from 'parse-gitignore';
|
|
5
5
|
import pluginImport from 'eslint-plugin-import-x';
|
|
6
6
|
import js from '@eslint/js';
|
|
7
|
-
import globals from 'globals';
|
|
8
7
|
import pluginPrettier from 'eslint-plugin-prettier';
|
|
9
8
|
import prettierConfig from 'eslint-config-prettier';
|
|
10
9
|
import { configs } from 'eslint-plugin-regexp';
|
|
@@ -216,6 +215,7 @@ async function ignores(ignoresList = []) {
|
|
|
216
215
|
|
|
217
216
|
async function imports(options = {}) {
|
|
218
217
|
return [
|
|
218
|
+
// pluginImport.flatConfigs.typescript,
|
|
219
219
|
{
|
|
220
220
|
name: "lntvow/imports/rules",
|
|
221
221
|
plugins: {
|
|
@@ -258,10 +258,10 @@ async function imports(options = {}) {
|
|
|
258
258
|
// // 'import/dynamic-import-chunkname': 'off',
|
|
259
259
|
// // 'import/exports-last': 'off',
|
|
260
260
|
// // 'import/extensions': 'off',
|
|
261
|
-
|
|
261
|
+
"import/first": "error",
|
|
262
262
|
// // 'import/group-exports': 'off',
|
|
263
263
|
// // 'import/max-dependencies': 'off',
|
|
264
|
-
|
|
264
|
+
"import/newline-after-import": "error",
|
|
265
265
|
// // 'import/no-anonymous-default-export': 'off',
|
|
266
266
|
// // 'import/no-default-export': 'off',
|
|
267
267
|
// 'import/no-duplicates': 'error',
|
|
@@ -269,17 +269,21 @@ async function imports(options = {}) {
|
|
|
269
269
|
// // 'import/no-named-export': 'off',
|
|
270
270
|
// // 'import/no-namespace': 'off',
|
|
271
271
|
// // 'import/no-unassigned-import': 'off',
|
|
272
|
-
|
|
272
|
+
"import/order": "error"
|
|
273
273
|
// // 'import/prefer-default-export': 'off',
|
|
274
274
|
},
|
|
275
275
|
settings: {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
276
|
+
// 'import-x/resolver': {
|
|
277
|
+
// alias: {
|
|
278
|
+
// map: [['@', './src']],
|
|
279
|
+
// extensions: ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs', '.d.ts'],
|
|
280
|
+
// },
|
|
281
|
+
// node: true,
|
|
282
|
+
// typescript: true,
|
|
283
|
+
// },
|
|
284
|
+
// 'import-x/parsers': {
|
|
285
|
+
// '@typescript-eslint/parser': [],
|
|
286
|
+
// },
|
|
283
287
|
}
|
|
284
288
|
}
|
|
285
289
|
];
|
|
@@ -301,13 +305,10 @@ async function javascript(options = {}) {
|
|
|
301
305
|
}
|
|
302
306
|
},
|
|
303
307
|
globals: {
|
|
304
|
-
...globals.browser,
|
|
305
|
-
...globals.es2021,
|
|
306
|
-
...globals.node
|
|
308
|
+
// ...globals.browser,
|
|
309
|
+
// ...globals.es2021,
|
|
310
|
+
// ...globals.node,
|
|
307
311
|
}
|
|
308
|
-
},
|
|
309
|
-
linterOptions: {
|
|
310
|
-
reportUnusedDisableDirectives: true
|
|
311
312
|
}
|
|
312
313
|
},
|
|
313
314
|
{
|
|
@@ -721,16 +722,16 @@ async function typescript(options = {}) {
|
|
|
721
722
|
name: "lntvow/typescript/setup",
|
|
722
723
|
plugins: {
|
|
723
724
|
ts: pluginTs
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
name: "lntvow/typescript/rules",
|
|
725
|
+
},
|
|
728
726
|
languageOptions: {
|
|
729
727
|
parser: parserTs,
|
|
730
728
|
parserOptions: {
|
|
731
729
|
sourceType: "module"
|
|
732
730
|
}
|
|
733
|
-
}
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: "lntvow/typescript/rules",
|
|
734
735
|
files,
|
|
735
736
|
rules: {
|
|
736
737
|
...renameRules(pluginTs.configs["eslint-recommended"].overrides[0].rules, {
|
|
@@ -1082,8 +1083,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1082
1083
|
javascript({
|
|
1083
1084
|
...resolveSubOptions(options, "javascript")
|
|
1084
1085
|
}),
|
|
1085
|
-
imports({ typescript: Boolean(enableTypeScript) })
|
|
1086
|
-
prettier()
|
|
1086
|
+
imports({ typescript: Boolean(enableTypeScript) })
|
|
1087
1087
|
// comments(),
|
|
1088
1088
|
// node(),
|
|
1089
1089
|
// jsdoc({
|
|
@@ -1115,7 +1115,7 @@ function lntvow(options = {}, ...userConfigs) {
|
|
|
1115
1115
|
if (enableStylistic) {
|
|
1116
1116
|
configs.push(stylistic({ ...resolveSubOptions(options, "stylistic") }));
|
|
1117
1117
|
}
|
|
1118
|
-
configs.push(disables());
|
|
1118
|
+
configs.push(prettier(), disables());
|
|
1119
1119
|
const fusedConfig = flatConfigProps.reduce((acc, key) => {
|
|
1120
1120
|
if (key in options) {
|
|
1121
1121
|
acc[key] = options[key];
|
|
@@ -1136,4 +1136,6 @@ function resolveSubOptions(options, key) {
|
|
|
1136
1136
|
return isBoolean(options[key]) ? {} : options[key] || {};
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
|
-
|
|
1139
|
+
const name = "111333311";
|
|
1140
|
+
|
|
1141
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.2",
|
|
4
4
|
"description": "eslint-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"eslint-config-prettier": "^9.1.0",
|
|
40
40
|
"eslint-flat-config-utils": "^0.4.0",
|
|
41
41
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
42
|
-
"eslint-
|
|
42
|
+
"eslint-import-resolver-typescript": "^3.8.3",
|
|
43
|
+
"eslint-plugin-import-x": "^4.6.1",
|
|
43
44
|
"eslint-plugin-prettier": "^5.2.1",
|
|
44
45
|
"eslint-plugin-regexp": "^2.6.0",
|
|
45
46
|
"eslint-plugin-vitest": "^0.5.4",
|
|
@@ -50,10 +51,10 @@
|
|
|
50
51
|
"parse-gitignore": "^2.0.0",
|
|
51
52
|
"typescript": "^5.6.3",
|
|
52
53
|
"vue-eslint-parser": "^9.4.3",
|
|
53
|
-
"@lntvow/eslint-plugin": "^9.20.
|
|
54
|
+
"@lntvow/eslint-plugin": "^9.20.2"
|
|
54
55
|
},
|
|
55
56
|
"scripts": {
|
|
56
|
-
"dev": "
|
|
57
|
+
"dev": "unbuild --stub",
|
|
57
58
|
"build": "pnpm typegen && unbuild",
|
|
58
59
|
"typegen": "esno scripts/typegen.ts",
|
|
59
60
|
"rimraf": "rimraf ./node_modules/"
|