Skip to content

Commit

Permalink
chore: enable linting for promises
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Sep 7, 2023
1 parent fd13dfe commit bf60748
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
project: "./tsconfig.eslint.json",
},
rules: {
"prettier/prettier": ["warn"],
Expand All @@ -35,6 +36,8 @@ module.exports = {
"@typescript-eslint/no-unused-vars": ["error", { ignoreRestSiblings: true }],
"chai-expect/missing-assertion": 2,
"no-duplicate-imports": "error",
// "require-await": "error",
"@typescript-eslint/no-floating-promises": ["error"],
},
settings: {
node: {
Expand Down
10 changes: 10 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"./src",
"index.ts",
"./scripts",
"./test",
".eslintrc.js" // ESLint's config must be included
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"strictNullChecks": false,
"noImplicitAny": false
},
"include": ["./src", "index.ts", "./scripts", "./test"],
"include": ["./src", "index.ts", "./scripts"],
"files": ["./hardhat.config.ts"],
"watchOptions": {
"watchFile": "useFsEventsOnParentDirectory",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"strict": false
},
"include": ["./test", "./src"]
}

0 comments on commit bf60748

Please sign in to comment.