Skip to content

Commit

Permalink
Merge pull request #519 from uploadcare/chore/enable-no-implicit-any
Browse files Browse the repository at this point in the history
chore: enable `noImplicitAny`
  • Loading branch information
nd0ut authored Feb 27, 2024
2 parents 4540c45 + 9042b29 commit 7db3b63
Show file tree
Hide file tree
Showing 64 changed files with 4,409 additions and 12,821 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 7db3b63

Please sign in to comment.