@eslinted/defaults 19.4.2 → 19.5.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/dist/index.d.ts +1 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/html/index.d.ts +1 -2
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js +1 -2
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +1 -31
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/json/index.d.ts +0 -29
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/index.js +1 -3
- package/dist/rules/json/index.js.map +1 -1
- package/dist/rules/json/{plugin/extend.d.ts → jsonc.d.ts} +3 -11
- package/dist/rules/json/jsonc.d.ts.map +1 -0
- package/dist/rules/json/{plugin/extend.js → jsonc.js} +2 -10
- package/dist/rules/json/jsonc.js.map +1 -0
- package/package.json +1 -1
- package/src/rules/html/index.ts +2 -2
- package/src/rules/json/index.ts +1 -3
- package/src/rules/json/jsonc.ts +73 -0
- package/dist/rules/json/plugin/extend.d.ts.map +0 -1
- package/dist/rules/json/plugin/extend.js.map +0 -1
- package/dist/rules/json/plugin/index.d.ts +0 -25
- package/dist/rules/json/plugin/index.d.ts.map +0 -1
- package/dist/rules/json/plugin/index.js +0 -23
- package/dist/rules/json/plugin/index.js.map +0 -1
- package/src/rules/json/plugin/extend.ts +0 -50
- package/src/rules/json/plugin/index.ts +0 -30
package/dist/index.d.ts
CHANGED
|
@@ -937,7 +937,7 @@ declare const _default: {
|
|
|
937
937
|
readonly "html/no-duplicate-id": import("./rules/state.js").State.WARN;
|
|
938
938
|
readonly "html/no-duplicate-in-head": import("./rules/state.js").State.WARN;
|
|
939
939
|
readonly "html/no-ineffective-attrs": import("./rules/state.js").State.WARN;
|
|
940
|
-
readonly "html/no-invalid-entity": import("./rules/state.js").State.
|
|
940
|
+
readonly "html/no-invalid-entity": import("./rules/state.js").State.ON;
|
|
941
941
|
readonly "html/no-nested-interactive": import("./rules/state.js").State.WARN;
|
|
942
942
|
readonly "html/no-obsolete-tags": import("./rules/state.js").State.WARN;
|
|
943
943
|
readonly "html/no-target-blank": import("./rules/state.js").State.WARN;
|
|
@@ -959,7 +959,6 @@ declare const _default: {
|
|
|
959
959
|
readonly "html/no-invalid-role": import("./rules/state.js").State.WARN;
|
|
960
960
|
readonly "html/no-non-scalable-viewport": import("./rules/state.js").State.WARN;
|
|
961
961
|
readonly "html/no-positive-tabindex": import("./rules/state.js").State.WARN;
|
|
962
|
-
readonly "html/no-skip-heading-levels": import("./rules/state.js").State.WARN;
|
|
963
962
|
readonly "html/require-form-method": import("./rules/state.js").State.WARN;
|
|
964
963
|
readonly "html/require-frame-title": import("./rules/state.js").State.WARN;
|
|
965
964
|
readonly "html/require-img-alt": import("./rules/state.js").State.WARN;
|
|
@@ -992,27 +991,7 @@ declare const _default: {
|
|
|
992
991
|
};
|
|
993
992
|
} | {
|
|
994
993
|
rules: {
|
|
995
|
-
readonly "jsonc/no-bigint-literals": import("./rules/state.js").State.ON;
|
|
996
|
-
readonly "jsonc/no-binary-expression": import("./rules/state.js").State.ON;
|
|
997
|
-
readonly "jsonc/no-binary-numeric-literals": import("./rules/state.js").State.ON;
|
|
998
994
|
readonly "jsonc/no-comments": import("./rules/state.js").State.ON;
|
|
999
|
-
readonly "jsonc/no-escape-sequence-in-identifier": import("./rules/state.js").State.ON;
|
|
1000
|
-
readonly "jsonc/no-hexadecimal-numeric-literals": import("./rules/state.js").State.ON;
|
|
1001
|
-
readonly "jsonc/no-infinity": import("./rules/state.js").State.ON;
|
|
1002
|
-
readonly "jsonc/no-nan": import("./rules/state.js").State.ON;
|
|
1003
|
-
readonly "jsonc/no-number-props": import("./rules/state.js").State.ON;
|
|
1004
|
-
readonly "jsonc/no-numeric-separators": import("./rules/state.js").State.ON;
|
|
1005
|
-
readonly "jsonc/no-octal-numeric-literals": import("./rules/state.js").State.ON;
|
|
1006
|
-
readonly "jsonc/no-parenthesized": import("./rules/state.js").State.ON;
|
|
1007
|
-
readonly "jsonc/no-plus-sign": import("./rules/state.js").State.ON;
|
|
1008
|
-
readonly "jsonc/no-regexp-literals": import("./rules/state.js").State.ON;
|
|
1009
|
-
readonly "jsonc/no-template-literals": import("./rules/state.js").State.ON;
|
|
1010
|
-
readonly "jsonc/no-undefined-value": import("./rules/state.js").State.ON;
|
|
1011
|
-
readonly "jsonc/no-unicode-codepoint-escapes": import("./rules/state.js").State.ON;
|
|
1012
|
-
readonly "jsonc/valid-json-number": import("./rules/state.js").State.ON;
|
|
1013
|
-
};
|
|
1014
|
-
} | {
|
|
1015
|
-
rules: {
|
|
1016
995
|
readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.WARN;
|
|
1017
996
|
readonly "jsonc/array-element-newline": readonly [
|
|
1018
997
|
import("./rules/state.js").State.WARN,
|
|
@@ -1025,7 +1004,6 @@ declare const _default: {
|
|
|
1025
1004
|
2
|
|
1026
1005
|
];
|
|
1027
1006
|
readonly "jsonc/key-spacing": import("./rules/state.js").State.WARN;
|
|
1028
|
-
readonly "jsonc/no-floating-decimal": import("./rules/state.js").State.ON;
|
|
1029
1007
|
readonly "jsonc/no-irregular-whitespace": readonly [
|
|
1030
1008
|
import("./rules/state.js").State.ON,
|
|
1031
1009
|
{
|
|
@@ -1033,11 +1011,6 @@ declare const _default: {
|
|
|
1033
1011
|
readonly skipComments: true;
|
|
1034
1012
|
}
|
|
1035
1013
|
];
|
|
1036
|
-
readonly "jsonc/no-multi-str": import("./rules/state.js").State.ON;
|
|
1037
|
-
readonly "jsonc/no-octal-escape": import("./rules/state.js").State.ON;
|
|
1038
|
-
readonly "jsonc/no-octal": import("./rules/state.js").State.ON;
|
|
1039
|
-
readonly "jsonc/no-sparse-arrays": import("./rules/state.js").State.ON;
|
|
1040
|
-
readonly "jsonc/no-useless-escape": import("./rules/state.js").State.ON;
|
|
1041
1014
|
readonly "jsonc/object-curly-newline": readonly [
|
|
1042
1015
|
import("./rules/state.js").State.WARN,
|
|
1043
1016
|
{
|
|
@@ -1051,9 +1024,6 @@ declare const _default: {
|
|
|
1051
1024
|
"always"
|
|
1052
1025
|
];
|
|
1053
1026
|
readonly "jsonc/object-property-newline": import("./rules/state.js").State.WARN;
|
|
1054
|
-
readonly "jsonc/quote-props": import("./rules/state.js").State.ON;
|
|
1055
|
-
readonly "jsonc/quotes": import("./rules/state.js").State.ON;
|
|
1056
|
-
readonly "jsonc/space-unary-ops": import("./rules/state.js").State.ON;
|
|
1057
1027
|
};
|
|
1058
1028
|
})[];
|
|
1059
1029
|
jsonc: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
readonly "html/no-duplicate-id": State.WARN;
|
|
8
8
|
readonly "html/no-duplicate-in-head": State.WARN;
|
|
9
9
|
readonly "html/no-ineffective-attrs": State.WARN;
|
|
10
|
-
readonly "html/no-invalid-entity": State.
|
|
10
|
+
readonly "html/no-invalid-entity": State.ON;
|
|
11
11
|
readonly "html/no-nested-interactive": State.WARN;
|
|
12
12
|
readonly "html/no-obsolete-tags": State.WARN;
|
|
13
13
|
readonly "html/no-target-blank": State.WARN;
|
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
readonly "html/no-invalid-role": State.WARN;
|
|
30
30
|
readonly "html/no-non-scalable-viewport": State.WARN;
|
|
31
31
|
readonly "html/no-positive-tabindex": State.WARN;
|
|
32
|
-
readonly "html/no-skip-heading-levels": State.WARN;
|
|
33
32
|
readonly "html/require-form-method": State.WARN;
|
|
34
33
|
readonly "html/require-frame-title": State.WARN;
|
|
35
34
|
readonly "html/require-img-alt": State.WARN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBA6EE"}
|
package/dist/rules/html/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export default [
|
|
|
7
7
|
"html/no-duplicate-id": 1,
|
|
8
8
|
"html/no-duplicate-in-head": 1,
|
|
9
9
|
"html/no-ineffective-attrs": 1,
|
|
10
|
-
"html/no-invalid-entity":
|
|
10
|
+
"html/no-invalid-entity": 2,
|
|
11
11
|
"html/no-nested-interactive": 1,
|
|
12
12
|
"html/no-obsolete-tags": 1,
|
|
13
13
|
"html/no-target-blank": 1,
|
|
@@ -29,7 +29,6 @@ export default [
|
|
|
29
29
|
"html/no-invalid-role": 1,
|
|
30
30
|
"html/no-non-scalable-viewport": 1,
|
|
31
31
|
"html/no-positive-tabindex": 1,
|
|
32
|
-
"html/no-skip-heading-levels": 1,
|
|
33
32
|
"html/require-form-method": 1,
|
|
34
33
|
"html/require-frame-title": 1,
|
|
35
34
|
"html/require-img-alt": 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAGL,0BAA0B,GAAY;YAEtC,yBAAyB,GAAY;YACrC,yBAAyB,GAAY;YACrC,sBAAsB,GAAY;YAClC,2BAA2B,GAAY;YACvC,2BAA2B,GAAY;YAEvC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAGL,0BAA0B,GAAY;YAEtC,yBAAyB,GAAY;YACrC,yBAAyB,GAAY;YACrC,sBAAsB,GAAY;YAClC,2BAA2B,GAAY;YACvC,2BAA2B,GAAY;YAEvC,wBAAwB,GAAU;YAClC,4BAA4B,GAAY;YACxC,uBAAuB,GAAY;YAKnC,sBAAsB,GAAY;YAClC,kCAAkC,GAAY;YAG9C,0BAA0B,GAAY;YACtC,2BAA2B,GAAY;YACvC,sBAAsB,GAAY;YAElC,2BAA2B,GAAY;YACvC,2BAA2B,GAAY;YACvC,mBAAmB,GAAY;YAK/B,qBAAqB,GAAY;YACjC,mBAAmB,GAAY;YAQ/B,wBAAwB,GAAY;YACpC,yBAAyB,GAAY;YACrC,0BAA0B,GAAY;YACtC,kCAAkC,GAAY;YAC9C,wBAAwB,GAAY;YACpC,+BAA+B,GAAY;YAC3C,sBAAsB,GAAY;YAClC,+BAA+B,GAAY;YAC3C,2BAA2B,GAAY;YAEvC,0BAA0B,GAAY;YACtC,0BAA0B,GAAY;YACtC,sBAAsB,GAAY;YAClC,0BAA0B,GAAY;YACtC,4BAA4B,GAAY;SAiBhC;KACX;CACF,CAAC"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -920,7 +920,7 @@ declare const _default: {
|
|
|
920
920
|
readonly "html/no-duplicate-id": import("./state.js").State.WARN;
|
|
921
921
|
readonly "html/no-duplicate-in-head": import("./state.js").State.WARN;
|
|
922
922
|
readonly "html/no-ineffective-attrs": import("./state.js").State.WARN;
|
|
923
|
-
readonly "html/no-invalid-entity": import("./state.js").State.
|
|
923
|
+
readonly "html/no-invalid-entity": import("./state.js").State.ON;
|
|
924
924
|
readonly "html/no-nested-interactive": import("./state.js").State.WARN;
|
|
925
925
|
readonly "html/no-obsolete-tags": import("./state.js").State.WARN;
|
|
926
926
|
readonly "html/no-target-blank": import("./state.js").State.WARN;
|
|
@@ -942,7 +942,6 @@ declare const _default: {
|
|
|
942
942
|
readonly "html/no-invalid-role": import("./state.js").State.WARN;
|
|
943
943
|
readonly "html/no-non-scalable-viewport": import("./state.js").State.WARN;
|
|
944
944
|
readonly "html/no-positive-tabindex": import("./state.js").State.WARN;
|
|
945
|
-
readonly "html/no-skip-heading-levels": import("./state.js").State.WARN;
|
|
946
945
|
readonly "html/require-form-method": import("./state.js").State.WARN;
|
|
947
946
|
readonly "html/require-frame-title": import("./state.js").State.WARN;
|
|
948
947
|
readonly "html/require-img-alt": import("./state.js").State.WARN;
|
|
@@ -975,27 +974,7 @@ declare const _default: {
|
|
|
975
974
|
};
|
|
976
975
|
} | {
|
|
977
976
|
rules: {
|
|
978
|
-
readonly "jsonc/no-bigint-literals": import("./state.js").State.ON;
|
|
979
|
-
readonly "jsonc/no-binary-expression": import("./state.js").State.ON;
|
|
980
|
-
readonly "jsonc/no-binary-numeric-literals": import("./state.js").State.ON;
|
|
981
977
|
readonly "jsonc/no-comments": import("./state.js").State.ON;
|
|
982
|
-
readonly "jsonc/no-escape-sequence-in-identifier": import("./state.js").State.ON;
|
|
983
|
-
readonly "jsonc/no-hexadecimal-numeric-literals": import("./state.js").State.ON;
|
|
984
|
-
readonly "jsonc/no-infinity": import("./state.js").State.ON;
|
|
985
|
-
readonly "jsonc/no-nan": import("./state.js").State.ON;
|
|
986
|
-
readonly "jsonc/no-number-props": import("./state.js").State.ON;
|
|
987
|
-
readonly "jsonc/no-numeric-separators": import("./state.js").State.ON;
|
|
988
|
-
readonly "jsonc/no-octal-numeric-literals": import("./state.js").State.ON;
|
|
989
|
-
readonly "jsonc/no-parenthesized": import("./state.js").State.ON;
|
|
990
|
-
readonly "jsonc/no-plus-sign": import("./state.js").State.ON;
|
|
991
|
-
readonly "jsonc/no-regexp-literals": import("./state.js").State.ON;
|
|
992
|
-
readonly "jsonc/no-template-literals": import("./state.js").State.ON;
|
|
993
|
-
readonly "jsonc/no-undefined-value": import("./state.js").State.ON;
|
|
994
|
-
readonly "jsonc/no-unicode-codepoint-escapes": import("./state.js").State.ON;
|
|
995
|
-
readonly "jsonc/valid-json-number": import("./state.js").State.ON;
|
|
996
|
-
};
|
|
997
|
-
} | {
|
|
998
|
-
rules: {
|
|
999
978
|
readonly "jsonc/array-bracket-spacing": import("./state.js").State.WARN;
|
|
1000
979
|
readonly "jsonc/array-element-newline": readonly [
|
|
1001
980
|
import("./state.js").State.WARN,
|
|
@@ -1008,7 +987,6 @@ declare const _default: {
|
|
|
1008
987
|
2
|
|
1009
988
|
];
|
|
1010
989
|
readonly "jsonc/key-spacing": import("./state.js").State.WARN;
|
|
1011
|
-
readonly "jsonc/no-floating-decimal": import("./state.js").State.ON;
|
|
1012
990
|
readonly "jsonc/no-irregular-whitespace": readonly [
|
|
1013
991
|
import("./state.js").State.ON,
|
|
1014
992
|
{
|
|
@@ -1016,11 +994,6 @@ declare const _default: {
|
|
|
1016
994
|
readonly skipComments: true;
|
|
1017
995
|
}
|
|
1018
996
|
];
|
|
1019
|
-
readonly "jsonc/no-multi-str": import("./state.js").State.ON;
|
|
1020
|
-
readonly "jsonc/no-octal-escape": import("./state.js").State.ON;
|
|
1021
|
-
readonly "jsonc/no-octal": import("./state.js").State.ON;
|
|
1022
|
-
readonly "jsonc/no-sparse-arrays": import("./state.js").State.ON;
|
|
1023
|
-
readonly "jsonc/no-useless-escape": import("./state.js").State.ON;
|
|
1024
997
|
readonly "jsonc/object-curly-newline": readonly [
|
|
1025
998
|
import("./state.js").State.WARN,
|
|
1026
999
|
{
|
|
@@ -1034,9 +1007,6 @@ declare const _default: {
|
|
|
1034
1007
|
"always"
|
|
1035
1008
|
];
|
|
1036
1009
|
readonly "jsonc/object-property-newline": import("./state.js").State.WARN;
|
|
1037
|
-
readonly "jsonc/quote-props": import("./state.js").State.ON;
|
|
1038
|
-
readonly "jsonc/quotes": import("./state.js").State.ON;
|
|
1039
|
-
readonly "jsonc/space-unary-ops": import("./state.js").State.ON;
|
|
1040
1010
|
};
|
|
1041
1011
|
})[];
|
|
1042
1012
|
jsonc: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBAYE"}
|
|
@@ -7,27 +7,7 @@ declare const _default: ({
|
|
|
7
7
|
};
|
|
8
8
|
} | {
|
|
9
9
|
rules: {
|
|
10
|
-
readonly "jsonc/no-bigint-literals": import("../state.js").State.ON;
|
|
11
|
-
readonly "jsonc/no-binary-expression": import("../state.js").State.ON;
|
|
12
|
-
readonly "jsonc/no-binary-numeric-literals": import("../state.js").State.ON;
|
|
13
10
|
readonly "jsonc/no-comments": import("../state.js").State.ON;
|
|
14
|
-
readonly "jsonc/no-escape-sequence-in-identifier": import("../state.js").State.ON;
|
|
15
|
-
readonly "jsonc/no-hexadecimal-numeric-literals": import("../state.js").State.ON;
|
|
16
|
-
readonly "jsonc/no-infinity": import("../state.js").State.ON;
|
|
17
|
-
readonly "jsonc/no-nan": import("../state.js").State.ON;
|
|
18
|
-
readonly "jsonc/no-number-props": import("../state.js").State.ON;
|
|
19
|
-
readonly "jsonc/no-numeric-separators": import("../state.js").State.ON;
|
|
20
|
-
readonly "jsonc/no-octal-numeric-literals": import("../state.js").State.ON;
|
|
21
|
-
readonly "jsonc/no-parenthesized": import("../state.js").State.ON;
|
|
22
|
-
readonly "jsonc/no-plus-sign": import("../state.js").State.ON;
|
|
23
|
-
readonly "jsonc/no-regexp-literals": import("../state.js").State.ON;
|
|
24
|
-
readonly "jsonc/no-template-literals": import("../state.js").State.ON;
|
|
25
|
-
readonly "jsonc/no-undefined-value": import("../state.js").State.ON;
|
|
26
|
-
readonly "jsonc/no-unicode-codepoint-escapes": import("../state.js").State.ON;
|
|
27
|
-
readonly "jsonc/valid-json-number": import("../state.js").State.ON;
|
|
28
|
-
};
|
|
29
|
-
} | {
|
|
30
|
-
rules: {
|
|
31
11
|
readonly "jsonc/array-bracket-spacing": import("../state.js").State.WARN;
|
|
32
12
|
readonly "jsonc/array-element-newline": readonly [
|
|
33
13
|
import("../state.js").State.WARN,
|
|
@@ -40,7 +20,6 @@ declare const _default: ({
|
|
|
40
20
|
2
|
|
41
21
|
];
|
|
42
22
|
readonly "jsonc/key-spacing": import("../state.js").State.WARN;
|
|
43
|
-
readonly "jsonc/no-floating-decimal": import("../state.js").State.ON;
|
|
44
23
|
readonly "jsonc/no-irregular-whitespace": readonly [
|
|
45
24
|
import("../state.js").State.ON,
|
|
46
25
|
{
|
|
@@ -48,11 +27,6 @@ declare const _default: ({
|
|
|
48
27
|
readonly skipComments: true;
|
|
49
28
|
}
|
|
50
29
|
];
|
|
51
|
-
readonly "jsonc/no-multi-str": import("../state.js").State.ON;
|
|
52
|
-
readonly "jsonc/no-octal-escape": import("../state.js").State.ON;
|
|
53
|
-
readonly "jsonc/no-octal": import("../state.js").State.ON;
|
|
54
|
-
readonly "jsonc/no-sparse-arrays": import("../state.js").State.ON;
|
|
55
|
-
readonly "jsonc/no-useless-escape": import("../state.js").State.ON;
|
|
56
30
|
readonly "jsonc/object-curly-newline": readonly [
|
|
57
31
|
import("../state.js").State.WARN,
|
|
58
32
|
{
|
|
@@ -66,9 +40,6 @@ declare const _default: ({
|
|
|
66
40
|
"always"
|
|
67
41
|
];
|
|
68
42
|
readonly "jsonc/object-property-newline": import("../state.js").State.WARN;
|
|
69
|
-
readonly "jsonc/quote-props": import("../state.js").State.ON;
|
|
70
|
-
readonly "jsonc/quotes": import("../state.js").State.ON;
|
|
71
|
-
readonly "jsonc/space-unary-ops": import("../state.js").State.ON;
|
|
72
43
|
};
|
|
73
44
|
})[];
|
|
74
45
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/dist/rules/json/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe;IACb,IAAI;IACJ,KAAK;CACN,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { State } from "
|
|
1
|
+
import { State } from "../state.js";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
rules: {
|
|
4
|
+
readonly "jsonc/no-comments": State.ON;
|
|
4
5
|
readonly "jsonc/array-bracket-spacing": State.WARN;
|
|
5
6
|
readonly "jsonc/array-element-newline": readonly [
|
|
6
7
|
State.WARN,
|
|
@@ -13,7 +14,6 @@ declare const _default: {
|
|
|
13
14
|
2
|
|
14
15
|
];
|
|
15
16
|
readonly "jsonc/key-spacing": State.WARN;
|
|
16
|
-
readonly "jsonc/no-floating-decimal": State.ON;
|
|
17
17
|
readonly "jsonc/no-irregular-whitespace": readonly [
|
|
18
18
|
State.ON,
|
|
19
19
|
{
|
|
@@ -21,11 +21,6 @@ declare const _default: {
|
|
|
21
21
|
readonly skipComments: true;
|
|
22
22
|
}
|
|
23
23
|
];
|
|
24
|
-
readonly "jsonc/no-multi-str": State.ON;
|
|
25
|
-
readonly "jsonc/no-octal-escape": State.ON;
|
|
26
|
-
readonly "jsonc/no-octal": State.ON;
|
|
27
|
-
readonly "jsonc/no-sparse-arrays": State.ON;
|
|
28
|
-
readonly "jsonc/no-useless-escape": State.ON;
|
|
29
24
|
readonly "jsonc/object-curly-newline": readonly [
|
|
30
25
|
State.WARN,
|
|
31
26
|
{
|
|
@@ -39,10 +34,7 @@ declare const _default: {
|
|
|
39
34
|
"always"
|
|
40
35
|
];
|
|
41
36
|
readonly "jsonc/object-property-newline": State.WARN;
|
|
42
|
-
readonly "jsonc/quote-props": State.ON;
|
|
43
|
-
readonly "jsonc/quotes": State.ON;
|
|
44
|
-
readonly "jsonc/space-unary-ops": State.ON;
|
|
45
37
|
};
|
|
46
38
|
};
|
|
47
39
|
export default _default;
|
|
48
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=jsonc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBAqEE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
|
+
"jsonc/no-comments": 2,
|
|
3
4
|
"jsonc/array-bracket-spacing": 1,
|
|
4
5
|
"jsonc/array-element-newline": [
|
|
5
6
|
1,
|
|
@@ -12,7 +13,6 @@ export default {
|
|
|
12
13
|
2,
|
|
13
14
|
],
|
|
14
15
|
"jsonc/key-spacing": 1,
|
|
15
|
-
"jsonc/no-floating-decimal": 2,
|
|
16
16
|
"jsonc/no-irregular-whitespace": [
|
|
17
17
|
2,
|
|
18
18
|
{
|
|
@@ -20,11 +20,6 @@ export default {
|
|
|
20
20
|
skipComments: true,
|
|
21
21
|
},
|
|
22
22
|
],
|
|
23
|
-
"jsonc/no-multi-str": 2,
|
|
24
|
-
"jsonc/no-octal-escape": 2,
|
|
25
|
-
"jsonc/no-octal": 2,
|
|
26
|
-
"jsonc/no-sparse-arrays": 2,
|
|
27
|
-
"jsonc/no-useless-escape": 2,
|
|
28
23
|
"jsonc/object-curly-newline": [
|
|
29
24
|
1,
|
|
30
25
|
{
|
|
@@ -38,9 +33,6 @@ export default {
|
|
|
38
33
|
"always",
|
|
39
34
|
],
|
|
40
35
|
"jsonc/object-property-newline": 1,
|
|
41
|
-
"jsonc/quote-props": 2,
|
|
42
|
-
"jsonc/quotes": 2,
|
|
43
|
-
"jsonc/space-unary-ops": 2,
|
|
44
36
|
},
|
|
45
37
|
};
|
|
46
|
-
//# sourceMappingURL=
|
|
38
|
+
//# sourceMappingURL=jsonc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;QAmB7B,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAG/B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QAMD,4BAA4B,EAAE;;YAE5B;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;;YAE5B,QAAQ;SACT;QACD,+BAA+B,GAAY;KAInC;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "19.
|
|
6
|
+
"version": "19.5.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/rules/html/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export default [
|
|
|
14
14
|
"html/no-duplicate-in-head": State.WARN,
|
|
15
15
|
"html/no-ineffective-attrs": State.WARN,
|
|
16
16
|
// "html/no-inline-styles": State.OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
17
|
-
"html/no-invalid-entity": State.
|
|
17
|
+
"html/no-invalid-entity": State.ON,
|
|
18
18
|
"html/no-nested-interactive": State.WARN,
|
|
19
19
|
"html/no-obsolete-tags": State.WARN,
|
|
20
20
|
// "html/no-restricted-attr-values": State.OFF,
|
|
@@ -54,7 +54,7 @@ export default [
|
|
|
54
54
|
"html/no-invalid-role": State.WARN,
|
|
55
55
|
"html/no-non-scalable-viewport": State.WARN,
|
|
56
56
|
"html/no-positive-tabindex": State.WARN,
|
|
57
|
-
"html/no-skip-heading-levels": State.
|
|
57
|
+
// "html/no-skip-heading-levels": State.OFF,
|
|
58
58
|
"html/require-form-method": State.WARN,
|
|
59
59
|
"html/require-frame-title": State.WARN,
|
|
60
60
|
"html/require-img-alt": State.WARN,
|
package/src/rules/json/index.ts
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { State } from "../state";
|
|
2
|
+
|
|
3
|
+
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/
|
|
4
|
+
export default {
|
|
5
|
+
rules: {
|
|
6
|
+
// "jsonc/auto": State.OFF,
|
|
7
|
+
// "jsonc/key-name-casing": State.OFF,
|
|
8
|
+
// "jsonc/no-bigint-literals": State.OFF,
|
|
9
|
+
// "jsonc/no-binary-expression": State.OFF,
|
|
10
|
+
// "jsonc/no-binary-numeric-literals": State.OFF,
|
|
11
|
+
"jsonc/no-comments": State.ON,
|
|
12
|
+
// "jsonc/no-escape-sequence-in-identifier": State.OFF,
|
|
13
|
+
// "jsonc/no-hexadecimal-numeric-literals": State.OFF,
|
|
14
|
+
// "jsonc/no-infinity": State.OFF,
|
|
15
|
+
// "jsonc/no-nan": State.OFF,
|
|
16
|
+
// "jsonc/no-number-props": State.OFF,
|
|
17
|
+
// "jsonc/no-numeric-separators": State.OFF,
|
|
18
|
+
// "jsonc/no-octal-numeric-literals": State.OFF,
|
|
19
|
+
// "jsonc/no-parenthesized": State.OFF,
|
|
20
|
+
// "jsonc/no-plus-sign": State.OFF,
|
|
21
|
+
// "jsonc/no-regexp-literals": State.OFF,
|
|
22
|
+
// "jsonc/no-template-literals": State.OFF,
|
|
23
|
+
// "jsonc/no-undefined-value": State.OFF,
|
|
24
|
+
// "jsonc/no-unicode-codepoint-escapes": State.OFF,
|
|
25
|
+
// "jsonc/sort-array-values": State.OFF,
|
|
26
|
+
// "jsonc/sort-keys": State.OFF /* ESLint: json/sort-keys */,
|
|
27
|
+
// "jsonc/valid-json-number": State.OFF,
|
|
28
|
+
// "jsonc/vue-custom-block/no-parsing-error": State.OFF,
|
|
29
|
+
// "jsonc/array-bracket-newline": State.OFF /* BUG: DO NOT CONFIGURE */,
|
|
30
|
+
"jsonc/array-bracket-spacing": State.WARN,
|
|
31
|
+
"jsonc/array-element-newline": [
|
|
32
|
+
State.WARN,
|
|
33
|
+
"consistent",
|
|
34
|
+
],
|
|
35
|
+
"jsonc/comma-dangle": State.ON,
|
|
36
|
+
"jsonc/comma-style": State.WARN,
|
|
37
|
+
"jsonc/indent": [
|
|
38
|
+
State.WARN,
|
|
39
|
+
2,
|
|
40
|
+
],
|
|
41
|
+
"jsonc/key-spacing": State.WARN,
|
|
42
|
+
// "jsonc/no-dupe-keys": State.OFF /* ESLint: json/no-duplicate-keys */,
|
|
43
|
+
// "jsonc/no-floating-decimal": State.OFF,
|
|
44
|
+
"jsonc/no-irregular-whitespace": [
|
|
45
|
+
State.ON,
|
|
46
|
+
{
|
|
47
|
+
skipStrings: true,
|
|
48
|
+
skipComments: true,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
// "jsonc/no-multi-str": State.OFF,
|
|
52
|
+
// "jsonc/no-octal-escape": State.OFF,
|
|
53
|
+
// "jsonc/no-octal": State.OFF,
|
|
54
|
+
// "jsonc/no-sparse-arrays": State.OFF,
|
|
55
|
+
// "jsonc/no-useless-escape": State.OFF,
|
|
56
|
+
"jsonc/object-curly-newline": [
|
|
57
|
+
State.WARN,
|
|
58
|
+
{
|
|
59
|
+
consistent: true,
|
|
60
|
+
multiline: true,
|
|
61
|
+
minProperties: 2,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
"jsonc/object-curly-spacing": [
|
|
65
|
+
State.WARN,
|
|
66
|
+
"always",
|
|
67
|
+
],
|
|
68
|
+
"jsonc/object-property-newline": State.WARN,
|
|
69
|
+
// "jsonc/quote-props": State.OFF,
|
|
70
|
+
// "jsonc/quotes": State.OFF,
|
|
71
|
+
// "jsonc/space-unary-ops": State.OFF,
|
|
72
|
+
} as const,
|
|
73
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../../../src/rules/json/plugin/extend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGpC,wBA8CE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../../src/rules/json/plugin/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAEL,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAE/B,2BAA2B,GAAU;QACrC,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QACD,oBAAoB,GAAU;QAC9B,uBAAuB,GAAU;QACjC,gBAAgB,GAAU;QAC1B,wBAAwB,GAAU;QAClC,yBAAyB,GAAU;QACnC,4BAA4B,EAAE;;YAE5B;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;;YAE5B,QAAQ;SACT;QACD,+BAA+B,GAAY;QAC3C,mBAAmB,GAAU;QAC7B,cAAc,GAAU;QACxB,uBAAuB,GAAU;KACzB;CACX,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { State } from "../../state.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
rules: {
|
|
4
|
-
readonly "jsonc/no-bigint-literals": State.ON;
|
|
5
|
-
readonly "jsonc/no-binary-expression": State.ON;
|
|
6
|
-
readonly "jsonc/no-binary-numeric-literals": State.ON;
|
|
7
|
-
readonly "jsonc/no-comments": State.ON;
|
|
8
|
-
readonly "jsonc/no-escape-sequence-in-identifier": State.ON;
|
|
9
|
-
readonly "jsonc/no-hexadecimal-numeric-literals": State.ON;
|
|
10
|
-
readonly "jsonc/no-infinity": State.ON;
|
|
11
|
-
readonly "jsonc/no-nan": State.ON;
|
|
12
|
-
readonly "jsonc/no-number-props": State.ON;
|
|
13
|
-
readonly "jsonc/no-numeric-separators": State.ON;
|
|
14
|
-
readonly "jsonc/no-octal-numeric-literals": State.ON;
|
|
15
|
-
readonly "jsonc/no-parenthesized": State.ON;
|
|
16
|
-
readonly "jsonc/no-plus-sign": State.ON;
|
|
17
|
-
readonly "jsonc/no-regexp-literals": State.ON;
|
|
18
|
-
readonly "jsonc/no-template-literals": State.ON;
|
|
19
|
-
readonly "jsonc/no-undefined-value": State.ON;
|
|
20
|
-
readonly "jsonc/no-unicode-codepoint-escapes": State.ON;
|
|
21
|
-
readonly "jsonc/valid-json-number": State.ON;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rules/json/plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAGpC,wBA0BE"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
rules: {
|
|
3
|
-
"jsonc/no-bigint-literals": 2,
|
|
4
|
-
"jsonc/no-binary-expression": 2,
|
|
5
|
-
"jsonc/no-binary-numeric-literals": 2,
|
|
6
|
-
"jsonc/no-comments": 2,
|
|
7
|
-
"jsonc/no-escape-sequence-in-identifier": 2,
|
|
8
|
-
"jsonc/no-hexadecimal-numeric-literals": 2,
|
|
9
|
-
"jsonc/no-infinity": 2,
|
|
10
|
-
"jsonc/no-nan": 2,
|
|
11
|
-
"jsonc/no-number-props": 2,
|
|
12
|
-
"jsonc/no-numeric-separators": 2,
|
|
13
|
-
"jsonc/no-octal-numeric-literals": 2,
|
|
14
|
-
"jsonc/no-parenthesized": 2,
|
|
15
|
-
"jsonc/no-plus-sign": 2,
|
|
16
|
-
"jsonc/no-regexp-literals": 2,
|
|
17
|
-
"jsonc/no-template-literals": 2,
|
|
18
|
-
"jsonc/no-undefined-value": 2,
|
|
19
|
-
"jsonc/no-unicode-codepoint-escapes": 2,
|
|
20
|
-
"jsonc/valid-json-number": 2,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rules/json/plugin/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,0BAA0B,GAAU;QACpC,4BAA4B,GAAU;QACtC,kCAAkC,GAAU;QAC5C,mBAAmB,GAAU;QAC7B,wCAAwC,GAAU;QAClD,uCAAuC,GAAU;QACjD,mBAAmB,GAAU;QAC7B,cAAc,GAAU;QACxB,uBAAuB,GAAU;QACjC,6BAA6B,GAAU;QACvC,iCAAiC,GAAU;QAC3C,wBAAwB,GAAU;QAClC,oBAAoB,GAAU;QAC9B,0BAA0B,GAAU;QACpC,4BAA4B,GAAU;QACtC,0BAA0B,GAAU;QACpC,oCAAoC,GAAU;QAG9C,yBAAyB,GAAU;KAE3B;CACX,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { State } from "../../state";
|
|
2
|
-
|
|
3
|
-
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
|
4
|
-
export default {
|
|
5
|
-
rules: {
|
|
6
|
-
// "jsonc/array-bracket-newline": State.OFF /* BUG: DO NOT CONFIGURE */,
|
|
7
|
-
"jsonc/array-bracket-spacing": State.WARN,
|
|
8
|
-
"jsonc/array-element-newline": [
|
|
9
|
-
State.WARN,
|
|
10
|
-
"consistent",
|
|
11
|
-
],
|
|
12
|
-
"jsonc/comma-dangle": State.ON,
|
|
13
|
-
"jsonc/comma-style": State.WARN,
|
|
14
|
-
"jsonc/indent": [
|
|
15
|
-
State.WARN,
|
|
16
|
-
2,
|
|
17
|
-
],
|
|
18
|
-
"jsonc/key-spacing": State.WARN,
|
|
19
|
-
// "jsonc/no-dupe-keys": State.OFF /* ESLint: json/no-duplicate-keys */,
|
|
20
|
-
"jsonc/no-floating-decimal": State.ON,
|
|
21
|
-
"jsonc/no-irregular-whitespace": [
|
|
22
|
-
State.ON,
|
|
23
|
-
{
|
|
24
|
-
skipStrings: true,
|
|
25
|
-
skipComments: true,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
"jsonc/no-multi-str": State.ON,
|
|
29
|
-
"jsonc/no-octal-escape": State.ON,
|
|
30
|
-
"jsonc/no-octal": State.ON,
|
|
31
|
-
"jsonc/no-sparse-arrays": State.ON,
|
|
32
|
-
"jsonc/no-useless-escape": State.ON,
|
|
33
|
-
"jsonc/object-curly-newline": [
|
|
34
|
-
State.WARN,
|
|
35
|
-
{
|
|
36
|
-
consistent: true,
|
|
37
|
-
multiline: true,
|
|
38
|
-
minProperties: 2,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
"jsonc/object-curly-spacing": [
|
|
42
|
-
State.WARN,
|
|
43
|
-
"always",
|
|
44
|
-
],
|
|
45
|
-
"jsonc/object-property-newline": State.WARN,
|
|
46
|
-
"jsonc/quote-props": State.ON,
|
|
47
|
-
"jsonc/quotes": State.ON,
|
|
48
|
-
"jsonc/space-unary-ops": State.ON,
|
|
49
|
-
} as const,
|
|
50
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { State } from "../../state";
|
|
2
|
-
|
|
3
|
-
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
|
4
|
-
export default {
|
|
5
|
-
rules: {
|
|
6
|
-
// "jsonc/auto": State.OFF,
|
|
7
|
-
// "jsonc/key-name-casing": State.OFF,
|
|
8
|
-
"jsonc/no-bigint-literals": State.ON,
|
|
9
|
-
"jsonc/no-binary-expression": State.ON,
|
|
10
|
-
"jsonc/no-binary-numeric-literals": State.ON,
|
|
11
|
-
"jsonc/no-comments": State.ON,
|
|
12
|
-
"jsonc/no-escape-sequence-in-identifier": State.ON,
|
|
13
|
-
"jsonc/no-hexadecimal-numeric-literals": State.ON,
|
|
14
|
-
"jsonc/no-infinity": State.ON,
|
|
15
|
-
"jsonc/no-nan": State.ON,
|
|
16
|
-
"jsonc/no-number-props": State.ON,
|
|
17
|
-
"jsonc/no-numeric-separators": State.ON,
|
|
18
|
-
"jsonc/no-octal-numeric-literals": State.ON,
|
|
19
|
-
"jsonc/no-parenthesized": State.ON,
|
|
20
|
-
"jsonc/no-plus-sign": State.ON,
|
|
21
|
-
"jsonc/no-regexp-literals": State.ON,
|
|
22
|
-
"jsonc/no-template-literals": State.ON,
|
|
23
|
-
"jsonc/no-undefined-value": State.ON,
|
|
24
|
-
"jsonc/no-unicode-codepoint-escapes": State.ON,
|
|
25
|
-
// "jsonc/sort-array-values": State.OFF,
|
|
26
|
-
// "jsonc/sort-keys": State.OFF /* ESLint: json/sort-keys */,
|
|
27
|
-
"jsonc/valid-json-number": State.ON,
|
|
28
|
-
// "jsonc/vue-custom-block/no-parsing-error": State.OFF,
|
|
29
|
-
} as const,
|
|
30
|
-
};
|