Skip to content

Commit

Permalink
Update tsconfig.json and .eslintrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Oct 26, 2023
1 parent dd296a3 commit bb14fb2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ const eslintConfig =
settings : {},
parserOptions :
{
ecmaVersion : 2018,
ecmaVersion : 2022,
sourceType : 'module',
ecmaFeatures :
{
impliedStrict : true
},
lib : [ 'es2018' ],
lib : [ 'es2022' ],
project : 'tsconfig.json'
},
globals :
{
NodeJS : 'readonly'
},
rules :
{
'array-bracket-spacing' : [ 2, 'always',
Expand All @@ -44,6 +40,7 @@ const eslintConfig =
'comma-style' : 2,
'computed-property-spacing' : 2,
'constructor-super' : 2,
'curly' : [ 2, 'all' ],
'func-call-spacing' : 2,
'generator-star-spacing' : 2,
'guard-for-in' : 2,
Expand Down
15 changes: 10 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
"compileOnSave": true,
"compilerOptions":
{
"lib": [ "es2018" ],
"target": "es2018",
"lib": [ "es2021" ],
"target": "es2020",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"isolatedModules": true,
"strict": true,
"strict": true,
"outDir": "lib",
"declaration": true,
"declarationMap": true
},
"include": [ "src" ]
"include": [ "src" ],
"watchOptions": {
"watchFile": "useFsEvents",
"watchDirectory": "useFsEvents",
"fallbackPolling": "dynamicPriority",
"synchronousWatchDirectory": true
}
}

0 comments on commit bb14fb2

Please sign in to comment.