Skip to content

Commit 0b04e68

Browse files
committed
add eslint
1 parent 4137bac commit 0b04e68

File tree

4 files changed

+608
-1
lines changed

4 files changed

+608
-1
lines changed

server/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@
3434
"@types/lodash": "^4.14.170",
3535
"@types/node": "^15.12.4",
3636
"@types/resolve": "1.20.0",
37+
"@typescript-eslint/eslint-plugin": "^5.9.0",
38+
"@typescript-eslint/parser": "^5.9.0",
3739
"coffeescript": "^2.5.1",
3840
"core-js": "^3.15.1",
41+
"eslint": "^8.6.0",
3942
"fast-glob": "^3.2.5",
4043
"lodash": "^4.17.21",
4144
"parse-gitignore": "^1.0.1",

server/src/services/.eslintrc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
node: true
5+
extends:
6+
- eslint:recommended
7+
- plugin:@typescript-eslint/recommended
8+
parser: '@typescript-eslint/parser'
9+
parserOptions:
10+
ecmaVersion: 13
11+
sourceType: module
12+
plugins:
13+
- '@typescript-eslint'
14+
rules:
15+
'@typescript-eslint/ban-ts-comment': off
16+
no-unexpected-multiline: off
17+
'@typescript-eslint/no-non-null-assertion': off

server/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
"lib": ["es2021"],
1212
// Most classes in LSP are asynchronously initialized
13-
"strictPropertyInitialization": false
13+
"strictPropertyInitialization": false,
14+
"skipLibCheck": true,
1415
},
1516
"include": [
1617
"src"

0 commit comments

Comments
 (0)