Skip to content

Commit

Permalink
up ES target version and added floating promise rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Feb 4, 2022
1 parent 6d0c62f commit 16c9afd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
],
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/naming-convention": [
"error",
{
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*~
*.d.ts
*.js
*.js.map
*.log

./test/*.js
Expand Down
17 changes: 12 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{
"compilerOptions": {
"target": "ES6",
"target": "ES2021",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
// "strict": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"noUnusedLocals": false,
"skipLibCheck": true,
"esModuleInterop": true,
"sourceMap": true,
"outDir": "lib",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2020.promise",
"dom"
]
},
"include": [
"./src/**/*.ts"
],
"exclude": [
"**/*.test.ts",
"doc",
"node_modules",
"lib",
"node_modules"
"doc"
]
}
}

0 comments on commit 16c9afd

Please sign in to comment.