From 9118c6855bda287f91562c2a0be7745d7a68dabc Mon Sep 17 00:00:00 2001 From: Txabi Lopez Date: Mon, 29 Apr 2024 11:43:57 +0100 Subject: [PATCH] chore: remove support for eslint-plugin-mocha agreed with Carlos Serrano. we are not using mocha anymore in any relevant package BREAKING CHANGE: remove support for eslint-plugin-mocha Issues: MOL-29362 --- README.md | 8 -------- configurations/mocha.js | 22 ---------------------- mocha.js | 1 - package.json | 1 - yarn.lock | 28 +--------------------------- 5 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 configurations/mocha.js delete mode 100644 mocha.js diff --git a/README.md b/README.md index 39953f0..f4b5673 100644 --- a/README.md +++ b/README.md @@ -47,14 +47,6 @@ module.exports = { }; ``` -### mocha - -```js -module.exports = { - "extends": "mailonline/mocha" -}; -``` - ### react ```js diff --git a/configurations/mocha.js b/configurations/mocha.js deleted file mode 100644 index e1ee15b..0000000 --- a/configurations/mocha.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = { - "env": { - "mocha": true - }, - "plugins": [ - "mocha" - ], - "rules": { - "mocha/max-top-level-suites": [ - 2, - { - "limit": 1 - } - ], - "mocha/no-hooks-for-single-case": 1, - "mocha/no-exclusive-tests": 2, - "mocha/no-identical-title": 2, - "mocha/no-nested-tests": 2, - "mocha/no-return-and-callback": 2, - "mocha/no-top-level-hooks": 2 - } -}; diff --git a/mocha.js b/mocha.js deleted file mode 100644 index 1e36ad8..0000000 --- a/mocha.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./configurations/mocha'); diff --git a/package.json b/package.json index 0d0f31b..b1f964d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "eslint-plugin-jest": "^28.2.0", "eslint-plugin-jsdoc": "^48.2.3", "eslint-plugin-lodash": "^7.4.0", - "eslint-plugin-mocha": "^10.4.2", "eslint-plugin-no-use-extend-native": "^0.5.0", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-react": "^7.34.1", diff --git a/yarn.lock b/yarn.lock index 09183a0..6d70919 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1723,15 +1723,6 @@ eslint-plugin-lodash@^7.4.0: dependencies: lodash "^4.17.21" -eslint-plugin-mocha@^10.4.2: - version "10.4.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.3.tgz#bf641379d9f1c7d6a84646a3fc1a0baa50da8bfd" - integrity sha512-emc4TVjq5Ht0/upR+psftuz6IBG5q279p+1dSRDeHf+NS9aaerBi3lXKo1SEzwC29hFIW21gO89CEWSvRsi8IQ== - dependencies: - eslint-utils "^3.0.0" - globals "^13.24.0" - rambda "^7.4.0" - eslint-plugin-no-use-extend-native@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/eslint-plugin-no-use-extend-native/-/eslint-plugin-no-use-extend-native-0.5.0.tgz#d6855e3a823a819b467cf7df56adca57de741bf9" @@ -1806,18 +1797,6 @@ eslint-scope@^7.2.2: esrecurse "^4.3.0" estraverse "^5.2.0" -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: version "3.4.3" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" @@ -2219,7 +2198,7 @@ glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -globals@^13.19.0, globals@^13.24.0: +globals@^13.19.0: version "13.24.0" resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== @@ -4128,11 +4107,6 @@ queue-microtask@^1.2.2: resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== -rambda@^7.4.0: - version "7.5.0" - resolved "https://registry.yarnpkg.com/rambda/-/rambda-7.5.0.tgz#1865044c59bc0b16f63026c6e5a97e4b1bbe98fe" - integrity sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA== - rc@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"