diff --git a/.eslintrc.js b/.eslintrc.js index d23ffd5..bd783a6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,7 +3,7 @@ module.exports = { parserOptions: { ecmaVersion: "latest", // Allows the use of modern ECMAScript features sourceType: "module", // Allows for the use of imports - project: "./tsconfig.json" + project: ["./tsconfig.json", "./tsconfig.test.json"] }, extends: ["plugin:@typescript-eslint/recommended"], // Uses the linting rules from @typescript-eslint/eslint-plugin env: { diff --git a/package.json b/package.json index 16dc483..1fd37d1 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "start": "node dist/index.js", - "lint": "eslint . --fix", + "lint": "eslint src/ --fix", + "lint-test": "eslint test/ --fix", "test": "jest test/ --config jest.config.ts" }, "author": "", diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000..ef980f9 --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,8 @@ +{ + "extends": "@tsconfig/node-lts/tsconfig.json", + "compilerOptions": { + "outDir": "dist" + }, + "include": ["test"], + "exclude": ["node_modules"] + } \ No newline at end of file