diff --git a/common/.eslintrc.js b/common/.eslintrc.js index 54b878e3..9c857fe0 100644 --- a/common/.eslintrc.js +++ b/common/.eslintrc.js @@ -10,6 +10,10 @@ module.exports = { files: ['**/*.ts'], plugins: ['@typescript-eslint'], parser: '@typescript-eslint/parser', + parserOptions: { + tsconfigRootDir: __dirname, + project: ['./tsconfig.json'], + }, }, ], rules: { diff --git a/common/tsconfig.json b/common/tsconfig.json new file mode 100644 index 00000000..158a5218 --- /dev/null +++ b/common/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "baseUrl": "../", + "moduleResolution": "node", + "noImplicitReturns": true, + "outDir": "lib", + "sourceMap": true, + "strict": true, + "target": "es2017" + }, + "include": ["**/*.ts"] +}