adding linting and bunch of scripts

This commit is contained in:
talksik
2022-06-03 11:16:08 -07:00
parent f8de994490
commit b7787afcc2
3 changed files with 24 additions and 3 deletions
-1
View File
@@ -19,7 +19,6 @@ RUN yarn install
WORKDIR /app/packages/api
RUN yarn install --production
RUN yarn build
CMD ["yarn", "start"]
+16
View File
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser"
}
+8 -2
View File
@@ -8,14 +8,20 @@
"dev": "NODE_ENV=development && yarn common && nodemon",
"start:dev": "ts-node index.ts",
"start": "node dist/index.js",
"gcp-build": "npm run common && tsc -p .",
"lint": "eslint --ext .ts,.tsx .",
"build": "npm run common && npm run lint && tsc -p .",
"gcp-build": "npm run build",
"production": "NODE_ENV=production nodemon"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/node": "^17.0.21",
"nodemon": "^2.0.15",
"typescript": "^4.6.2"
"typescript": "^4.6.2",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-plugin-import": "^2.25.0"
},
"dependencies": {
"axios": "^0.26.1",