From 940ff553c06b5af0978ebc3677494fdd811a64f0 Mon Sep 17 00:00:00 2001 From: Alex Kriuchykhin Date: Thu, 23 Nov 2023 09:50:39 +0100 Subject: [PATCH] Update HoundCI config (#6687) --- .../.eslintrc.json => .eslintrc.json | 14 +++++++++++ .hound.yml | 3 ++- app/assets/.eslintrc.json | 25 ------------------- 3 files changed, 16 insertions(+), 26 deletions(-) rename app/javascript/.eslintrc.json => .eslintrc.json (69%) delete mode 100644 app/assets/.eslintrc.json diff --git a/app/javascript/.eslintrc.json b/.eslintrc.json similarity index 69% rename from app/javascript/.eslintrc.json rename to .eslintrc.json index 2d19003eb..a473b3b5a 100644 --- a/app/javascript/.eslintrc.json +++ b/.eslintrc.json @@ -21,6 +21,20 @@ { "beforeLineComment": false } + ], + "max-len": [ + "error", + { + "code": 120 + } + ], + "vue/max-len": [ + "error", + { + "code": 120, + "template": 240, + "tabWidth": 2 + } ] }, "globals": { diff --git a/.hound.yml b/.hound.yml index 008257847..b3c0b937e 100644 --- a/.hound.yml +++ b/.hound.yml @@ -4,7 +4,8 @@ ruby: eslint: enabled: true - config_file: app/assets/.eslintrc.json + version: 8.1.0 + config_file: .eslintrc.json scss: config_file: .scss-lint.yml diff --git a/app/assets/.eslintrc.json b/app/assets/.eslintrc.json deleted file mode 100644 index b94e8a1b3..000000000 --- a/app/assets/.eslintrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "env": { - "browser": true, - "jquery": true - }, - "extends": ["airbnb"], - "rules": { - "space-before-function-paren": ["error", "never"], - "func-names": ["error", "never"], - "spaced-comment": [ - "error", - "always", - { - "markers": ["="] - } - ], - "lines-around-comment": [ - "warn", - { - "beforeLineComment": false - } - ], - "max-len": ["error", { "code": 120 }] - } -}