diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..9c62828 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules +coverage +dist diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 662e597..0000000 --- a/.eslintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "./node_modules/kcd-scripts/eslint.js", - "rules": { - "max-lines-per-function": "off", - "testing-library/prefer-screen-queries": "off", - "testing-library/no-dom-import": "off", // We're not using React Testing Library here. We're wrapping DOM Testing Library directly - "@typescript-eslint/no-explicit-any": "off" // let's do better in the future - } -} diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..fa524c1 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,9 @@ +module.exports = { + extends: './node_modules/kcd-scripts/eslint.js', + rules: { + 'max-lines-per-function': 'off', + 'testing-library/prefer-screen-queries': 'off', + 'testing-library/no-dom-import': 'off', // We're not using React Testing Library here. We're wrapping DOM Testing Library directly + '@typescript-eslint/no-explicit-any': 'off', // let's do better in the future + }, +} diff --git a/.gitignore b/.gitignore index dd6ebe2..10c5744 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ dist # when working with contributors package-lock.json yarn.lock +pnpm-lock.yaml # cypress recordings during a test run are temporary files /cypress/videos/ diff --git a/package.json b/package.json index 309516f..62eac67 100644 --- a/package.json +++ b/package.json @@ -52,19 +52,6 @@ "peerDependencies": { "cypress": "^12.0.0 || ^13.0.0" }, - "eslintConfig": { - "extends": "./node_modules/kcd-scripts/eslint.js", - "rules": { - "import/prefer-default-export": "off", - "import/no-unassigned-import": "off", - "jest/valid-expect": "off" - } - }, - "eslintIgnore": [ - "node_modules", - "coverage", - "dist" - ], "repository": { "type": "git", "url": "https://github.com/kentcdodds/cypress-testing-library"