eslint-plugin-yml 1.13.2 → 1.14.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/README.md CHANGED
@@ -65,7 +65,7 @@ npm install --save-dev eslint eslint-plugin-yml
65
65
 
66
66
  ### Configuration
67
67
 
68
- #### New (ESLint>=v9) Config (Flat Config)
68
+ #### New Config (`eslint.config.js`)
69
69
 
70
70
  Use `eslint.config.js` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/configuration-files-new>.
71
71
 
@@ -95,7 +95,7 @@ This plugin provides configs:
95
95
 
96
96
  See [the rule list](https://ota-meshi.github.io/eslint-plugin-yml/rules/) to get the `rules` that this plugin provides.
97
97
 
98
- #### Legacy Config (ESLint<v9)
98
+ #### Legacy Config (`.eslintrc`)
99
99
 
100
100
  Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/>.
101
101
 
@@ -13,9 +13,9 @@ declare const _default: ({
13
13
  parser: typeof parser;
14
14
  };
15
15
  rules: {
16
- "no-irregular-whitespace": string;
17
- "no-unused-vars": string;
18
- "spaced-comment": string;
16
+ "no-irregular-whitespace": "off";
17
+ "no-unused-vars": "off";
18
+ "spaced-comment": "off";
19
19
  };
20
20
  plugins?: undefined;
21
21
  })[];
@@ -11,25 +11,25 @@ declare const _default: ({
11
11
  parser: typeof import("yaml-eslint-parser");
12
12
  };
13
13
  rules: {
14
- "no-irregular-whitespace": string;
15
- "no-unused-vars": string;
16
- "spaced-comment": string;
14
+ "no-irregular-whitespace": "off";
15
+ "no-unused-vars": "off";
16
+ "spaced-comment": "off";
17
17
  };
18
18
  plugins?: undefined;
19
19
  } | {
20
20
  rules: {
21
- "yml/block-mapping-colon-indicator-newline": string;
22
- "yml/block-mapping-question-indicator-newline": string;
23
- "yml/block-sequence-hyphen-indicator-newline": string;
24
- "yml/flow-mapping-curly-newline": string;
25
- "yml/flow-mapping-curly-spacing": string;
26
- "yml/flow-sequence-bracket-newline": string;
27
- "yml/flow-sequence-bracket-spacing": string;
28
- "yml/indent": string;
29
- "yml/key-spacing": string;
30
- "yml/no-multiple-empty-lines": string;
31
- "yml/no-trailing-zeros": string;
32
- "yml/quotes": string;
21
+ "yml/block-mapping-colon-indicator-newline": "off";
22
+ "yml/block-mapping-question-indicator-newline": "off";
23
+ "yml/block-sequence-hyphen-indicator-newline": "off";
24
+ "yml/flow-mapping-curly-newline": "off";
25
+ "yml/flow-mapping-curly-spacing": "off";
26
+ "yml/flow-sequence-bracket-newline": "off";
27
+ "yml/flow-sequence-bracket-spacing": "off";
28
+ "yml/indent": "off";
29
+ "yml/key-spacing": "off";
30
+ "yml/no-multiple-empty-lines": "off";
31
+ "yml/no-trailing-zeros": "off";
32
+ "yml/quotes": "off";
33
33
  };
34
34
  })[];
35
35
  export default _default;
@@ -11,20 +11,20 @@ declare const _default: ({
11
11
  parser: typeof import("yaml-eslint-parser");
12
12
  };
13
13
  rules: {
14
- "no-irregular-whitespace": string;
15
- "no-unused-vars": string;
16
- "spaced-comment": string;
14
+ "no-irregular-whitespace": "off";
15
+ "no-unused-vars": "off";
16
+ "spaced-comment": "off";
17
17
  };
18
18
  plugins?: undefined;
19
19
  } | {
20
20
  rules: {
21
- "yml/no-empty-document": string;
22
- "yml/no-empty-key": string;
23
- "yml/no-empty-mapping-value": string;
24
- "yml/no-empty-sequence-entry": string;
25
- "yml/no-irregular-whitespace": string;
26
- "yml/no-tab-indent": string;
27
- "yml/vue-custom-block/no-parsing-error": string;
21
+ "yml/no-empty-document": "error";
22
+ "yml/no-empty-key": "error";
23
+ "yml/no-empty-mapping-value": "error";
24
+ "yml/no-empty-sequence-entry": "error";
25
+ "yml/no-irregular-whitespace": "error";
26
+ "yml/no-tab-indent": "error";
27
+ "yml/vue-custom-block/no-parsing-error": "error";
28
28
  };
29
29
  })[];
30
30
  export default _default;
