adding linting and bunch of scripts
This commit is contained in:
@@ -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,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",
|
||||
|
||||
Reference in New Issue
Block a user