Skip to content

Commit

Permalink
chore: enable noImplicitAny
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Feb 16, 2024
1 parent 3b84f41 commit 77e053e
Show file tree
Hide file tree
Showing 41 changed files with 3,053 additions and 2,687 deletions.
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

0 comments on commit 77e053e

Please sign in to comment.