Skip to content

Commit 26ac463

Browse files
authored
fix: disable vue/multi-word-component-names (#44)
* fix: disable vue/multi-word-component-names makes precise naming difficult and seems to work anyway * test: update snapshot
1 parent 4cea893 commit 26ac463

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

test/eslint-output.snap

+1-11
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ warning: The "name" property should be above the "setup" property on line 10 (vu
1818
18 |
1919

2020

21-
error: Component name "Test" should always be multi-word (vue/multi-word-component-names) at Test.vue:15:9:
22-
13 | },
23-
14 |
24-
> 15 | name: 'Test',
25-
| ^
26-
16 | });
27-
17 | </script>
28-
18 |
29-
30-
3121
error: 'test' is assigned a value but never used (@typescript-eslint/no-unused-vars) at index.ts:1:7:
3222
> 1 | const test: any = 1;
3323
| ^
@@ -52,5 +42,5 @@ warning: Unexpected console statement (no-console) at index.ts:3:1:
5242
4 |
5343

5444

55-
4 errors and 2 warnings found.
45+
3 errors and 2 warnings found.
5646
1 warning potentially fixable with the `--fix` option.

vue.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const eslintConfig = {
6161
],
6262
'vue/new-line-between-multi-line-property': 'error',
6363
'vue/padding-line-between-blocks': 'error',
64+
'vue/multi-word-component-names': 'off',
6465

6566
// i18n rules
6667
'@intlify/vue-i18n/valid-message-syntax': 'error',

0 commit comments

Comments
 (0)