@@ -47,20 +47,6 @@ export function vue(options: ConfigOptions): Linter.Config[] {
4747 files : GLOB_FILES_VUE ,
4848 name : 'nextcloud/vue/rules' ,
4949 rules : {
50- // PascalCase components names for vuejs
51- 'vue/component-name-in-template-casing' : [
52- 'error' ,
53- 'PascalCase' ,
54- ] ,
55- // space before self-closing elements
56- 'vue/html-closing-bracket-spacing' : 'error' ,
57- // no ending html tag on a new line
58- 'vue/html-closing-bracket-newline' : [
59- 'error' ,
60- {
61- multiline : 'never' ,
62- } ,
63- ] ,
6450 // Enforce documentation of properties
6551 'vue/require-prop-comment' : options . isLibrary
6652 ? [
@@ -83,15 +69,6 @@ export function vue(options: ConfigOptions): Linter.Config[] {
8369 'warn' ,
8470 'default-false' ,
8571 ] ,
86- // Allow 3 attributes on the same line if singe line
87- 'vue/max-attributes-per-line' : [
88- 'error' ,
89- {
90- singleline : {
91- max : 3 ,
92- } ,
93- } ,
94- ] ,
9572 // Component names should match their export names - readability and maintainability ("where does this component come from?")
9673 'vue/match-component-import-name' : 'error' ,
9774 'vue/match-component-file-name' : 'error' ,
@@ -141,6 +118,29 @@ export function vue(options: ConfigOptions): Linter.Config[] {
141118 // same as in the codeStyle config but for the <template> in Vue files
142119 '@nextcloud-l10n/non-breaking-space-vue' : 'error' ,
143120 '@nextcloud-l10n/enforce-ellipsis-vue' : 'error' ,
121+ // PascalCase components names for vuejs
122+ 'vue/component-name-in-template-casing' : [
123+ 'error' ,
124+ 'PascalCase' ,
125+ ] ,
126+ // space before self-closing elements
127+ 'vue/html-closing-bracket-spacing' : 'error' ,
128+ // no ending html tag on a new line
129+ 'vue/html-closing-bracket-newline' : [
130+ 'error' ,
131+ {
132+ multiline : 'never' ,
133+ } ,
134+ ] ,
135+ // Allow 3 attributes on the same line if singe line
136+ 'vue/max-attributes-per-line' : [
137+ 'error' ,
138+ {
139+ singleline : {
140+ max : 3 ,
141+ } ,
142+ } ,
143+ ] ,
144144 // Also enforce tabs for template
145145 'vue/html-indent' : [
146146 'error' ,
0 commit comments