Skip to content
Snippets Groups Projects
Commit 3454592d authored by Sky Brewer's avatar Sky Brewer
Browse files

Merge branch 'CE-2776-tsc' into 'develop'

CE-2776 Typescript checking in pre-commit

See merge request !549
parents e9e1b8ee 481260f7
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!549CE-2776 Typescript checking in pre-commit
Pipeline #200392 passed
......@@ -6,22 +6,20 @@ repos:
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
- repo: local
hooks:
- id: prettier
additional_dependencies:
- prettier@3.2.5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
entry: eslint --fix
additional_dependencies:
- eslint@^8.55.0
- eslint-config-react-app@^7.0.1
- eslint-config-prettier@^9.1.0
- eslint-plugin-import@^2.29.0
- eslint-plugin-react@^7.33.2
- eslint-plugin-cypress@^2.15.1
- eslint-formatter-gitlab@^4.0.0
- id: prettier-check
name: prettier-check
entry: npm run prettier:fix
language: node
pass_filenames: false
- id: lint-fix
name: lint and fix
entry: npm run lint:fix
language: node
pass_filenames: false
- id: lint
name: lint
entry: npm run lint
language: node
pass_filenames: false
......@@ -46,8 +46,10 @@
"code-quality": "eslint src --ext .js -o eslint/quality -f gitlab",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"lint": "npx eslint src",
"lint:fix": "npm run lint -- --fix",
"check-types": "tsc --noemit",
"eslint": "npx eslint src",
"lint": "npm run check-types && npm run eslint",
"lint:fix": "npm run eslint -- --fix",
"prettier": "npx prettier src --check",
"prettier:fix": "npm run prettier -- --write",
"format": "npm run prettier:fix && npm run lint:fix",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment