You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add typing 'Literal#raw' property
vue-eslint-parser's ESLintLiteralBase Node has 'raw' property.
ref: https://github.com/vuejs/vue-eslint-parser/blob/160f4efc4eaf363662b464a4a26a4c9e514deb5d/src/ast/nodes.ts#L395
It was necessary to identify quotes in the match-component-file-name's fixer.
* feat: add suggestion match-component-file-name rule
improve #1816
For the following reasons why name option changed.
If change file name, alto need to change import statement.
Also, this rule not auto-fixed, because the file name may be incorrect.
Copy file name to clipboardExpand all lines: docs/rules/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ For example:
210
210
|[vue/html-comment-content-newline](./html-comment-content-newline.md)| enforce unified line brake in HTML comments |:wrench:|:lipstick:|
211
211
|[vue/html-comment-content-spacing](./html-comment-content-spacing.md)| enforce unified spacing in HTML comments |:wrench:|:lipstick:|
212
212
|[vue/html-comment-indent](./html-comment-indent.md)| enforce consistent indentation in HTML comments |:wrench:|:lipstick:|
213
-
|[vue/match-component-file-name](./match-component-file-name.md)| require component name property to match its file name ||:hammer:|
213
+
|[vue/match-component-file-name](./match-component-file-name.md)| require component name property to match its file name |:bulb:|:hammer:|
214
214
|[vue/match-component-import-name](./match-component-import-name.md)| require the registered component name to match the imported component name ||:warning:|
215
215
|[vue/new-line-between-multi-line-property](./new-line-between-multi-line-property.md)| enforce new lines between multi-line properties in Vue components |:wrench:|:lipstick:|
216
216
|[vue/next-tick-style](./next-tick-style.md)| enforce Promise or callback style in `nextTick`|:wrench:|:hammer:|
Copy file name to clipboardExpand all lines: docs/rules/match-component-file-name.md
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ since: v5.2.0
9
9
10
10
> require component name property to match its file name
11
11
12
+
-:bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
13
+
12
14
This rule reports if a component `name` property does not match its file name.
13
15
14
16
You can define an array of file extensions this rule should verify for the component's name.
0 commit comments