Skip to content

Commit bb14fb2

Browse files
committed
Update tsconfig.json and .eslintrc.js
1 parent dd296a3 commit bb14fb2

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.eslintrc.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ const eslintConfig =
1313
settings : {},
1414
parserOptions :
1515
{
16-
ecmaVersion : 2018,
16+
ecmaVersion : 2022,
1717
sourceType : 'module',
1818
ecmaFeatures :
1919
{
2020
impliedStrict : true
2121
},
22-
lib : [ 'es2018' ],
22+
lib : [ 'es2022' ],
2323
project : 'tsconfig.json'
2424
},
25-
globals :
26-
{
27-
NodeJS : 'readonly'
28-
},
2925
rules :
3026
{
3127
'array-bracket-spacing' : [ 2, 'always',
@@ -44,6 +40,7 @@ const eslintConfig =
4440
'comma-style' : 2,
4541
'computed-property-spacing' : 2,
4642
'constructor-super' : 2,
43+
'curly' : [ 2, 'all' ],
4744
'func-call-spacing' : 2,
4845
'generator-star-spacing' : 2,
4946
'guard-for-in' : 2,

tsconfig.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@
22
"compileOnSave": true,
33
"compilerOptions":
44
{
5-
"lib": [ "es2018" ],
6-
"target": "es2018",
5+
"lib": [ "es2021" ],
6+
"target": "es2020",
77
"module": "commonjs",
88
"moduleResolution": "node",
9-
"esModuleInterop": true,
10-
"isolatedModules": true,
9+
"strict": true,
1110
"strict": true,
1211
"outDir": "lib",
1312
"declaration": true,
1413
"declarationMap": true
1514
},
16-
"include": [ "src" ]
15+
"include": [ "src" ],
16+
"watchOptions": {
17+
"watchFile": "useFsEvents",
18+
"watchDirectory": "useFsEvents",
19+
"fallbackPolling": "dynamicPriority",
20+
"synchronousWatchDirectory": true
21+
}
1722
}

0 commit comments

Comments
 (0)