@@ -11,33 +11,33 @@ declare const _default: ({
11
11
  parser: typeof import("yaml-eslint-parser");
12
12
  };
13
13
  rules: {
14
- "no-irregular-whitespace": string;
15
- "no-unused-vars": string;
16
- "spaced-comment": string;
14
+ "no-irregular-whitespace": "off";
15
+ "no-unused-vars": "off";
16
+ "spaced-comment": "off";
17
17
  };
18
18
  plugins?: undefined;
19
19
  } | {
20
20
  rules: {
21
- "yml/block-mapping-question-indicator-newline": string;
22
- "yml/block-mapping": string;
23
- "yml/block-sequence-hyphen-indicator-newline": string;
24
- "yml/block-sequence": string;
25
- "yml/flow-mapping-curly-newline": string;
26
- "yml/flow-mapping-curly-spacing": string;
27
- "yml/flow-sequence-bracket-newline": string;
28
- "yml/flow-sequence-bracket-spacing": string;
29
- "yml/indent": string;
30
- "yml/key-spacing": string;
31
- "yml/no-empty-document": string;
32
- "yml/no-empty-key": string;
33
- "yml/no-empty-mapping-value": string;
34
- "yml/no-empty-sequence-entry": string;
35
- "yml/no-irregular-whitespace": string;
36
- "yml/no-tab-indent": string;
37
- "yml/plain-scalar": string;
38
- "yml/quotes": string;
39
- "yml/spaced-comment": string;
40
- "yml/vue-custom-block/no-parsing-error": string;
21
+ "yml/block-mapping-question-indicator-newline": "error";
22
+ "yml/block-mapping": "error";
23
+ "yml/block-sequence-hyphen-indicator-newline": "error";
24
+ "yml/block-sequence": "error";
25
+ "yml/flow-mapping-curly-newline": "error";
26
+ "yml/flow-mapping-curly-spacing": "error";
27
+ "yml/flow-sequence-bracket-newline": "error";
28
+ "yml/flow-sequence-bracket-spacing": "error";
29
+ "yml/indent": "error";
30
+ "yml/key-spacing": "error";
31
+ "yml/no-empty-document": "error";
32
+ "yml/no-empty-key": "error";
33
+ "yml/no-empty-mapping-value": "error";
34
+ "yml/no-empty-sequence-entry": "error";
35
+ "yml/no-irregular-whitespace": "error";
36
+ "yml/no-tab-indent": "error";
37
+ "yml/plain-scalar": "error";
38
+ "yml/quotes": "error";
39
+ "yml/spaced-comment": "error";
40
+ "yml/vue-custom-block/no-parsing-error": "error";
41
41
  };
42
42
  })[];
43
43
  export default _default;
package/lib/index.d.ts CHANGED
@@ -82,9 +82,9 @@ declare const _default: {
82
82
  parser: typeof import("yaml-eslint-parser");
83
83
  };
84
84
  rules: {
85
- "no-irregular-whitespace": string;
86
- "no-unused-vars": string;
87
- "spaced-comment": string;
85
+ "no-irregular-whitespace": "off";
86
+ "no-unused-vars": "off";
87
+ "spaced-comment": "off";
88
88
  };
89
89
  plugins?: undefined;
90
90
  })[];
@@ -101,20 +101,20 @@ declare const _default: {
101
101
  parser: typeof import("yaml-eslint-parser");
102
102
  };
103
103
  rules: {
104
- "no-irregular-whitespace": string;
105
- "no-unused-vars": string;
106
- "spaced-comment": string;
104
+ "no-irregular-whitespace": "off";
105
+ "no-unused-vars": "off";
106
+ "spaced-comment": "off";
107
107
  };
108
108
  plugins?: undefined;
109
109
  } | {
110
110
  rules: {
111
- "yml/no-empty-document": string;
112
- "yml/no-empty-key": string;
113
- "yml/no-empty-mapping-value": string;
114
- "yml/no-empty-sequence-entry": string;
115
- "yml/no-irregular-whitespace": string;
116
- "yml/no-tab-indent": string;
117
- "yml/vue-custom-block/no-parsing-error": string;
111
+ "yml/no-empty-document": "error";
112
+ "yml/no-empty-key": "error";
113
+ "yml/no-empty-mapping-value": "error";
114
+ "yml/no-empty-sequence-entry": "error";
115
+ "yml/no-irregular-whitespace": "error";
116
+ "yml/no-tab-indent": "error";
117
+ "yml/vue-custom-block/no-parsing-error": "error";
118
118
  };
119
119
  })[];
