@bhsd/code-standard 1.3.0 → 1.3.1
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 +20 -2
- package/package.json +1 -1
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': [
|
|
@@ -617,6 +618,7 @@ export const ignores = {
|
|
|
617
618
|
'unicorn/prefer-array-some': 2,
|
|
618
619
|
'unicorn/prefer-bigint-literals': 2,
|
|
619
620
|
'unicorn/prefer-class-fields': 2,
|
|
621
|
+
'unicorn/prefer-classlist-toggle': 2,
|
|
620
622
|
'unicorn/prefer-code-point': 2,
|
|
621
623
|
'unicorn/prefer-default-parameters': 2,
|
|
622
624
|
'unicorn/prefer-global-this': 2,
|
|
@@ -899,7 +901,17 @@ export const ignores = {
|
|
|
899
901
|
allowAsThisParameter: true,
|
|
900
902
|
},
|
|
901
903
|
],
|
|
902
|
-
'@typescript-eslint/no-misused-spread':
|
|
904
|
+
'@typescript-eslint/no-misused-spread': [
|
|
905
|
+
2,
|
|
906
|
+
{
|
|
907
|
+
allow: [
|
|
908
|
+
{
|
|
909
|
+
from: 'lib',
|
|
910
|
+
name: 'string',
|
|
911
|
+
},
|
|
912
|
+
],
|
|
913
|
+
},
|
|
914
|
+
],
|
|
903
915
|
'@typescript-eslint/no-namespace': [
|
|
904
916
|
2,
|
|
905
917
|
{
|
|
@@ -907,6 +919,12 @@ export const ignores = {
|
|
|
907
919
|
},
|
|
908
920
|
],
|
|
909
921
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 2,
|
|
922
|
+
'@typescript-eslint/no-require-imports': [
|
|
923
|
+
2,
|
|
924
|
+
{
|
|
925
|
+
allow: [String.raw`.+\.json$`],
|
|
926
|
+
},
|
|
927
|
+
],
|
|
910
928
|
'@typescript-eslint/no-this-alias': [
|
|
911
929
|
2,
|
|
912
930
|
{
|
|
@@ -1003,7 +1021,7 @@ export const ignores = {
|
|
|
1003
1021
|
'n/no-unsupported-features/node-builtins': [
|
|
1004
1022
|
2,
|
|
1005
1023
|
{
|
|
1006
|
-
|
|
1024
|
+
allowExperimental: true,
|
|
1007
1025
|
},
|
|
1008
1026
|
],
|
|
1009
1027
|
},
|