1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-09 07:20:05 +00:00

chore(workflow): add lint step

This commit is contained in:
Yury Shkoda
2021-10-20 15:48:05 +03:00
parent 19c60c4c98
commit ba2c209fce
3 changed files with 63 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "server",
"name": "api",
"version": "0.0.1",
"description": "SASjs server",
"description": "Api of SASjs server",
"main": "./src/server.ts",
"scripts": {
"start": "nodemon ./src/server.ts",
@@ -9,9 +9,7 @@
"build": "rimraf build && tsc",
"semantic-release": "semantic-release -d",
"prepare": "[ -d .git ] && git config core.hooksPath ./.git-hooks || true",
"test": "mkdir -p tmp && jest --coverage",
"lint:fix": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
"lint": "npx prettier --check \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\""
"test": "mkdir -p tmp && jest --coverage"
},
"release": {
"branches": [
@@ -32,7 +30,6 @@
"@types/supertest": "^2.0.11",
"jest": "^27.0.6",
"nodemon": "^2.0.7",
"prettier": "^2.3.1",
"rimraf": "^3.0.2",
"semantic-release": "^17.4.3",
"supertest": "^6.1.3",