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 e2cf3d9
Show file tree
Hide file tree
Showing 38 changed files with 3,042 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.json')
}
]
},
Expand Down
Loading

0 comments on commit e2cf3d9

Please sign in to comment.