@taiga-ui/eslint-plugin-experience-next 0.354.0 → 0.355.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/index.esm.js +62 -236
- package/package.json +5 -5
package/index.esm.js
CHANGED
|
@@ -224,7 +224,7 @@ try {
|
|
|
224
224
|
}
|
|
225
225
|
catch { }
|
|
226
226
|
const ALL_TS_JS_FILES = ['**/*.{js,mjs,ts,cjs,tsx,jsx}'];
|
|
227
|
-
var recommended = tseslint.config(
|
|
227
|
+
var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
228
228
|
ignores: [
|
|
229
229
|
'*/icons/all.ts',
|
|
230
230
|
'**/tests-report/**',
|
|
@@ -265,7 +265,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
265
265
|
'.git/**',
|
|
266
266
|
'.idea/**',
|
|
267
267
|
],
|
|
268
|
-
},
|
|
268
|
+
}, require('eslint-config-prettier'), {
|
|
269
269
|
files: ALL_TS_JS_FILES,
|
|
270
270
|
plugins: {
|
|
271
271
|
'@stylistic': stylistic,
|
|
@@ -279,9 +279,15 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
279
279
|
'unused-imports': unusedImports,
|
|
280
280
|
},
|
|
281
281
|
extends: [
|
|
282
|
+
require('eslint-plugin-de-morgan').configs.recommended,
|
|
283
|
+
require('eslint-plugin-import').flatConfigs.recommended,
|
|
284
|
+
require('eslint-plugin-import').flatConfigs.typescript,
|
|
285
|
+
require('eslint-plugin-promise').configs['flat/recommended'],
|
|
286
|
+
compat.configs['flat/recommended'],
|
|
282
287
|
eslint.configs.recommended,
|
|
283
|
-
|
|
284
|
-
|
|
288
|
+
eslint.configs.recommended,
|
|
289
|
+
tseslint.configs.all,
|
|
290
|
+
angular.configs.tsRecommended,
|
|
285
291
|
],
|
|
286
292
|
languageOptions: {
|
|
287
293
|
parserOptions: {
|
|
@@ -296,7 +302,9 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
296
302
|
},
|
|
297
303
|
processor: angular.processInlineTemplates,
|
|
298
304
|
rules: {
|
|
305
|
+
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
299
306
|
'@typescript-eslint/no-import-type-side-effects': 'off', // verbatimModuleSyntax should be false
|
|
307
|
+
'@typescript-eslint/no-invalid-void-type': 'off',
|
|
300
308
|
'no-void': ['error', { allowAsStatement: true }],
|
|
301
309
|
'sonarjs/no-identical-functions': 'error',
|
|
302
310
|
'@angular-eslint/consistent-component-styles': angularVersion >= modernAngularRules.modernStyles ? 'error' : 'off',
|
|
@@ -310,7 +318,12 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
310
318
|
'@angular-eslint/no-empty-lifecycle-method': 'error',
|
|
311
319
|
'@angular-eslint/no-experimental': 'error',
|
|
312
320
|
'@angular-eslint/no-input-prefix': 'error',
|
|
321
|
+
'@angular-eslint/no-input-rename': 'off',
|
|
322
|
+
'@angular-eslint/no-inputs-metadata-property': 'off',
|
|
323
|
+
'@angular-eslint/no-output-native': 'off',
|
|
313
324
|
'@angular-eslint/no-output-on-prefix': 'error',
|
|
325
|
+
'@angular-eslint/no-output-rename': 'off',
|
|
326
|
+
'@angular-eslint/no-outputs-metadata-property': 'off',
|
|
314
327
|
'@angular-eslint/no-queries-metadata-property': 'error',
|
|
315
328
|
'@angular-eslint/no-uncalled-signals': 'error',
|
|
316
329
|
'@angular-eslint/prefer-on-push-component-change-detection': 'error',
|
|
@@ -430,14 +443,17 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
430
443
|
decorators: ['Component', 'Directive', 'NgModule', 'Pipe'],
|
|
431
444
|
},
|
|
432
445
|
],
|
|
446
|
+
'@typescript-eslint/adjacent-overload-signatures': 'off',
|
|
433
447
|
'@typescript-eslint/array-type': [
|
|
434
448
|
'error',
|
|
435
449
|
{ default: 'array-simple', readonly: 'array-simple' },
|
|
436
450
|
],
|
|
437
451
|
'@typescript-eslint/await-thenable': 'error',
|
|
438
|
-
'@typescript-eslint/ban-ts-comment': '
|
|
452
|
+
'@typescript-eslint/ban-ts-comment': 'off',
|
|
453
|
+
'@typescript-eslint/class-methods-use-this': 'off',
|
|
439
454
|
'@typescript-eslint/consistent-generic-constructors': 'error',
|
|
440
455
|
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
|
456
|
+
'@typescript-eslint/consistent-return': 'off',
|
|
441
457
|
'@typescript-eslint/consistent-type-assertions': [
|
|
442
458
|
'error',
|
|
443
459
|
{
|
|
@@ -485,16 +501,21 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
485
501
|
accessibility: 'explicit',
|
|
486
502
|
},
|
|
487
503
|
],
|
|
504
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
505
|
+
'@typescript-eslint/init-declarations': 'off',
|
|
488
506
|
'@typescript-eslint/max-params': ['error', { countVoidThis: true, max: 5 }],
|
|
489
507
|
'@typescript-eslint/member-ordering': [
|
|
490
508
|
'error',
|
|
491
509
|
{ default: TUI_MEMBER_ORDERING_CONVENTION },
|
|
492
510
|
],
|
|
511
|
+
'@typescript-eslint/method-signature-style': ['error', 'method'],
|
|
493
512
|
'@typescript-eslint/naming-convention': [
|
|
494
513
|
'error',
|
|
495
514
|
...TUI_RECOMMENDED_NAMING_CONVENTION,
|
|
496
515
|
],
|
|
516
|
+
'@typescript-eslint/no-base-to-string': 'off',
|
|
497
517
|
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
|
518
|
+
'@typescript-eslint/no-deprecated': 'off',
|
|
498
519
|
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
499
520
|
'@typescript-eslint/no-duplicate-type-constituents': 'error',
|
|
500
521
|
'@typescript-eslint/no-empty-function': [
|
|
@@ -511,6 +532,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
511
532
|
},
|
|
512
533
|
],
|
|
513
534
|
'@typescript-eslint/no-empty-object-type': 'error',
|
|
535
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
514
536
|
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
515
537
|
'@typescript-eslint/no-extraneous-class': [
|
|
516
538
|
'error',
|
|
@@ -521,12 +543,18 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
521
543
|
allowWithDecorator: true,
|
|
522
544
|
},
|
|
523
545
|
],
|
|
546
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
524
547
|
'@typescript-eslint/no-for-in-array': 'error',
|
|
525
548
|
'@typescript-eslint/no-implied-eval': 'error',
|
|
526
549
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
550
|
+
'@typescript-eslint/no-magic-numbers': 'off',
|
|
551
|
+
'@typescript-eslint/no-misused-promises': 'off',
|
|
552
|
+
'@typescript-eslint/no-misused-spread': 'off',
|
|
527
553
|
'@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }],
|
|
528
554
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
529
555
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
556
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
557
|
+
'@typescript-eslint/no-require-imports': 'off',
|
|
530
558
|
'@typescript-eslint/no-restricted-types': [
|
|
531
559
|
'error',
|
|
532
560
|
{
|
|
@@ -558,14 +586,22 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
558
586
|
},
|
|
559
587
|
},
|
|
560
588
|
],
|
|
561
|
-
'@typescript-eslint/no-shadow': '
|
|
589
|
+
'@typescript-eslint/no-shadow': 'off',
|
|
562
590
|
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
|
563
591
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
564
592
|
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
593
|
+
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
|
565
594
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
566
595
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
567
596
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
597
|
+
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
598
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
599
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
600
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
568
601
|
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
602
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
603
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
604
|
+
'@typescript-eslint/no-unsafe-type-assertion': 'off',
|
|
569
605
|
'@typescript-eslint/no-unused-expressions': [
|
|
570
606
|
'error',
|
|
571
607
|
{
|
|
@@ -588,7 +624,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
588
624
|
},
|
|
589
625
|
],
|
|
590
626
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
591
|
-
'@typescript-eslint/no-var-requires': '
|
|
627
|
+
'@typescript-eslint/no-var-requires': 'off',
|
|
592
628
|
'@typescript-eslint/only-throw-error': 'error',
|
|
593
629
|
'@typescript-eslint/parameter-properties': [
|
|
594
630
|
'error',
|
|
@@ -597,12 +633,14 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
597
633
|
},
|
|
598
634
|
],
|
|
599
635
|
'@typescript-eslint/prefer-as-const': 'error',
|
|
636
|
+
'@typescript-eslint/prefer-destructuring': 'off',
|
|
600
637
|
'@typescript-eslint/prefer-find': 'error',
|
|
601
638
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
602
639
|
'@typescript-eslint/prefer-includes': 'error',
|
|
603
|
-
'@typescript-eslint/prefer-nullish-coalescing': '
|
|
640
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
604
641
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
605
642
|
'@typescript-eslint/prefer-readonly': ['error'],
|
|
643
|
+
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
|
606
644
|
'@typescript-eslint/prefer-regexp-exec': 'error',
|
|
607
645
|
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
608
646
|
'@typescript-eslint/promise-function-async': [
|
|
@@ -618,7 +656,9 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
618
656
|
'@typescript-eslint/require-array-sort-compare': 'error',
|
|
619
657
|
'@typescript-eslint/require-await': 'error',
|
|
620
658
|
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
659
|
+
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
621
660
|
'@typescript-eslint/sort-type-constituents': 'error',
|
|
661
|
+
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
622
662
|
'@typescript-eslint/switch-exhaustiveness-check': [
|
|
623
663
|
'error',
|
|
624
664
|
{
|
|
@@ -635,6 +675,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
635
675
|
types: 'always',
|
|
636
676
|
},
|
|
637
677
|
],
|
|
678
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
638
679
|
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
|
639
680
|
curly: ['error', 'all'],
|
|
640
681
|
'decorator-position/decorator-position': [
|
|
@@ -662,6 +703,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
662
703
|
'guard-for-in': 'error',
|
|
663
704
|
'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
|
|
664
705
|
'import/enforce-node-protocol-usage': ['error', 'always'],
|
|
706
|
+
'import/export': 'off',
|
|
665
707
|
'import/first': 'error',
|
|
666
708
|
'import/newline-after-import': ['error', { count: 1 }],
|
|
667
709
|
'import/no-absolute-path': 'error',
|
|
@@ -669,6 +711,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
669
711
|
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
670
712
|
'import/no-mutable-exports': 'error',
|
|
671
713
|
'import/no-self-import': 'error',
|
|
714
|
+
'import/no-unresolved': 'off',
|
|
672
715
|
'import/no-useless-path-segments': [
|
|
673
716
|
'error',
|
|
674
717
|
{
|
|
@@ -711,6 +754,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
711
754
|
'no-implicit-coercion': ['error', { allow: ['!!'] }],
|
|
712
755
|
'no-loop-func': 'error',
|
|
713
756
|
'no-nested-ternary': 'error',
|
|
757
|
+
'no-prototype-builtins': 'off',
|
|
714
758
|
'no-restricted-imports': [
|
|
715
759
|
'error',
|
|
716
760
|
{
|
|
@@ -862,7 +906,10 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
862
906
|
endOfLine: 'auto',
|
|
863
907
|
},
|
|
864
908
|
],
|
|
865
|
-
'promise/
|
|
909
|
+
'promise/always-return': 'off',
|
|
910
|
+
'promise/catch-or-return': 'off',
|
|
911
|
+
'promise/no-callback-in-promise': 'off',
|
|
912
|
+
'promise/no-nesting': 'off',
|
|
866
913
|
'promise/param-names': 'error',
|
|
867
914
|
'rxjs/no-compat': 'error',
|
|
868
915
|
'rxjs/no-connectable': 'error',
|
|
@@ -916,12 +963,10 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
916
963
|
}, {
|
|
917
964
|
files: ['**/*.html'],
|
|
918
965
|
extends: [
|
|
919
|
-
|
|
920
|
-
|
|
966
|
+
angular.configs.templateRecommended,
|
|
967
|
+
angular.configs.templateAccessibility,
|
|
921
968
|
],
|
|
922
969
|
rules: {
|
|
923
|
-
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
924
|
-
'@typescript-eslint/no-meaningless-void-operator': 'off',
|
|
925
970
|
'@angular-eslint/template/button-has-type': [
|
|
926
971
|
'error',
|
|
927
972
|
{
|
|
@@ -934,6 +979,7 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
934
979
|
],
|
|
935
980
|
},
|
|
936
981
|
],
|
|
982
|
+
'@angular-eslint/template/click-events-have-key-events': 'off',
|
|
937
983
|
'@angular-eslint/template/elements-content': [
|
|
938
984
|
'error',
|
|
939
985
|
{
|
|
@@ -964,60 +1010,11 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
964
1010
|
'@angular-eslint/template/prefer-control-flow': angularVersion >= modernAngularRules.preferControlFlow ? 'error' : 'off',
|
|
965
1011
|
'@angular-eslint/template/prefer-self-closing-tags': 'error',
|
|
966
1012
|
'@angular-eslint/template/prefer-template-literal': angularVersion >= modernAngularRules.templateLiteral ? 'error' : 'off',
|
|
967
|
-
'@typescript-eslint/await-thenable': 'off',
|
|
968
|
-
'@typescript-eslint/ban-ts-comment': 'off',
|
|
969
|
-
'@typescript-eslint/consistent-type-exports': 'off',
|
|
970
|
-
'@typescript-eslint/consistent-type-imports': 'off',
|
|
971
|
-
'@typescript-eslint/dot-notation': 'off',
|
|
972
|
-
'@typescript-eslint/naming-convention': 'off',
|
|
973
|
-
'@typescript-eslint/no-array-delete': 'off',
|
|
974
|
-
'@typescript-eslint/no-duplicate-type-constituents': 'off',
|
|
975
|
-
'@typescript-eslint/no-implied-eval': 'off',
|
|
976
|
-
'@typescript-eslint/no-misused-promises': 'off',
|
|
977
|
-
'@typescript-eslint/no-mixed-enums': 'off',
|
|
978
|
-
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
|
979
|
-
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
|
|
980
|
-
'@typescript-eslint/no-unnecessary-condition': 'off',
|
|
981
|
-
'@typescript-eslint/no-unnecessary-qualifier': 'off',
|
|
982
|
-
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
|
983
|
-
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
|
|
984
|
-
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
|
|
985
|
-
'@typescript-eslint/no-unnecessary-type-conversion': 'off', // https://github.com/taiga-family/taiga-ui/issues/11111
|
|
986
|
-
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
987
|
-
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
988
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
989
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
990
|
-
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
|
|
991
|
-
'@typescript-eslint/no-unsafe-type-assertion': 'off',
|
|
992
|
-
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
993
|
-
'@typescript-eslint/only-throw-error': 'off',
|
|
994
|
-
'@typescript-eslint/prefer-destructuring': 'off',
|
|
995
|
-
'@typescript-eslint/prefer-find': 'off',
|
|
996
|
-
'@typescript-eslint/prefer-includes': 'off',
|
|
997
|
-
'@typescript-eslint/prefer-optional-chain': 'off',
|
|
998
|
-
'@typescript-eslint/prefer-promise-reject-errors': 'off',
|
|
999
|
-
'@typescript-eslint/prefer-readonly': 'off',
|
|
1000
|
-
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
|
|
1001
|
-
'@typescript-eslint/prefer-regexp-exec': 'off',
|
|
1002
|
-
'@typescript-eslint/prefer-return-this-type': 'off',
|
|
1003
|
-
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
|
|
1004
|
-
'@typescript-eslint/promise-function-async': 'off',
|
|
1005
|
-
'@typescript-eslint/related-getter-setter-pairs': 'off',
|
|
1006
|
-
'@typescript-eslint/require-array-sort-compare': 'off',
|
|
1007
|
-
'@typescript-eslint/require-await': 'off',
|
|
1008
|
-
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
1009
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
1010
|
-
'@typescript-eslint/return-await': 'off',
|
|
1011
|
-
'@typescript-eslint/switch-exhaustiveness-check': 'off',
|
|
1012
|
-
'@typescript-eslint/unbound-method': 'off',
|
|
1013
|
-
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
|
|
1014
|
-
'import/namespace': 'off',
|
|
1015
1013
|
},
|
|
1016
1014
|
}, {
|
|
1017
1015
|
files: ['**/*.pw.spec.ts'],
|
|
1018
|
-
|
|
1016
|
+
extends: [playwright.configs['flat/recommended']],
|
|
1019
1017
|
rules: {
|
|
1020
|
-
...playwright.configs['flat/recommended'].rules,
|
|
1021
1018
|
'playwright/no-networkidle': 'off',
|
|
1022
1019
|
'compat/compat': 'off',
|
|
1023
1020
|
'jest/prefer-importing-jest-globals': 'off',
|
|
@@ -1034,9 +1031,8 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
1034
1031
|
},
|
|
1035
1032
|
}, {
|
|
1036
1033
|
files: ['**/*.spec.ts'],
|
|
1037
|
-
|
|
1034
|
+
extends: [jest.configs['flat/recommended']],
|
|
1038
1035
|
rules: {
|
|
1039
|
-
...jest.configs['flat/recommended'].rules,
|
|
1040
1036
|
'@typescript-eslint/no-extraneous-class': 'off',
|
|
1041
1037
|
'@typescript-eslint/no-shadow': 'off',
|
|
1042
1038
|
'compat/compat': 'off',
|
|
@@ -1119,180 +1115,9 @@ var recommended = tseslint.config(compat.configs['flat/recommended'], progress.c
|
|
|
1119
1115
|
plugins: { 'package-json': packageJson },
|
|
1120
1116
|
extends: [tseslint.configs.disableTypeChecked, configs.recommended],
|
|
1121
1117
|
rules: {
|
|
1122
|
-
'@typescript-eslint/consistent-type-imports': 'off',
|
|
1123
1118
|
'package-json/require-description': ['error', { ignorePrivate: true }],
|
|
1124
1119
|
'package-json/require-type': ['off', { ignorePrivate: true }],
|
|
1125
1120
|
},
|
|
1126
|
-
}, {
|
|
1127
|
-
files: ['**/*'],
|
|
1128
|
-
rules: {
|
|
1129
|
-
'@angular-eslint/use-injectable-provided-in': 'off',
|
|
1130
|
-
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
1131
|
-
'@typescript-eslint/no-invalid-this': 'off',
|
|
1132
|
-
'@typescript-eslint/no-invalid-void-type': 'off',
|
|
1133
|
-
'sonarjs/no-invalid-await': 'off',
|
|
1134
|
-
'@angular-eslint/component-class-suffix': 'off',
|
|
1135
|
-
'@angular-eslint/component-max-inline-declarations': 'off',
|
|
1136
|
-
'@angular-eslint/component-selector': 'off',
|
|
1137
|
-
'@angular-eslint/directive-class-suffix': 'off',
|
|
1138
|
-
'@angular-eslint/no-forward-ref': 'off',
|
|
1139
|
-
'@angular-eslint/no-host-metadata-property': 'off',
|
|
1140
|
-
'@angular-eslint/no-input-rename': 'off',
|
|
1141
|
-
'@angular-eslint/no-inputs-metadata-property': 'off',
|
|
1142
|
-
'@angular-eslint/no-lifecycle-call': 'off',
|
|
1143
|
-
'@angular-eslint/no-output-native': 'off',
|
|
1144
|
-
'@angular-eslint/no-output-rename': 'off',
|
|
1145
|
-
'@angular-eslint/no-outputs-metadata-property': 'off',
|
|
1146
|
-
'@angular-eslint/no-pipe-impure': 'off',
|
|
1147
|
-
'@angular-eslint/prefer-inject': 'off', // https://github.com/angular-eslint/angular-eslint/issues/2539
|
|
1148
|
-
'@angular-eslint/sort-ngmodule-metadata-arrays': 'off',
|
|
1149
|
-
'@angular-eslint/template/click-events-have-key-events': 'off',
|
|
1150
|
-
'@angular-eslint/use-component-selector': 'off',
|
|
1151
|
-
'@angular-eslint/use-component-view-encapsulation': 'off',
|
|
1152
|
-
'@typescript-eslint/adjacent-overload-signatures': 'off',
|
|
1153
|
-
'@typescript-eslint/ban-ts-comment': 'off',
|
|
1154
|
-
'@typescript-eslint/class-literal-property-style': 'off',
|
|
1155
|
-
'@typescript-eslint/class-methods-use-this': 'off',
|
|
1156
|
-
'@typescript-eslint/consistent-return': 'off',
|
|
1157
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
1158
|
-
'@typescript-eslint/init-declarations': 'off',
|
|
1159
|
-
'@typescript-eslint/method-signature-style': 'off',
|
|
1160
|
-
'@typescript-eslint/no-base-to-string': 'off',
|
|
1161
|
-
'@typescript-eslint/no-deprecated': 'off',
|
|
1162
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
1163
|
-
'@typescript-eslint/no-floating-promises': 'off',
|
|
1164
|
-
'@typescript-eslint/no-magic-numbers': 'off',
|
|
1165
|
-
'@typescript-eslint/no-misused-promises': 'off',
|
|
1166
|
-
'@typescript-eslint/no-misused-spread': 'off',
|
|
1167
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
1168
|
-
'@typescript-eslint/no-require-imports': 'off',
|
|
1169
|
-
'@typescript-eslint/no-shadow': 'off',
|
|
1170
|
-
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
|
1171
|
-
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
1172
|
-
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
1173
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
1174
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
1175
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
1176
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
1177
|
-
'@typescript-eslint/no-unsafe-type-assertion': 'off',
|
|
1178
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
1179
|
-
'@typescript-eslint/prefer-destructuring': 'off',
|
|
1180
|
-
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
1181
|
-
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
|
1182
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
1183
|
-
'@typescript-eslint/strict-boolean-expressions': 'off', // @see https://github.com/taiga-family/toolkit/issues/1181
|
|
1184
|
-
'@typescript-eslint/unbound-method': 'off',
|
|
1185
|
-
camelcase: 'off',
|
|
1186
|
-
'class-methods-use-this': 'off',
|
|
1187
|
-
complexity: 'off',
|
|
1188
|
-
'consistent-return': 'off',
|
|
1189
|
-
'default-case': 'off',
|
|
1190
|
-
'default-case-last': 'off',
|
|
1191
|
-
'default-param-last': 'off',
|
|
1192
|
-
'dot-notation': 'off',
|
|
1193
|
-
'eslint-comments/disable-enable-pair': 'off',
|
|
1194
|
-
'eslint-comments/no-unlimited-disable': 'off',
|
|
1195
|
-
'func-name-matching': 'off',
|
|
1196
|
-
'func-names': 'off',
|
|
1197
|
-
'global-require': 'off',
|
|
1198
|
-
'grouped-accessor-pairs': 'off',
|
|
1199
|
-
'import/export': 'off',
|
|
1200
|
-
'import/exports-last': 'off',
|
|
1201
|
-
'import/extensions': 'off',
|
|
1202
|
-
'import/no-default-export': 'off',
|
|
1203
|
-
'import/no-deprecated': 'off',
|
|
1204
|
-
'import/no-dynamic-require': 'off',
|
|
1205
|
-
'import/no-extraneous-dependencies': 'off',
|
|
1206
|
-
'import/no-relative-packages': 'off',
|
|
1207
|
-
'import/no-unresolved': 'off',
|
|
1208
|
-
'import/prefer-default-export': 'off',
|
|
1209
|
-
'lines-between-class-members': 'off',
|
|
1210
|
-
'max-classes-per-file': 'off',
|
|
1211
|
-
'max-statements': 'off',
|
|
1212
|
-
'no-await-in-loop': 'off',
|
|
1213
|
-
'no-bitwise': 'off',
|
|
1214
|
-
'no-constant-binary-expression': 'off',
|
|
1215
|
-
'no-constructor-return': 'off',
|
|
1216
|
-
'no-continue': 'off',
|
|
1217
|
-
'no-dupe-class-members': 'off',
|
|
1218
|
-
'no-duplicate-imports': 'off',
|
|
1219
|
-
'no-empty-function': 'off',
|
|
1220
|
-
'no-irregular-whitespace': 'off',
|
|
1221
|
-
'no-param-reassign': 'off',
|
|
1222
|
-
'no-plusplus': 'off',
|
|
1223
|
-
'no-prototype-builtins': 'off',
|
|
1224
|
-
'no-redeclare': 'off',
|
|
1225
|
-
'no-shadow': 'off',
|
|
1226
|
-
'no-undef': 'off',
|
|
1227
|
-
'no-underscore-dangle': 'off',
|
|
1228
|
-
'no-unused-expressions': 'off',
|
|
1229
|
-
'no-unused-vars': 'off',
|
|
1230
|
-
'no-use-before-define': 'off',
|
|
1231
|
-
'no-useless-constructor': 'off',
|
|
1232
|
-
'padding-line-between-statements': 'off',
|
|
1233
|
-
'prefer-destructuring': 'off',
|
|
1234
|
-
'promise/always-return': 'off',
|
|
1235
|
-
'promise/catch-or-return': 'off',
|
|
1236
|
-
'promise/no-callback-in-promise': 'off',
|
|
1237
|
-
'promise/no-nesting': 'off',
|
|
1238
|
-
quotes: 'off',
|
|
1239
|
-
'react/no-is-mounted': 'off',
|
|
1240
|
-
'require-await': 'off',
|
|
1241
|
-
'rxjs/no-ignored-takewhile-value': 'off',
|
|
1242
|
-
'rxjs/no-unsafe-takeuntil': 'off',
|
|
1243
|
-
'sonarjs/aws-apigateway-public-api': 'off',
|
|
1244
|
-
'sonarjs/aws-ec2-rds-dms-public': 'off',
|
|
1245
|
-
'sonarjs/aws-ec2-unencrypted-ebs-volume': 'off',
|
|
1246
|
-
'sonarjs/aws-efs-unencrypted': 'off',
|
|
1247
|
-
'sonarjs/aws-iam-all-privileges': 'off',
|
|
1248
|
-
'sonarjs/aws-iam-all-resources-accessible': 'off',
|
|
1249
|
-
'sonarjs/aws-iam-privilege-escalation': 'off',
|
|
1250
|
-
'sonarjs/aws-iam-public-access': 'off',
|
|
1251
|
-
'sonarjs/aws-opensearchservice-domain': 'off',
|
|
1252
|
-
'sonarjs/aws-rds-unencrypted-databases': 'off',
|
|
1253
|
-
'sonarjs/aws-restricted-ip-admin-access': 'off',
|
|
1254
|
-
'sonarjs/aws-s3-bucket-granted-access': 'off',
|
|
1255
|
-
'sonarjs/aws-s3-bucket-insecure-http': 'off',
|
|
1256
|
-
'sonarjs/aws-s3-bucket-public-access': 'off',
|
|
1257
|
-
'sonarjs/aws-s3-bucket-server-encryption': 'off',
|
|
1258
|
-
'sonarjs/aws-s3-bucket-versioning': 'off',
|
|
1259
|
-
'sonarjs/aws-sagemaker-unencrypted-notebook': 'off',
|
|
1260
|
-
'sonarjs/aws-sns-unencrypted-topics': 'off',
|
|
1261
|
-
'sonarjs/aws-sqs-unencrypted-queue': 'off',
|
|
1262
|
-
'sonarjs/cognitive-complexity': 'off',
|
|
1263
|
-
'sonarjs/deprecation': 'off',
|
|
1264
|
-
'sonarjs/different-types-comparison': 'off',
|
|
1265
|
-
'sonarjs/duplicates-in-character-class': 'off',
|
|
1266
|
-
'sonarjs/function-return-type': 'off',
|
|
1267
|
-
'sonarjs/max-switch-cases': 'off',
|
|
1268
|
-
'sonarjs/new-cap': 'off',
|
|
1269
|
-
'sonarjs/no-angular-bypass-sanitization': 'off',
|
|
1270
|
-
'sonarjs/no-async-constructor': 'off',
|
|
1271
|
-
'sonarjs/no-commented-code': 'off',
|
|
1272
|
-
'sonarjs/no-duplicate-string': 'off',
|
|
1273
|
-
'sonarjs/no-empty-function': 'off',
|
|
1274
|
-
'sonarjs/no-misleading-array-reverse': 'off',
|
|
1275
|
-
'sonarjs/no-misused-promises': 'off',
|
|
1276
|
-
'sonarjs/no-nested-conditional': 'off',
|
|
1277
|
-
'sonarjs/no-nested-functions': 'off',
|
|
1278
|
-
'sonarjs/no-nested-template-literals': 'off',
|
|
1279
|
-
'sonarjs/no-os-command-from-path': 'off',
|
|
1280
|
-
'sonarjs/no-selector-parameter': 'off',
|
|
1281
|
-
'sonarjs/no-skipped-test': 'off',
|
|
1282
|
-
'sonarjs/no-unused-expressions': 'off',
|
|
1283
|
-
'sonarjs/os-command': 'off',
|
|
1284
|
-
'sonarjs/prefer-function-type': 'off',
|
|
1285
|
-
'sonarjs/pseudo-random': 'off',
|
|
1286
|
-
'sonarjs/public-static-readonly': 'off',
|
|
1287
|
-
'sonarjs/slow-regex': 'off',
|
|
1288
|
-
'sonarjs/sonar-prefer-regexp-exec': 'off',
|
|
1289
|
-
'sonarjs/todo-tag': 'off',
|
|
1290
|
-
'sonarjs/use-type-alias': 'off',
|
|
1291
|
-
'sonarjs/x-powered-by': 'off',
|
|
1292
|
-
'unicorn/consistent-destructuring': 'off',
|
|
1293
|
-
'unicorn/no-anonymous-default-export': 'off',
|
|
1294
|
-
'unicorn/no-unsafe-regex': 'off',
|
|
1295
|
-
},
|
|
1296
1121
|
});
|
|
1297
1122
|
function projectJsonExist(filename) {
|
|
1298
1123
|
try {
|
|
@@ -1434,6 +1259,7 @@ const config$5 = {
|
|
|
1434
1259
|
},
|
|
1435
1260
|
};
|
|
1436
1261
|
|
|
1262
|
+
/* eslint-disable no-bitwise */
|
|
1437
1263
|
function getFieldTypes(type, checker) {
|
|
1438
1264
|
const typeNames = [];
|
|
1439
1265
|
if (type.isUnionOrIntersection()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/eslint-plugin-experience-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.355.0",
|
|
4
4
|
"description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@eslint/compat": "^1.4.1",
|
|
13
|
-
"@html-eslint/eslint-plugin": "^0.47.
|
|
14
|
-
"@html-eslint/parser": "^0.47.
|
|
13
|
+
"@html-eslint/eslint-plugin": "^0.47.1",
|
|
14
|
+
"@html-eslint/parser": "^0.47.1",
|
|
15
15
|
"@smarttools/eslint-plugin-rxjs": "^1.0.22",
|
|
16
16
|
"@stylistic/eslint-plugin": "^5.5.0",
|
|
17
17
|
"@types/glob": "*",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"eslint-plugin-file-progress": "^3.0.2",
|
|
25
25
|
"eslint-plugin-import": "^2.32.0",
|
|
26
26
|
"eslint-plugin-jest": "^29.0.1",
|
|
27
|
-
"eslint-plugin-package-json": "^0.
|
|
27
|
+
"eslint-plugin-package-json": "^0.64.0",
|
|
28
28
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
29
|
-
"eslint-plugin-playwright": "^2.
|
|
29
|
+
"eslint-plugin-playwright": "^2.3.0",
|
|
30
30
|
"eslint-plugin-prettier": "^5.5.4",
|
|
31
31
|
"eslint-plugin-promise": "^7.2.1",
|
|
32
32
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|