@eslinted/defaults 20.1.0 → 20.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/index.d.ts CHANGED
@@ -922,6 +922,7 @@ declare const _default: {
922
922
  html: {
923
923
  rules: {
924
924
  readonly "html/css-no-empty-blocks": import("./rules/state.js").State.WARN;
925
+ readonly "html/head-order": import("./rules/state.js").State.ON;
925
926
  readonly "html/no-duplicate-attrs": import("./rules/state.js").State.WARN;
926
927
  readonly "html/no-duplicate-class": import("./rules/state.js").State.WARN;
927
928
  readonly "html/no-duplicate-id": import("./rules/state.js").State.WARN;
@@ -1012,7 +1013,10 @@ declare const _default: {
1012
1013
  ];
1013
1014
  readonly "jsonc/object-curly-spacing": readonly [
1014
1015
  import("./rules/state.js").State.WARN,
1015
- "always"
1016
+ "always",
1017
+ {
1018
+ readonly emptyObjects: "never";
1019
+ }
1016
1020
  ];
1017
1021
  readonly "jsonc/object-property-newline": import("./rules/state.js").State.WARN;
1018
1022
  };
@@ -1026,7 +1030,7 @@ declare const _default: {
1026
1030
  readonly "jsonc/no-comments": import("./rules/state.js").State.OFF;
1027
1031
  };
1028
1032
  }[];
1029
- yml: ({
1033
+ yml: {
1030
1034
  rules: {
1031
1035
  readonly "yml/block-mapping-colon-indicator-newline": import("./rules/state.js").State.WARN;
1032
1036
  readonly "yml/block-mapping-question-indicator-newline": import("./rules/state.js").State.WARN;
@@ -1037,9 +1041,6 @@ declare const _default: {
1037
1041
  readonly "yml/no-empty-sequence-entry": import("./rules/state.js").State.WARN;
1038
1042
  readonly "yml/no-tab-indent": import("./rules/state.js").State.WARN;
1039
1043
  readonly "yml/require-string-key": import("./rules/state.js").State.WARN;
1040
- };
1041
- } | {
1042
- rules: {
1043
1044
  readonly "yml/no-irregular-whitespace": import("./rules/state.js").State.ON;
1044
1045
  readonly "yml/spaced-comment": readonly [
1045
1046
  import("./rules/state.js").State.WARN,
@@ -1061,7 +1062,7 @@ declare const _default: {
1061
1062
  }
1062
1063
  ];
1063
1064
  };
1064
- })[];
1065
+ }[];
1065
1066
  };
1066
1067
  };
1067
1068
  export default _default;
