Skip to content

Commit

Permalink
refactor(lint): merge lint commands (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle authored Aug 28, 2024
1 parent ceebd24 commit 2a9ca56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check lint
name: Code Quality

on:
pull_request:
Expand All @@ -7,7 +7,7 @@ on:
- production

jobs:
check-lint:
lint:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,4 +23,4 @@ jobs:
run: npm ci

- name: Check lint
run: npm run check-lint
run: npm run lint
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"scripts": {
"serve": "npm run watch-translations & vue-cli-service serve",
"build": "npm run translations-csv2json && vue-cli-service build",
"check-lint": "eslint -c .eslintrc.js --ext .js,.vue src",
"lint": "vue-cli-service lint",
"lint": "eslint -c .eslintrc.js --ext .js,.vue --ignore-path .gitignore .",
"test": "vue-cli-service test:unit",
"translations-csv2json": "node scripts/export_i18n_csv.mjs src/locales/translations.csv src/locales/json",
"watch-translations": "onchange -i 'src/locales/translations.csv' -- npm run translations-csv2json"
Expand Down
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
// domain whitelist for dev server
allowedHosts: ['.cytomine.local']
}
}
};

0 comments on commit 2a9ca56

Please sign in to comment.