Skip to content

Commit ca7ca71

Browse files
committed
ci: fix linter issues
1 parent ede920d commit ca7ca71

File tree

3 files changed

+257
-3
lines changed

3 files changed

+257
-3
lines changed

.eslintrc.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
"node/shebang": "off",
8989
"node/no-deprecated-api": "warn",
9090
"no-useless-constructor": "warn",
91-
"no-return-await": "off"
91+
"no-return-await": "off",
92+
"import/extensions": ["error", "never", { "json": "always" }]
9293
},
9394

9495
"overrides": [
@@ -125,5 +126,17 @@
125126
]
126127
}
127128
}
128-
]
129+
],
130+
131+
"settings": {
132+
"import/resolver": {
133+
"typescript": {
134+
"alwaysTryTypes": true,
135+
"project": ["tsconfig.json"]
136+
},
137+
"node": {
138+
"extensions": [".js", ".ts", ".json"]
139+
}
140+
}
141+
}
129142
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"chai": "^4.4.1",
3131
"eslint": "^8.57.0",
3232
"eslint-config-airbnb-base": "^15.0.0",
33+
"eslint-import-resolver-typescript": "^4.4.4",
3334
"eslint-plugin-chai-friendly": "^1.0.0",
3435
"eslint-plugin-import": "^2.29.1",
3536
"eslint-plugin-jsx-a11y": "^6.9.0",

0 commit comments

Comments
 (0)