@@ -2,6 +2,7 @@ import { State } from "../state.js";
2
2
  declare const _default: {
3
3
  rules: {
4
4
  readonly "html/css-no-empty-blocks": State.WARN;
5
+ readonly "html/head-order": State.ON;
5
6
  readonly "html/no-duplicate-attrs": State.WARN;
6
7
  readonly "html/no-duplicate-class": State.WARN;
7
8
  readonly "html/no-duplicate-id": 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBA+EE"}
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,wBAgFE"}
@@ -2,6 +2,7 @@ export default [
2
2
  {
3
3
  rules: {
4
4
  "html/css-no-empty-blocks": 1,
5
+ "html/head-order": 2,
5
6
  "html/no-duplicate-attrs": 1,
6
7
  "html/no-duplicate-class": 1,
7
8
  "html/no-duplicate-id": 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,4BAA4B,GAAU;YACtC,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;YACvC,wBAAwB,GAAY;YAEpC,0BAA0B,GAAY;YACtC,0BAA0B,GAAY;YACtC,sBAAsB,GAAY;YAClC,0BAA0B,GAAY;YACtC,4BAA4B,GAAY;SAiBhC;KACX;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAGL,0BAA0B,GAAY;YACtC,iBAAiB,GAAU;YAE3B,yBAAyB,GAAY;YACrC,yBAAyB,GAAY;YACrC,sBAAsB,GAAY;YAClC,2BAA2B,GAAY;YACvC,2BAA2B,GAAY;YAEvC,4BAA4B,GAAU;YACtC,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;YACvC,wBAAwB,GAAY;YAEpC,0BAA0B,GAAY;YACtC,0BAA0B,GAAY;YACtC,sBAAsB,GAAY;YAClC,0BAA0B,GAAY;YACtC,4BAA4B,GAAY;SAiBhC;KACX;CACF,CAAC"}
@@ -907,6 +907,7 @@ declare const _default: {
907
907
  html: {
908
908
  rules: {
909
909
  readonly "html/css-no-empty-blocks": import("./state.js").State.WARN;
910
+ readonly "html/head-order": import("./state.js").State.ON;
910
911
  readonly "html/no-duplicate-attrs": import("./state.js").State.WARN;
911
912
  readonly "html/no-duplicate-class": import("./state.js").State.WARN;
912
913
  readonly "html/no-duplicate-id": import("./state.js").State.WARN;
@@ -997,7 +998,10 @@ declare const _default: {
997
998
  ];
998
999
  readonly "jsonc/object-curly-spacing": readonly [
999
1000
  import("./state.js").State.WARN,
1000
- "always"
1001
+ "always",
1002
+ {
1003
+ readonly emptyObjects: "never";
1004
+ }
1001
1005
  ];
1002
1006
  readonly "jsonc/object-property-newline": import("./state.js").State.WARN;
1003
1007
  };
@@ -1011,7 +1015,7 @@ declare const _default: {
1011
1015
  readonly "jsonc/no-comments": import("./state.js").State.OFF;
1012
1016
  };
1013
1017
  }[];
1014
- yml: ({
1018
+ yml: {
1015
1019
  rules: {
1016
1020
  readonly "yml/block-mapping-colon-indicator-newline": import("./state.js").State.WARN;
1017
1021
  readonly "yml/block-mapping-question-indicator-newline": import("./state.js").State.WARN;
@@ -1022,9 +1026,6 @@ declare const _default: {
1022
1026
  readonly "yml/no-empty-sequence-entry": import("./state.js").State.WARN;
1023
1027
  readonly "yml/no-tab-indent": import("./state.js").State.WARN;
1024
1028
  readonly "yml/require-string-key": import("./state.js").State.WARN;
1025
- };
1026
- } | {
1027
- rules: {
1028
1029
  readonly "yml/no-irregular-whitespace": import("./state.js").State.ON;
1029
1030
  readonly "yml/spaced-comment": readonly [
1030
1031
  import("./state.js").State.WARN,
@@ -1046,7 +1047,7 @@ declare const _default: {
1046
1047
  }
1047
1048
  ];
1048
1049
  };
1049
- })[];
1050
+ }[];
1050
1051
  };
1051
1052
  export default _default;
1052
1053
  //# sourceMappingURL=index.d.ts.map
@@ -36,7 +36,10 @@ declare const _default: ({
36
36
  ];
37
37
  readonly "jsonc/object-curly-spacing": readonly [
38
38
  import("../state.js").State.WARN,
39
- "always"
39
+ "always",
40
+ {
41
+ readonly emptyObjects: "never";
42
+ }
40
43
  ];
41
44
  readonly "jsonc/object-property-newline": import("../state.js").State.WARN;
42
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -32,7 +32,10 @@ declare const _default: {
32
32
  ];
33
33
  readonly "jsonc/object-curly-spacing": readonly [
34
34
  State.WARN,
35
- "always"
35
+ "always",
36
+ {
37
+ readonly emptyObjects: "never";
38
+ }
36
39
  ];
37
40
  readonly "jsonc/object-property-newline": State.WARN;
38
41
  };
@@ -1 +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
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBAwEE"}
@@ -32,6 +32,9 @@ export default {
32
32
  "jsonc/object-curly-spacing": [
33
33
  1,
34
34
  "always",
35
+ {
36
+ emptyObjects: "never",
37
+ },
35
38
  ],
36
39
  "jsonc/object-property-newline": 1,
37
40
  },
@@ -1 +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;QAC/B,oBAAoB,GAAU;QAE9B,+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"}
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;QAC/B,oBAAoB,GAAU;QAE9B,+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;YACR;gBACE,YAAY,EAAE,OAAO;aACtB;SACF;QACD,+BAA+B,GAAY;KAInC;CACX,CAAC"}
@@ -1,20 +1,18 @@
1
- declare const _default: ({
1
+ import { State } from "../state.js";
2
+ declare const _default: {
2
3
  rules: {
3
- readonly "yml/block-mapping-colon-indicator-newline": import("../state.js").State.WARN;
4
- readonly "yml/block-mapping-question-indicator-newline": import("../state.js").State.WARN;
5
- readonly "yml/block-mapping": import("../state.js").State.WARN;
6
- readonly "yml/block-sequence-hyphen-indicator-newline": import("../state.js").State.WARN;
7
- readonly "yml/block-sequence": import("../state.js").State.WARN;
8
- readonly "yml/no-empty-key": import("../state.js").State.WARN;
9
- readonly "yml/no-empty-sequence-entry": import("../state.js").State.WARN;
10
- readonly "yml/no-tab-indent": import("../state.js").State.WARN;
11
- readonly "yml/require-string-key": import("../state.js").State.WARN;
12
- };
13
- } | {
14
- rules: {
15
- readonly "yml/no-irregular-whitespace": import("../state.js").State.ON;
4
+ readonly "yml/block-mapping-colon-indicator-newline": State.WARN;
5
+ readonly "yml/block-mapping-question-indicator-newline": State.WARN;
6
+ readonly "yml/block-mapping": State.WARN;
7
+ readonly "yml/block-sequence-hyphen-indicator-newline": State.WARN;
8
+ readonly "yml/block-sequence": State.WARN;
9
+ readonly "yml/no-empty-key": State.WARN;
10
+ readonly "yml/no-empty-sequence-entry": State.WARN;
11
+ readonly "yml/no-tab-indent": State.WARN;
12
+ readonly "yml/require-string-key": State.WARN;
13
+ readonly "yml/no-irregular-whitespace": State.ON;
16
14
  readonly "yml/spaced-comment": readonly [
17
- import("../state.js").State.WARN,
15
+ State.WARN,
18
16
  "always",
19
17
  {
20
18
  readonly exceptions: readonly [
@@ -33,6 +31,6 @@ declare const _default: ({
33
31
  }
34
32
  ];
35
33
  };
36
- })[];
34
+ }[];
37
35
  export default _default;
38
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;AAGjC,wBAqDE"}
@@ -1,7 +1,34 @@
1
- import yml from "./yml.js";
2
- import extend from "./extend.js";
3
1
  export default [
4
- yml,
5
- extend,
2
+ {
3
+ rules: {
4
+ "yml/block-mapping-colon-indicator-newline": 1,
5
+ "yml/block-mapping-question-indicator-newline": 1,
6
+ "yml/block-mapping": 1,
7
+ "yml/block-sequence-hyphen-indicator-newline": 1,
8
+ "yml/block-sequence": 1,
9
+ "yml/no-empty-key": 1,
10
+ "yml/no-empty-sequence-entry": 1,
11
+ "yml/no-tab-indent": 1,
12
+ "yml/require-string-key": 1,
13
+ "yml/no-irregular-whitespace": 2,
14
+ "yml/spaced-comment": [
15
+ 1,
16
+ "always",
17
+ {
18
+ exceptions: ["#"],
19
+ markers: [
20
+ "-",
21
+ "#",
22
+ "##",
23
+ "###",
24
+ "####",
25
+ "#####",
26
+ "region",
27
+ "endregion",
28
+ ],
29
+ },
30
+ ],
31
+ },
32
+ },
6
33
  ];
7
- //# sourceMappingURL=index.js.map
34
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe;IACb,GAAG;IACH,MAAM;CACP,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAEL,2CAA2C,GAAY;YACvD,8CAA8C,GAAY;YAC1D,mBAAmB,GAAY;YAC/B,6CAA6C,GAAY;YACzD,oBAAoB,GAAY;YAKhC,kBAAkB,GAAY;YAE9B,6BAA6B,GAAY;YACzC,mBAAmB,GAAY;YAI/B,wBAAwB,GAAY;YAWpC,6BAA6B,GAAU;YAEvC,oBAAoB,EAAE;;gBAEpB,QAAQ;gBACR;oBACE,UAAU,EAAE,CAAC,GAAG,CAAC;oBACjB,OAAO,EAAE;wBACP,GAAG;wBACH,GAAG;wBACH,IAAI;wBACJ,KAAK;wBACL,MAAM;wBACN,OAAO;wBACP,QAAQ;wBACR,WAAW;qBACZ;iBACF;aACF;SAEO;KACX;CACF,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": "20.1.0",
6
+ "version": "20.2.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -7,6 +7,7 @@ export default [
7
7
  // #region BEST PRACTICE
8
8
  // DOC: https://html-eslint.org/docs/rules#best-practice
9
9
  "html/css-no-empty-blocks": State.WARN,
10
+ "html/head-order": State.ON,
10
11
  // "html/max-element-depth": State.OFF /* @preference: simply do not care */,
11
12
  "html/no-duplicate-attrs": State.WARN,
12
13
  "html/no-duplicate-class": State.WARN,
@@ -64,6 +64,9 @@ export default {
64
64
  "jsonc/object-curly-spacing": [
65
65
  State.WARN,
66
66
  "always",
67
+ {
68
+ emptyObjects: "never",
69
+ },
67
70
  ],
68
71
  "jsonc/object-property-newline": State.WARN,
69
72
  // "jsonc/quote-props": State.OFF,
@@ -1,7 +1,57 @@
1
- import yml from "./yml";
2
- import extend from "./extend";
1
+ import { State } from "../state";
3
2
 
3
+ // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
4
4
  export default [
5
- yml,
6
- extend,
5
+ {
6
+ rules: {
7
+ //#region Custom
8
+ "yml/block-mapping-colon-indicator-newline": State.WARN,
9
+ "yml/block-mapping-question-indicator-newline": State.WARN,
10
+ "yml/block-mapping": State.WARN,
11
+ "yml/block-sequence-hyphen-indicator-newline": State.WARN,
12
+ "yml/block-sequence": State.WARN,
13
+ // "yml/file-extension": State.OFF,
14
+ // "yml/indent": State.OFF,
15
+ // "yml/key-name-casing": State.OFF,
16
+ // "yml/no-empty-document": State.OFF,
17
+ "yml/no-empty-key": State.WARN,
18
+ // "yml/no-empty-mapping-value": State.OFF /* @preference: breaks Home Assistant integration enablement shorthand style (would require a `{}` after) */,
19
+ "yml/no-empty-sequence-entry": State.WARN,
20
+ "yml/no-tab-indent": State.WARN,
21
+ // "yml/no-trailing-zeros": State.OFF,
22
+ // "yml/plain-scalar": State.OFF /* @CONFLICT: breaks any holdovers from YAML 1.1 or non-YAML 1.2 core implementers */,
23
+ // "yml/quotes": State.OFF,
24
+ "yml/require-string-key": State.WARN,
25
+ // "yml/sort-keys": State.OFF,
26
+ // "yml/sort-sequence-values": State.OFF,
27
+ // "yml/vue-custom-block/no-parsing-error": State.OFF,
28
+ //#endregion
29
+ //#region Extension
30
+ // "yml/flow-mapping-curly-newline": State.OFF,
31
+ // "yml/flow-mapping-curly-spacing": State.OFF,
32
+ // "yml/flow-sequence-bracket-newline": State.OFF,
33
+ // "yml/flow-sequence-bracket-spacing": State.OFF,
34
+ // "yml/key-spacing": State.OFF,
35
+ "yml/no-irregular-whitespace": State.ON,
36
+ // "yml/no-multiple-empty-lines": State.OFF,
37
+ "yml/spaced-comment": [
38
+ State.WARN,
39
+ "always",
40
+ {
41
+ exceptions: ["#"],
42
+ markers: [
43
+ "-",
44
+ "#",
45
+ "##",
46
+ "###",
47
+ "####",
48
+ "#####",
49
+ "region",
50
+ "endregion",
51
+ ],
52
+ },
53
+ ],
54
+ //#endregion
55
+ } as const,
56
+ },
7
57
  ];
@@ -1,27 +0,0 @@
1
- import { State } from "../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "yml/no-irregular-whitespace": State.ON;
5
- readonly "yml/spaced-comment": readonly [
6
- State.WARN,
7
- "always",
8
- {
9
- readonly exceptions: readonly [
10
- "#"
11
- ];
12
- readonly markers: readonly [
13
- "-",
14
- "#",
15
- "##",
16
- "###",
17
- "####",
18
- "#####",
19
- "region",
20
- "endregion"
21
- ];
22
- }
23
- ];
24
- };
25
- };
26
- export default _default;
27
- //# sourceMappingURL=extend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/extend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;AAGjC,wBA2BE"}
@@ -1,23 +0,0 @@
1
- export default {
2
- rules: {
3
- "yml/no-irregular-whitespace": 2,
4
- "yml/spaced-comment": [
5
- 1,
6
- "always",
7
- {
8
- exceptions: ["#"],
9
- markers: [
10
- "-",
11
- "#",
12
- "##",
13
- "###",
14
- "####",
15
- "#####",
16
- "region",
17
- "endregion",
18
- ],
19
- },
20
- ],
21
- },
22
- };
23
- //# sourceMappingURL=extend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../src/rules/yml/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,6BAA6B,GAAU;QAEvC,oBAAoB,EAAE;;YAEpB,QAAQ;YACR;gBACE,UAAU,EAAE,CAAC,GAAG,CAAC;gBACjB,OAAO,EAAE;oBACP,GAAG;oBACH,GAAG;oBACH,IAAI;oBACJ,KAAK;oBACL,MAAM;oBACN,OAAO;oBACP,QAAQ;oBACR,WAAW;iBACZ;aACF;SACF;KACO;CACX,CAAC"}
@@ -1,16 +0,0 @@
1
- import { State } from "../state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "yml/block-mapping-colon-indicator-newline": State.WARN;
5
- readonly "yml/block-mapping-question-indicator-newline": State.WARN;
6
- readonly "yml/block-mapping": State.WARN;
7
- readonly "yml/block-sequence-hyphen-indicator-newline": State.WARN;
8
- readonly "yml/block-sequence": State.WARN;
9
- readonly "yml/no-empty-key": State.WARN;
10
- readonly "yml/no-empty-sequence-entry": State.WARN;
11
- readonly "yml/no-tab-indent": State.WARN;
12
- readonly "yml/require-string-key": State.WARN;
13
- };
14
- };
15
- export default _default;
16
- //# sourceMappingURL=yml.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;AAGjC,wBAuBE"}
@@ -1,14 +0,0 @@
1
- export default {
2
- rules: {
3
- "yml/block-mapping-colon-indicator-newline": 1,
4
- "yml/block-mapping-question-indicator-newline": 1,
5
- "yml/block-mapping": 1,
6
- "yml/block-sequence-hyphen-indicator-newline": 1,
7
- "yml/block-sequence": 1,
8
- "yml/no-empty-key": 1,
9
- "yml/no-empty-sequence-entry": 1,
10
- "yml/no-tab-indent": 1,
11
- "yml/require-string-key": 1,
12
- },
13
- };
14
- //# sourceMappingURL=yml.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,2CAA2C,GAAY;QACvD,8CAA8C,GAAY;QAC1D,mBAAmB,GAAY;QAC/B,6CAA6C,GAAY;QACzD,oBAAoB,GAAY;QAKhC,kBAAkB,GAAY;QAE9B,6BAA6B,GAAY;QACzC,mBAAmB,GAAY;QAI/B,wBAAwB,GAAY;KAI5B;CACX,CAAC"}
@@ -1,31 +0,0 @@
1
- import { State } from "../state";
2
-
3
- // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
4
- export default {
5
- rules: {
6
- // "yml/flow-mapping-curly-newline": State.OFF,
7
- // "yml/flow-mapping-curly-spacing": State.OFF,
8
- // "yml/flow-sequence-bracket-newline": State.OFF,
9
- // "yml/flow-sequence-bracket-spacing": State.OFF,
10
- // "yml/key-spacing": State.OFF,
11
- "yml/no-irregular-whitespace": State.ON,
12
- // "yml/no-multiple-empty-lines": State.OFF,
13
- "yml/spaced-comment": [
14
- State.WARN,
15
- "always",
16
- {
17
- exceptions: ["#"],
18
- markers: [
19
- "-",
20
- "#",
21
- "##",
22
- "###",
23
- "####",
24
- "#####",
25
- "region",
26
- "endregion",
27
- ],
28
- },
29
- ],
30
- } as const,
31
- };
@@ -1,27 +0,0 @@
1
- import { State } from "../state";
2
-
3
- // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
4
- export default {
5
- rules: {
6
- "yml/block-mapping-colon-indicator-newline": State.WARN,
7
- "yml/block-mapping-question-indicator-newline": State.WARN,
8
- "yml/block-mapping": State.WARN,
9
- "yml/block-sequence-hyphen-indicator-newline": State.WARN,
10
- "yml/block-sequence": State.WARN,
11
- // "yml/file-extension": State.OFF,
12
- // "yml/indent": State.OFF,
13
- // "yml/key-name-casing": State.OFF,
14
- // "yml/no-empty-document": State.OFF,
15
- "yml/no-empty-key": State.WARN,
16
- // "yml/no-empty-mapping-value": State.OFF /* @preference: breaks Home Assistant integration enablement shorthand style (would require a `{}` after) */,
17
- "yml/no-empty-sequence-entry": State.WARN,
18
- "yml/no-tab-indent": State.WARN,
19
- // "yml/no-trailing-zeros": State.OFF,
20
- // "yml/plain-scalar": State.OFF /* @CONFLICT: breaks any holdovers from YAML 1.1 or non-YAML 1.2 core implementers */,
21
- // "yml/quotes": State.OFF,
22
- "yml/require-string-key": State.WARN,
23
- // "yml/sort-keys": State.OFF,
24
- // "yml/sort-sequence-values": State.OFF,
25
- // "yml/vue-custom-block/no-parsing-error": State.OFF,
26
- } as const,
27
- };