ci: call the right scripts for the js lint stage

This commit is contained in:
Yassine Doghri 2021-05-25 08:22:07 +00:00
parent cb3935bf12
commit 4730411e9b
No known key found for this signature in database
GPG Key ID: 3E7F89498B960C9F
2 changed files with 3 additions and 2 deletions

View File

@ -52,8 +52,8 @@ lint-js:
script: script:
- npm run prettier - npm run prettier
- npm run typecheck - npm run typecheck
- npm run eslint - npm run lint
- npm run stylelint - npm run lint:css
dependencies: dependencies:
- js-dependencies - js-dependencies

View File

@ -22,6 +22,7 @@
"lint": "eslint --ext js,ts app/Views/_assets", "lint": "eslint --ext js,ts app/Views/_assets",
"lint:fix": "eslint --ext js,ts app/Views/_assets --fix", "lint:fix": "eslint --ext js,ts app/Views/_assets --fix",
"lint:css": "stylelint \"app/Views/_assets/**/*.css\"", "lint:css": "stylelint \"app/Views/_assets/**/*.css\"",
"lint:css:fix": "stylelint --fix \"app/Views/_assets/**/*.css\"",
"prettier": "prettier --check --ignore-path .gitignore .", "prettier": "prettier --check --ignore-path .gitignore .",
"prettier:fix": "prettier --write --ignore-path .gitignore .", "prettier:fix": "prettier --write --ignore-path .gitignore .",
"typecheck": "tsc", "typecheck": "tsc",