Skip to content

Commit 5415f06

Browse files
committed
fix(vue): use vue variant of no-irregular-whitespace
Needed as the vanilla `no-irregular-whitespace` does not work in Vue files (template). Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent ac38dd0 commit 5415f06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/configs/vue.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ export function vue(options: ConfigOptions): Linter.Config[] {
114114
'vue/no-unused-refs': 'warn',
115115
// Warn on unused props
116116
'vue/no-unused-properties': 'warn',
117+
118+
// This rule does not work in vue files, we must use the vue one
119+
'no-irregular-whitespace': 'off',
120+
'vue/no-irregular-whitespace': 'error',
117121
},
118122
},
119123

0 commit comments

Comments
 (0)