From b5663d19ceeabd59a12a61c185699774556790fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 25 Aug 2022 18:26:52 +0200 Subject: [PATCH] Add eslint for CI in package.json --- .eslintrc.json | 3 ++- package.json | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 70211d0..cf467d1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -35,6 +35,7 @@ "linebreak-style": ["error", "unix"], "quotes": ["error", "double"], "semi": ["error", "always"], - "vue/script-indent": ["error", 2, { "baseIndent": 0 }] + "vue/script-indent": ["error", 2, { "baseIndent": 0 }], + "vue/one-component-per-file": "off" } } diff --git a/package.json b/package.json index 4bdd14e..485e4fe 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", "production": "npm run clear-manifest && mix --production", - "prod": "npm run production" + "prod": "npm run production", + "eslint": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources", + "eslint-ci": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources -f junit" }, "devDependencies": { "@fortawesome/fontawesome-svg-core": "^6.1.2",