eslint-config-airbnb-extended 0.1.1 → 0.2.0
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/base/index.d.ts +151 -2
- package/dist/base/recommended.d.ts +989 -1
- package/dist/helpers/getDevDepsList.d.ts +3 -0
- package/dist/helpers/getDevDepsList.js +31 -0
- package/dist/index.d.ts +14866 -1623
- package/dist/index.js +9 -1
- package/dist/react/index.d.ts +0 -5
- package/dist/react/recommended.d.ts +2785 -1
- package/dist/react/recommended.js +15 -1
- package/dist/rules/es6.js +1 -1
- package/dist/rules/imports.d.ts +69 -75
- package/dist/rules/imports.js +157 -210
- package/dist/rules/importsStrict.d.ts +43 -0
- package/dist/rules/importsStrict.js +74 -0
- package/dist/rules/next.d.ts +8 -0
- package/dist/rules/next.js +12 -0
- package/dist/rules/react.d.ts +0 -5
- package/dist/rules/react.js +0 -5
- package/dist/rules/typescript/typescriptBase.d.ts +23 -0
- package/dist/rules/typescript/typescriptBase.js +26 -0
- package/dist/rules/typescript/typescriptEslint.d.ts +3 -0
- package/dist/rules/typescript/typescriptEslint.js +184 -0
- package/dist/rules/typescript/typescriptImports.d.ts +37 -0
- package/dist/rules/typescript/typescriptImports.js +54 -0
- package/dist/rules/typescript.d.ts +45 -2
- package/dist/rules/typescript.js +4 -259
- package/dist/rules/variables.d.ts +1 -1
- package/dist/typescript/index.d.ts +54 -1
- package/dist/typescript/index.js +4 -2
- package/dist/typescript/recommended.d.ts +108 -2
- package/dist/typescript/recommended.js +17 -44
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.js +12 -0
- package/package.json +11 -3
package/dist/base/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
bestPractices: {
|
|
3
4
|
name: string;
|
|
@@ -388,7 +389,155 @@ declare const _default: {
|
|
|
388
389
|
'yield-star-spacing': ["error", string];
|
|
389
390
|
};
|
|
390
391
|
};
|
|
391
|
-
imports:
|
|
392
|
+
imports: {
|
|
393
|
+
name: string;
|
|
394
|
+
languageOptions: {
|
|
395
|
+
globals: {
|
|
396
|
+
Array: false;
|
|
397
|
+
ArrayBuffer: false;
|
|
398
|
+
Boolean: false;
|
|
399
|
+
DataView: false;
|
|
400
|
+
Date: false;
|
|
401
|
+
decodeURI: false;
|
|
402
|
+
decodeURIComponent: false;
|
|
403
|
+
encodeURI: false;
|
|
404
|
+
encodeURIComponent: false;
|
|
405
|
+
Error: false;
|
|
406
|
+
escape: false;
|
|
407
|
+
eval: false;
|
|
408
|
+
EvalError: false;
|
|
409
|
+
Float32Array: false;
|
|
410
|
+
Float64Array: false;
|
|
411
|
+
Function: false;
|
|
412
|
+
Infinity: false;
|
|
413
|
+
Int16Array: false;
|
|
414
|
+
Int32Array: false;
|
|
415
|
+
Int8Array: false;
|
|
416
|
+
Intl: false;
|
|
417
|
+
isFinite: false;
|
|
418
|
+
isNaN: false;
|
|
419
|
+
JSON: false;
|
|
420
|
+
Map: false;
|
|
421
|
+
Math: false;
|
|
422
|
+
NaN: false;
|
|
423
|
+
Number: false;
|
|
424
|
+
Object: false;
|
|
425
|
+
parseFloat: false;
|
|
426
|
+
parseInt: false;
|
|
427
|
+
Promise: false;
|
|
428
|
+
Proxy: false;
|
|
429
|
+
RangeError: false;
|
|
430
|
+
ReferenceError: false;
|
|
431
|
+
Reflect: false;
|
|
432
|
+
RegExp: false;
|
|
433
|
+
Set: false;
|
|
434
|
+
String: false;
|
|
435
|
+
Symbol: false;
|
|
436
|
+
SyntaxError: false;
|
|
437
|
+
TypeError: false;
|
|
438
|
+
Uint16Array: false;
|
|
439
|
+
Uint32Array: false;
|
|
440
|
+
Uint8Array: false;
|
|
441
|
+
Uint8ClampedArray: false;
|
|
442
|
+
undefined: false;
|
|
443
|
+
unescape: false;
|
|
444
|
+
URIError: false;
|
|
445
|
+
WeakMap: false;
|
|
446
|
+
WeakSet: false;
|
|
447
|
+
};
|
|
448
|
+
parserOptions: {
|
|
449
|
+
ecmaVersion: 6;
|
|
450
|
+
sourceType: "module";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
settings: {
|
|
454
|
+
'import-x/resolver': {
|
|
455
|
+
node: {
|
|
456
|
+
extensions: string[];
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
'import-x/extensions': string[];
|
|
460
|
+
'import-x/core-modules': never[];
|
|
461
|
+
'import-x/ignore': string[];
|
|
462
|
+
};
|
|
463
|
+
rules: {
|
|
464
|
+
'import-x/consistent-type-specifier-style': "off";
|
|
465
|
+
'import-x/default': "error";
|
|
466
|
+
'import-x/dynamic-import-chunkname': "off";
|
|
467
|
+
'import-x/export': "error";
|
|
468
|
+
'import-x/exports-last': "off";
|
|
469
|
+
'import-x/extensions': ["error", string, {
|
|
470
|
+
[k: string]: string;
|
|
471
|
+
}];
|
|
472
|
+
'import-x/first': "error";
|
|
473
|
+
'import-x/group-exports': "off";
|
|
474
|
+
'import-x/imports-first': "off";
|
|
475
|
+
'import-x/max-dependencies': "off";
|
|
476
|
+
'import-x/named': "error";
|
|
477
|
+
'import-x/namespaces': "error";
|
|
478
|
+
'import-x/newline-after-import': "error";
|
|
479
|
+
'import-x/no-absolute-path': "error";
|
|
480
|
+
'import-x/no-amd': "error";
|
|
481
|
+
'import-x/no-anonymous-default-export': "off";
|
|
482
|
+
'import-x/no-commonjs': "off";
|
|
483
|
+
'import-x/no-cycle': ["error", {
|
|
484
|
+
maxDepth: string;
|
|
485
|
+
}];
|
|
486
|
+
'import-x/no-default-export': "off";
|
|
487
|
+
'import-x/no-deprecated': "off";
|
|
488
|
+
'import-x/no-duplicates': "error";
|
|
489
|
+
'import-x/no-dynamic-require': "error";
|
|
490
|
+
'import-x/no-empty-named-blocks': "error";
|
|
491
|
+
'import-x/no-extraneous-dependencies': ["error", {
|
|
492
|
+
devDependencies: string[];
|
|
493
|
+
optionalDependencies: boolean;
|
|
494
|
+
peerDependencies: boolean;
|
|
495
|
+
bundledDependencies: boolean;
|
|
496
|
+
}];
|
|
497
|
+
'import-x/no-import-module-exports': ["error", {
|
|
498
|
+
exceptions: never[];
|
|
499
|
+
}];
|
|
500
|
+
'import-x/no-internal-modules': "off";
|
|
501
|
+
'import-x/no-mutable-exports': "error";
|
|
502
|
+
'import-x/no-named-as-default-member': "error";
|
|
503
|
+
'import-x/no-named-as-default': "error";
|
|
504
|
+
'import-x/no-named-default': "error";
|
|
505
|
+
'import-x/no-named-export': "off";
|
|
506
|
+
'import-x/no-namespace': "off";
|
|
507
|
+
'import-x/no-nodejs-modules': "off";
|
|
508
|
+
'import-x/no-relative-packages': "error";
|
|
509
|
+
'import-x/no-relative-parent-imports': "off";
|
|
510
|
+
'import-x/no-rename-default': "warn";
|
|
511
|
+
'import-x/no-restricted-paths': "off";
|
|
512
|
+
'import-x/no-self-import': "error";
|
|
513
|
+
'import-x/no-unassigned-import': "off";
|
|
514
|
+
'import-x/no-unresolved': ["error", {
|
|
515
|
+
commonjs: boolean;
|
|
516
|
+
caseSensitive: boolean;
|
|
517
|
+
}];
|
|
518
|
+
'import-x/no-unused-modules': ["off", {
|
|
519
|
+
ignoreExports: never[];
|
|
520
|
+
missingExports: boolean;
|
|
521
|
+
unusedExports: boolean;
|
|
522
|
+
}];
|
|
523
|
+
'import-x/no-useless-path-segments': ["error", {
|
|
524
|
+
noUselessIndex: boolean;
|
|
525
|
+
commonjs: boolean;
|
|
526
|
+
}];
|
|
527
|
+
'import-x/no-webpack-loader-syntax': "error";
|
|
528
|
+
'import-x/order': ["error", {
|
|
529
|
+
groups: string[][];
|
|
530
|
+
}];
|
|
531
|
+
'import-x/prefer-default-export': "error";
|
|
532
|
+
'import-x/unambiguous': "off";
|
|
533
|
+
};
|
|
534
|
+
files?: Array<string | string[]>;
|
|
535
|
+
ignores?: string[];
|
|
536
|
+
language?: string;
|
|
537
|
+
linterOptions?: Linter.LinterOptions;
|
|
538
|
+
processor?: string | Linter.Processor;
|
|
539
|
+
plugins?: Record<string, import("eslint").ESLint.Plugin>;
|
|
540
|
+
};
|
|
392
541
|
node: {
|
|
393
542
|
name: string;
|
|
394
543
|
languageOptions: {
|
|
@@ -817,7 +966,7 @@ declare const _default: {
|
|
|
817
966
|
name: string;
|
|
818
967
|
message: string;
|
|
819
968
|
}, ...{
|
|
820
|
-
name: "self" | "location" | "
|
|
969
|
+
name: "self" | "location" | "length" | "find" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
|
|
821
970
|
message: string;
|
|
822
971
|
}[]];
|
|
823
972
|
'no-shadow': "error";
|