Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 22fd3d1

Browse files
author
yona3
committed
✨ Add Linter
1 parent c457f38 commit 22fd3d1

File tree

5 files changed

+1338
-14
lines changed

5 files changed

+1338
-14
lines changed

.eslintrc.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
env: {
3+
es2021: true,
4+
node: true,
5+
},
6+
extends: [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier",
10+
],
11+
parser: "@typescript-eslint/parser",
12+
parserOptions: {
13+
ecmaVersion: 12,
14+
sourceType: "module",
15+
},
16+
plugins: ["@typescript-eslint"],
17+
rules: {
18+
"@typescript-eslint/no-unused-vars": [
19+
2,
20+
{ args: "all", argsIgnorePattern: "^_" },
21+
],
22+
},
23+
};

.prettierrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
semi: true,
3+
singleQuote: false
4+
}

.prettierrc.json

-4
This file was deleted.

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
"dependencies": {
2323
"@prisma/client": "^2.24.1",
2424
"express": "^4.17.1",
25-
"prisma": "^2.24.1"
25+
"prisma": "^2.24.1",
26+
"@typescript-eslint/eslint-plugin": "^4.22.0",
27+
"@typescript-eslint/parser": "^4.22.0",
28+
"eslint": "^7.24.0",
29+
"eslint-config-prettier": "^8.2.0",
30+
"eslint-config-standard": "^16.0.2",
31+
"eslint-plugin-import": "^2.22.1",
32+
"eslint-plugin-node": "^11.1.0",
33+
"eslint-plugin-promise": "^5.1.0",
34+
"prettier": "^2.2.1"
2635
}
2736
}

0 commit comments

Comments
 (0)