Skip to content

Commit

Permalink
Allow spaces after tabs for alignment
Browse files Browse the repository at this point in the history
This is needed for proper alignment of comments in CSS code embedded in
Vue files. For example:
-->/* Here starts a long comment that would be too long to have in a
--> * single line so is continued in the next one. */

See https://eslint.org/docs/rules/no-mixed-spaces-and-tabs#smart-tabs

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Dec 20, 2019
1 parent 64d09fd commit 57d5207
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module.exports = {
indent: ['error', 'tab'],
'no-tabs': ['error', { allowIndentationTabs: true }],
'vue/html-indent': ['error', 'tab'],
// allow spaces after tabs for alignment
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
// only debug console
'no-console': ['error', { allow: ['error', 'warn', 'info', 'debug'] }],
// classes blocks
Expand Down

0 comments on commit 57d5207

Please sign in to comment.