Skip to content
Snippets Groups Projects
Commit dacf2566 authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

Merge branch 'ce-3423' into 'develop'

CE-3423: Refactor and rename node scripts and pre-commit hooks

See merge request !588
parents eda0f0b5 5f17d870
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!588CE-3423: Refactor and rename node scripts and pre-commit hooks
Pipeline #211254 passed
---
default_language_version:
node: 20.10.0
repos:
......@@ -8,18 +9,18 @@ repos:
- id: trailing-whitespace
- repo: local
hooks:
- id: prettier-check
name: prettier-check
- id: prettier
name: format code
entry: npm run prettier:fix
language: node
pass_filenames: false
- id: lint-fix
- id: eslint
name: lint and fix
entry: npm run lint:fix
language: node
pass_filenames: false
- id: lint
name: lint
entry: npm run lint
- id: typescript
name: check types
entry: npm run ts
language: node
pass_filenames: false
......@@ -24,7 +24,7 @@
"cypress:open": "cypress open --component",
"storybook": "storybook dev -p 6006",
"eslint": "npx eslint src",
"lint": "tsc --noemit && npm run eslint",
"ts": "tsc --noemit",
"lint:fix": "npm run eslint -- --fix",
"prettier": "npx prettier src --check",
"prettier:fix": "npm run prettier -- --write",
......
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