Skip to content

Commit

Permalink
fix: enable eslint @typescript-eslint/no-floating-promises rule
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin committed Jul 27, 2024
1 parent 14a3b93 commit 0d4e643
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,28 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns": [
"node_modules/**",
"**/dist/**",
"builtin/**"
"builtin/**",
"__mocks__",
"coverage",
"rollup.config.js",
"vitest.config.js",
"vite.config.js"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-floating-promises": "error",

/**
* Having a semicolon helps the optimizer interpret your code correctly.
Expand Down

0 comments on commit 0d4e643

Please sign in to comment.