@w5s/eslint-config 7.1.1 → 7.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.
@@ -74,6 +74,11 @@ export interface RuleOptions {
74
74
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-spacing.html
75
75
  */
76
76
  'yml/key-spacing'?: Linter.RuleEntry<YmlKeySpacing>
77
+ /**
78
+ * enforce a maximum line length
79
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/max-len.html
80
+ */
81
+ 'yml/max-len'?: Linter.RuleEntry<YmlMaxLen>
77
82
  /**
78
83
  * disallow boolean mapping keys
79
84
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-boolean-key.html
@@ -270,6 +275,17 @@ type YmlKeySpacing = []|[({
270
275
  afterColon?: boolean
271
276
  }
272
277
  })]
278
+ // ----- yml/max-len -----
279
+ type YmlMaxLen = []|[{
280
+ code?: number
281
+ comments?: number
282
+ tabWidth?: number
283
+ ignorePattern?: string
284
+ ignoreComments?: boolean
285
+ ignoreTrailingComments?: boolean
286
+ ignoreUrls?: boolean
287
+ ignoreStrings?: boolean
288
+ }]
273
289
  // ----- yml/no-irregular-whitespace -----
274
290
  type YmlNoIrregularWhitespace = []|[{
275
291
  skipComments?: boolean