Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable noImplicitAny #519

Merged
merged 11 commits into from
Feb 27, 2024
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,32 @@
}
}
},
{
"files": [
"**/*.test.ts"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import"
],
"extends": [
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.test.json"
},
"settings": {
"import/internal-regex": "^@uploadcare/",
"import/extensions": [".ts", ".js"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".js"]
}
}
},
{
"files": [
"**/*.js",
Expand Down
8 changes: 7 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import path from 'path'
import url from 'url'

const __dirname = url.fileURLToPath(new URL('.', import.meta.url))

export default {
testEnvironment: 'node',
testTimeout: 15000,
Expand All @@ -9,7 +14,8 @@ export default {
'^.+\\.ts$': [
'ts-jest',
{
useESM: true
useESM: true,
tsconfig: path.resolve(__dirname, './tsconfig.test.json')
}
]
},
Expand Down
Loading
Loading