diff --git a/package.json b/package.json index 4c1d62a..7d08585 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "build": "tsc --outDir build && ncc -m build -o dist ./index.ts", "prettify": "prettier --write src/**/*.ts index.ts", "lint": "eslint ./src --ext .ts", - "lint:test": "eslint ./tests --ext .ts", + "lint:test": "eslint --config ./tests/.eslintrc.json ./tests --ext .ts", "prepare": "husky", "test": "jest --config ./tests/jest.config.ts", "qa": "yarn lint && yarn lint:test && yarn test" diff --git a/tests/.eslintrc.js b/tests/.eslintrc.js deleted file mode 100644 index e8a6407..0000000 --- a/tests/.eslintrc.js +++ /dev/null @@ -1,9 +0,0 @@ -const path = require('path'); - -module.exports = { - extends: path.resolve(__dirname, '../.eslintrc.json'), - parserOptions: { - project: './tsconfig.json', - tsconfigRootDir: __dirname, - }, -}; diff --git a/tests/.eslintrc.json b/tests/.eslintrc.json new file mode 100644 index 0000000..8629a57 --- /dev/null +++ b/tests/.eslintrc.json @@ -0,0 +1,19 @@ +{ + "extends": [ + "../.eslintrc.json" + ], + "parserOptions": { + "project": true, + "tsconfigRootDir": "./" + }, + "overrides": [ + { + "files": ["./**/*.ts"], + "rules": { + "@typescript-eslint/unbound-method": "off", + "@typescript-eslint/require-await": "off", + "@typescript-eslint/no-floating-promises": "off" + } + } + ] +}