Skip to content

Commit

Permalink
ft: add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleyMasinde committed Jan 6, 2024
1 parent 2973310 commit aa1f15f
Show file tree
Hide file tree
Showing 6 changed files with 701 additions and 13 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
env:
commonjs: true
es2021: true
node: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
plugins:
- '@typescript-eslint'
rules:
indent:
- error
- tab
linebreak-style:
- error
- unix
quotes:
- error
- double
semi:
- error
- never
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "node dist/server.js",
"pretest": "npm run build",
"test": "jest",
"build": "tsc"
"build": "tsc",
"lint": "eslint ./src"
},
"keywords": [
"Template"
Expand All @@ -24,6 +25,9 @@
"@types/koa": "^2.13.12",
"@types/koa__router": "^12.0.4",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"supertest": "^6.3.3",
"ts-node": "^10.9.2",
Expand Down
Loading

0 comments on commit aa1f15f

Please sign in to comment.