120
120
  "flat/standard": ({
@@ -130,33 +130,33 @@ declare const _default: {
130
130
  parser: typeof import("yaml-eslint-parser");
131
131
  };
132
132
  rules: {
133
- "no-irregular-whitespace": string;
134
- "no-unused-vars": string;
135
- "spaced-comment": string;
133
+ "no-irregular-whitespace": "off";
134
+ "no-unused-vars": "off";
135
+ "spaced-comment": "off";
136
136
  };
137
137
  plugins?: undefined;
138
138
  } | {
139
139
  rules: {
140
- "yml/block-mapping-question-indicator-newline": string;
141
- "yml/block-mapping": string;
142
- "yml/block-sequence-hyphen-indicator-newline": string;
143
- "yml/block-sequence": string;
144
- "yml/flow-mapping-curly-newline": string;
145
- "yml/flow-mapping-curly-spacing": string;
146
- "yml/flow-sequence-bracket-newline": string;
147
- "yml/flow-sequence-bracket-spacing": string;
148
- "yml/indent": string;
149
- "yml/key-spacing": string;
150
- "yml/no-empty-document": string;
151
- "yml/no-empty-key": string;
152
- "yml/no-empty-mapping-value": string;
153
- "yml/no-empty-sequence-entry": string;
154
- "yml/no-irregular-whitespace": string;
155
- "yml/no-tab-indent": string;
156
- "yml/plain-scalar": string;
157
- "yml/quotes": string;
158
- "yml/spaced-comment": string;
159
- "yml/vue-custom-block/no-parsing-error": string;
140
+ "yml/block-mapping-question-indicator-newline": "error";
141
+ "yml/block-mapping": "error";
142
+ "yml/block-sequence-hyphen-indicator-newline": "error";
143
+ "yml/block-sequence": "error";
144
+ "yml/flow-mapping-curly-newline": "error";
145
+ "yml/flow-mapping-curly-spacing": "error";
146
+ "yml/flow-sequence-bracket-newline": "error";
147
+ "yml/flow-sequence-bracket-spacing": "error";
148
+ "yml/indent": "error";
149
+ "yml/key-spacing": "error";
150
+ "yml/no-empty-document": "error";
151
+ "yml/no-empty-key": "error";
152
+ "yml/no-empty-mapping-value": "error";
153
+ "yml/no-empty-sequence-entry": "error";
154
+ "yml/no-irregular-whitespace": "error";
155
+ "yml/no-tab-indent": "error";
156
+ "yml/plain-scalar": "error";
157
+ "yml/quotes": "error";
158
+ "yml/spaced-comment": "error";
159
+ "yml/vue-custom-block/no-parsing-error": "error";
160
160
  };
161
161
  })[];
162
162
  "flat/prettier": ({
@@ -172,25 +172,25 @@ declare const _default: {
172
172
  parser: typeof import("yaml-eslint-parser");
173
173
  };
174
174
  rules: {
175
- "no-irregular-whitespace": string;
176
- "no-unused-vars": string;
177
- "spaced-comment": string;
175
+ "no-irregular-whitespace": "off";
176
+ "no-unused-vars": "off";
177
+ "spaced-comment": "off";
178
178
  };
179
179
  plugins?: undefined;
180
180
  } | {
181
181
  rules: {
182
- "yml/block-mapping-colon-indicator-newline": string;
183
- "yml/block-mapping-question-indicator-newline": string;
184
- "yml/block-sequence-hyphen-indicator-newline": string;
185
- "yml/flow-mapping-curly-newline": string;
186
- "yml/flow-mapping-curly-spacing": string;
187
- "yml/flow-sequence-bracket-newline": string;
188
- "yml/flow-sequence-bracket-spacing": string;
189
- "yml/indent": string;
190
- "yml/key-spacing": string;
191
- "yml/no-multiple-empty-lines": string;
192
- "yml/no-trailing-zeros": string;
193
- "yml/quotes": string;
182
+ "yml/block-mapping-colon-indicator-newline": "off";
183
+ "yml/block-mapping-question-indicator-newline": "off";
184
+ "yml/block-sequence-hyphen-indicator-newline": "off";
185
+ "yml/flow-mapping-curly-newline": "off";
186
+ "yml/flow-mapping-curly-spacing": "off";
187
+ "yml/flow-sequence-bracket-newline": "off";
188
+ "yml/flow-sequence-bracket-spacing": "off";
189
+ "yml/indent": "off";
190
+ "yml/key-spacing": "off";
191
+ "yml/no-multiple-empty-lines": "off";
192
+ "yml/no-trailing-zeros": "off";
193
+ "yml/quotes": "off";
194
194
  };
195
195
  })[];
196
196
  };
package/lib/meta.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const name = "eslint-plugin-yml";
2
- export declare const version = "1.13.2";
2
+ export declare const version = "1.14.0";
package/lib/meta.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = "eslint-plugin-yml";
5
- exports.version = "1.13.2";
5
+ exports.version = "1.14.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-yml",
3
- "version": "1.13.2",
3
+ "version": "1.14.0",
4
4
  "description": "This ESLint plugin provides linting rules for YAML.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -92,7 +92,7 @@
92
92
  "eslint-plugin-eslint-comments": "^3.2.0",
93
93
  "eslint-plugin-eslint-plugin": "^5.0.0",
94
94
  "eslint-plugin-eslint-rule-tester": "^0.6.0",
95
- "eslint-plugin-json-schema-validator": "^4.7.4",
95
+ "eslint-plugin-json-schema-validator": "^5.0.0",
96
96
  "eslint-plugin-jsonc": "^2.0.0",
97
97
  "eslint-plugin-markdown": "^3.0.0",
98
98
  "eslint-plugin-n": "^16.0.1",