@bhsd/code-standard 1.3.0 → 1.3.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/eslint.mjs +21 -8
- package/package.json +1 -1
- package/stylelintrc.cjs +1 -0
package/eslint.mjs
CHANGED
|
@@ -441,6 +441,7 @@ export const ignores = {
|
|
|
441
441
|
2,
|
|
442
442
|
{
|
|
443
443
|
code: 120,
|
|
444
|
+
ignoreRegExpLiterals: true,
|
|
444
445
|
},
|
|
445
446
|
],
|
|
446
447
|
'@stylistic/multiline-comment-style': [
|
|
@@ -593,12 +594,7 @@ export const ignores = {
|
|
|
593
594
|
'unicorn/no-single-promise-in-promise-methods': 2,
|
|
594
595
|
'unicorn/no-static-only-class': 2,
|
|
595
596
|
'unicorn/no-this-assignment': 2,
|
|
596
|
-
'unicorn/no-typeof-undefined':
|
|
597
|
-
2,
|
|
598
|
-
{
|
|
599
|
-
checkGlobalVariables: true,
|
|
600
|
-
},
|
|
601
|
-
],
|
|
597
|
+
'unicorn/no-typeof-undefined': 2,
|
|
602
598
|
'unicorn/no-unnecessary-array-flat-depth': 2,
|
|
603
599
|
'unicorn/no-unnecessary-array-splice-count': 2,
|
|
604
600
|
'unicorn/no-unreadable-iife': 2,
|
|
@@ -617,6 +613,7 @@ export const ignores = {
|
|
|
617
613
|
'unicorn/prefer-array-some': 2,
|
|
618
614
|
'unicorn/prefer-bigint-literals': 2,
|
|
619
615
|
'unicorn/prefer-class-fields': 2,
|
|
616
|
+
'unicorn/prefer-classlist-toggle': 2,
|
|
620
617
|
'unicorn/prefer-code-point': 2,
|
|
621
618
|
'unicorn/prefer-default-parameters': 2,
|
|
622
619
|
'unicorn/prefer-global-this': 2,
|
|
@@ -899,7 +896,17 @@ export const ignores = {
|
|
|
899
896
|
allowAsThisParameter: true,
|
|
900
897
|
},
|
|
901
898
|
],
|
|
902
|
-
'@typescript-eslint/no-misused-spread':
|
|
899
|
+
'@typescript-eslint/no-misused-spread': [
|
|
900
|
+
2,
|
|
901
|
+
{
|
|
902
|
+
allow: [
|
|
903
|
+
{
|
|
904
|
+
from: 'lib',
|
|
905
|
+
name: 'string',
|
|
906
|
+
},
|
|
907
|
+
],
|
|
908
|
+
},
|
|
909
|
+
],
|
|
903
910
|
'@typescript-eslint/no-namespace': [
|
|
904
911
|
2,
|
|
905
912
|
{
|
|
@@ -907,6 +914,12 @@ export const ignores = {
|
|
|
907
914
|
},
|
|
908
915
|
],
|
|
909
916
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 2,
|
|
917
|
+
'@typescript-eslint/no-require-imports': [
|
|
918
|
+
2,
|
|
919
|
+
{
|
|
920
|
+
allow: [String.raw`.+\.json$`],
|
|
921
|
+
},
|
|
922
|
+
],
|
|
910
923
|
'@typescript-eslint/no-this-alias': [
|
|
911
924
|
2,
|
|
912
925
|
{
|
|
@@ -1003,7 +1016,7 @@ export const ignores = {
|
|
|
1003
1016
|
'n/no-unsupported-features/node-builtins': [
|
|
1004
1017
|
2,
|
|
1005
1018
|
{
|
|
1006
|
-
|
|
1019
|
+
allowExperimental: true,
|
|
1007
1020
|
},
|
|
1008
1021
|
],
|
|
1009
1022
|
},
|
package/package.json
CHANGED