From 692b73fd9291eb19bc2a9ebdb37a647e37c94507 Mon Sep 17 00:00:00 2001 From: acondal Date: Wed, 30 Aug 2023 15:22:06 +0200 Subject: [PATCH 1/7] feat: change eslint max-len config for vue files EMP-1907 --- .eslintrc.js | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 93e2671967..c87610ba13 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,5 +12,50 @@ module.exports = { parserOptions: { tsconfigRootDir: __dirname, project: './packages/**/tsconfig.eslint.json' - } + }, + overrides: [ + { + files: ['*.vue'], + rules: { + /* + * We disable "max-len" rule to ".vue" files because it has some limitations + * https://github.com/vuejs/vue-eslint-parser#%EF%B8%8F-known-limitations. + * + * Instead we use the one that "eslint-plugin-vue" has. This rule understands much better + * the ".vue" files. + * It helps us in cases that the "