Skip to content

Commit

Permalink
add lint commands
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdev03 committed Mar 23, 2024
1 parent a95a74a commit 5cf775c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "echo \"Error: no test specified\" && exit 0",
"build": "tsc --build --clean && tsc",
"start": "node dist/index.js",
"lint": "eslint --fix .",
"lint": "eslint --ext ts",
"format": "prettier --write \"**/*.{ts,json,css,scss,md}\"",
"format:check": "prettier --check \"**/*.{ts,json,css,scss,md}\"",
"prestart": "tsc --build --clean && tsc",
Expand Down
8 changes: 8 additions & 0 deletions apps/dashboard/cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
}
2 changes: 1 addition & 1 deletion apps/dashboard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "cypress.config.ts"]
}
3 changes: 2 additions & 1 deletion packages/mongoose-models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "tsc",
"watch": "tsc -w",
"format": "prettier --write \"**/*.{ts,json,css,scss,md}\"",
"format:check": "prettier --check \"**/*.{ts,json,css,scss,md}\""
"format:check": "prettier --check \"**/*.{ts,json,css,scss,md}\"",
"lint": "eslint --ext ts"
},
"dependencies": {
"@pm2.web/typings": "*",
Expand Down

0 comments on commit 5cf775c

Please sign in to comment.