Skip to content

Commit 2336de0

Browse files
ST-DDTFloEdelmann
andauthored
Apply suggestions from code review
Co-authored-by: Flo Edelmann <git@flo-edelmann.de>
1 parent 6236467 commit 2336de0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.changeset/tangy-eagles-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'eslint-plugin-vue': patch
33
---
44

5-
[vue/no-deprecated-slot-attribute](https://eslint.vuejs.org/rules/no-deprecated-slot-attribute.html) `ignore` option now supports regex patterns.
5+
[`vue/no-deprecated-slot-attribute`](https://eslint.vuejs.org/rules/no-deprecated-slot-attribute.html) `ignore` option now supports regex patterns.

docs/rules/no-deprecated-slot-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This rule reports deprecated `slot` attribute in Vue.js v2.6.0+.
4848
}
4949
```
5050

51-
- `"ignore"` (`string[]`) An array of tags or regular expression patterns (e.g. `/^custom-/`) that ignore this rules. This option will check both kebab-case and PascalCase versions of the given tag names. Default is empty.
51+
- `"ignore"` (`string[]`) An array of tags or regular expression patterns (e.g. `/^custom-/`) that ignore these rules. This option will check both kebab-case and PascalCase versions of the given tag names. Default is empty.
5252

5353
### `"ignore": ["my-component"]`
5454

lib/rules/syntaxes/slot-attribute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
supported: '<3.0.0',
1414
/** @param {RuleContext} context @returns {TemplateListener} */
1515
createTemplateBodyVisitor(context) {
16-
/** @type {{ ignore: string[]}} */
16+
/** @type {{ ignore: string[] }} */
1717
const options = context.options[0] || {}
1818
const { ignore = [] } = options
1919
/** @type {Set<string>} */

0 commit comments

Comments
 (0)