diff --git a/index.js b/index.js index 62063f7..78dac13 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,20 @@ module.exports = { - extends: '@form8ion/mocha' + overrides: [{ + files: '**/*-test.js', + + env: {mocha: true}, + + plugins: ['mocha'], + + extends: ['plugin:mocha/recommended'], + + rules: { + 'mocha/no-skipped-tests': 'error', + 'mocha/no-mocha-arrows': 'off', + 'mocha/no-setup-in-describe': 'off', + 'mocha/no-hooks-for-single-case': 'off', + 'filenames/match-regex': ['error', '^[a-z0-9\\-\\.]+-test$'], + 'import/no-extraneous-dependencies': ['error', {devDependencies: true}] + } + }] }; diff --git a/package-lock.json b/package-lock.json index 7f9d4ca..4618226 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,7 @@ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.7.tgz", "integrity": "sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA==", "dev": true, + "optional": true, "requires": { "regenerator-runtime": "^0.13.2" }, @@ -37,7 +38,8 @@ "version": "0.13.3", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==", - "dev": true + "dev": true, + "optional": true } } }, @@ -365,6 +367,7 @@ "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-9.1.1.tgz", "integrity": "sha512-RCIX44M8nq3bW98vuxA6C2rM0wAnZlneFls2OVi5l2BvD/rsQ2R9CZYwPt/MYU6RbwMmlGhkuHdScwK6pJeUqA==", "dev": true, + "optional": true, "requires": { "@commitlint/execute-rule": "^9.1.1", "@commitlint/resolve-extends": "^9.1.1", @@ -617,14 +620,6 @@ "eslint-plugin-import": "2.22.0" } }, - "@form8ion/eslint-config-mocha": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@form8ion/eslint-config-mocha/-/eslint-config-mocha-1.2.8.tgz", - "integrity": "sha512-j6JyfbyUuqBJvrPoGRzMRXPE4W6BRZ6bqrijakFDzBGZs0g4zxBWuRsCqk9bjrvTIstqRuiFxU9AwtxndmM5Iw==", - "requires": { - "eslint-plugin-mocha": "6.3.0" - } - }, "@form8ion/remark-lint-preset": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@form8ion/remark-lint-preset/-/remark-lint-preset-1.0.3.tgz", @@ -1926,6 +1921,7 @@ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", "dev": true, + "optional": true, "requires": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.1.0", @@ -2656,27 +2652,12 @@ } }, "eslint-plugin-mocha": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-6.3.0.tgz", - "integrity": "sha512-Cd2roo8caAyG21oKaaNTj7cqeYRWW1I2B5SfpKRp0Ip1gkfwoR1Ow0IGlPWnNjzywdF4n+kHL8/9vM6zCJUxdg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-8.0.0.tgz", + "integrity": "sha512-n67etbWDz6NQM+HnTwZHyBwz/bLlYPOxUbw7bPuCyFujv7ZpaT/Vn6KTAbT02gf7nRljtYIjWcTxK/n8a57rQQ==", "requires": { - "eslint-utils": "^2.0.0", - "ramda": "^0.27.0" - }, - "dependencies": { - "eslint-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz", - "integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==", - "requires": { - "eslint-visitor-keys": "^1.1.0" - } - }, - "ramda": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", - "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==" - } + "eslint-utils": "^2.1.0", + "ramda": "^0.27.1" } }, "eslint-scope": { @@ -2693,7 +2674,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, "requires": { "eslint-visitor-keys": "^1.1.0" } @@ -5564,8 +5544,7 @@ "ramda": { "version": "0.27.1", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.1.tgz", - "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==", - "dev": true + "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==" }, "rc": { "version": "1.2.8", @@ -8102,6 +8081,7 @@ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.7.2.tgz", "integrity": "sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw==", "dev": true, + "optional": true, "requires": { "@babel/runtime": "^7.6.3" } diff --git a/package.json b/package.json index 902541e..b960b4d 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "travis-lint": "^1.0.0" }, "dependencies": { - "@form8ion/eslint-config-mocha": "1.2.8" + "eslint-plugin-mocha": "8.0.0" } }