diff --git a/.eslintrc.js b/.eslintrc.js index c4a3591..8ac4f3e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,7 +7,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', - project: ['./tsconfig.test.json', './tsconfig.json'], + project: ['./src/__tests__/tsconfig.json', './tsconfig.json'], tsconfigRootDir: __dirname, }, }, diff --git a/src/__tests__/tsconfig.json b/src/__tests__/tsconfig.json new file mode 100644 index 0000000..3235b58 --- /dev/null +++ b/src/__tests__/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "../../tsconfig.json", + "include": [".", "../@types"], + "exclude": [] +} diff --git a/tsconfig.json b/tsconfig.json index c91511c..edc22e2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,9 +3,11 @@ "compilerOptions": { "target": "ES6", "jsx": "react", - "declaration": true + "declaration": true, + "baseUrl": "." }, "include": ["src"], + "exclude": ["src/__tests__"], "ts-node": { "esm": true, "transpileOnly": true diff --git a/tsconfig.test.json b/tsconfig.test.json deleted file mode 100644 index 7c476d8..0000000 --- a/tsconfig.test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["src/__tests__", "src/@types"], - "exclude": [] -}