Browse Source

configure eslint and CI

Olivier Massot 1 năm trước cách đây
mục cha
commit
83132e9287
2 tập tin đã thay đổi với 14 bổ sung0 xóa
  1. 6 0
      .eslintrc.cjs
  2. 8 0
      .gitlab-ci.yml

+ 6 - 0
.eslintrc.cjs

@@ -19,6 +19,12 @@ module.exports = {
     'plugin:prettier/recommended',
 
   ],
+  ignorePatterns: [
+    ".nuxt",
+    "coverage/*",
+    "vendor/*",
+    "dist/*"
+  ],
   plugins: [
     "vue",
     "@typescript-eslint"

+ 8 - 0
.gitlab-ci.yml

@@ -12,6 +12,14 @@ cache:
   paths:
     - ./node_modules
 
+code_quality:
+  script:
+    - yarn eslint . --env=staging
+
+code_style:
+  script:
+    - yarn prettier . --check
+
 unit:
   stage: test