Skip to content

Commit

Permalink
eslint: Add specific rules for Vue files
Browse files Browse the repository at this point in the history
Mainly change is to allow longer lines in the templates. As we are using in-line CSS with TailwindCSS, this is needed in many cases.
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Mar 17, 2023
1 parent 595317b commit 1301908
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,30 @@ module.exports = {
'vue/valid-v-slot': ['error', { allowModifiers: true }],
'no-await-in-loop': 'off',
'vue/multi-word-component-names': 'off',
'vue/max-len': [
'error',
{
code: 120,
template: 160,
tabWidth: 4,
comments: 160,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreUrls: true,
},
],
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
overrides: [
{
files: ['*.vue'],
rules: {
'max-len': ['off'],
},
},
],
}

0 comments on commit 1301908

Please sign in to comment.