add scripts for linting and formating

This commit is contained in:
Jacob Overgaard
2022-05-19 15:39:37 +02:00
parent c7c77321f2
commit bef07224dd

View File

@@ -8,6 +8,9 @@
"preview": "vite preview --open",
"test": "echo 'TODO: Implement test'",
"lint": "eslint . --ext .ts --cache",
"lint:fix": "npm run lint -- --fix",
"format": "prettier 'src/**/*.ts'",
"format:fix": "npm run format -- --write",
"generate:api": "npx openapi-typescript schemas/**/*.yml --output schemas/generated-schema.ts"
},
"engines": {