Further work on typescript migration

This commit is contained in:
viktorstrate
2021-04-12 22:42:23 +02:00
parent c5d2f3dc8b
commit f4e65eb58e
12 changed files with 146 additions and 74 deletions

View File

@@ -57,7 +57,9 @@
"start": "node --experimental-modules build.mjs watch",
"build": "NODE_ENV=production node --experimental-modules build.mjs",
"test": "npm run lint && npm run jest",
"lint": "eslint ./src --max-warnings 0 --cache --config .eslintrc.js",
"lint": "npm run lint:types & npm run lint:eslint",
"lint:eslint": "eslint ./src --max-warnings 0 --cache --config .eslintrc.js",
"lint:types": "tsc --noemit",
"jest": "jest",
"genSchemaTypes": "npx apollo client:codegen --target=typescript",
"prepare": "(cd .. && npx husky install)"
@@ -77,7 +79,8 @@
"husky": "^6.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1"
"prettier": "^2.2.1",
"tsc-files": "^1.1.2"
},
"cache": {
"swDest": "service-worker.js"
@@ -99,7 +102,8 @@
}
},
"lint-staged": {
"*.{js,json,css,md,graphql}": "prettier --write",
"*.js": "eslint --cache --fix --max-warnings 0"
"*.{ts,tsx,js,json,css,md,graphql}": "prettier --write",
"*.{js,ts,tsx}": "eslint --cache --fix --max-warnings 0",
"*.{ts,tsx}": "tsc-files --noEmit"
}
}