From 48fdf2567fddecbfd955f877f771d746926ef440 Mon Sep 17 00:00:00 2001 From: Mathias Schreck Date: Fri, 16 Feb 2024 13:34:41 +0100 Subject: [PATCH] Use main instead of master as default branch --- .eslintrc.json | 2 +- .release-it.json | 2 +- README.md | 2 +- lib/rules/consistent-spacing-between-blocks.js | 2 +- lib/rules/handle-done-callback.js | 2 +- lib/rules/max-top-level-suites.js | 2 +- lib/rules/no-async-describe.js | 2 +- lib/rules/no-empty-description.js | 2 +- lib/rules/no-exclusive-tests.js | 2 +- lib/rules/no-exports.js | 2 +- lib/rules/no-global-tests.js | 2 +- lib/rules/no-hooks-for-single-case.js | 2 +- lib/rules/no-hooks.js | 2 +- lib/rules/no-identical-title.js | 2 +- lib/rules/no-mocha-arrows.js | 2 +- lib/rules/no-nested-tests.js | 2 +- lib/rules/no-pending-tests.js | 2 +- lib/rules/no-return-and-callback.js | 2 +- lib/rules/no-return-from-async.js | 2 +- lib/rules/no-setup-in-describe.js | 2 +- lib/rules/no-sibling-hooks.js | 2 +- lib/rules/no-skipped-tests.js | 2 +- lib/rules/no-synchronous-tests.js | 2 +- lib/rules/no-top-level-hooks.js | 2 +- lib/rules/prefer-arrow-callback.js | 2 +- lib/rules/valid-suite-description.js | 2 +- lib/rules/valid-test-description.js | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f4a1ca6..b4f64d5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -302,7 +302,7 @@ "eslint-plugin/require-meta-docs-description": ["error", { "pattern": "^(Enforce|Require|Disallow)" }], "eslint-plugin/require-meta-docs-url": [ "error", - { "pattern": "https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/{{name}}.md" } + { "pattern": "https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/{{name}}.md" } ] } }, diff --git a/.release-it.json b/.release-it.json index ec2740b..ed26234 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,6 +1,6 @@ { "git": { - "requireBranch": "master", + "requireBranch": "main", "changelog": false }, "github": { diff --git a/README.md b/README.md index 0ce8fa0..bc67cf2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![NPM Version](https://img.shields.io/npm/v/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha) [![GitHub Actions status](https://github.com/lo1tuma/eslint-plugin-mocha/workflows/CI/badge.svg)](https://github.com/lo1tuma/eslint-plugin-mocha/actions) -[![Coverage Status](https://img.shields.io/coveralls/lo1tuma/eslint-plugin-mocha/master.svg?style=flat)](https://coveralls.io/r/lo1tuma/eslint-plugin-mocha) +[![Coverage Status](https://img.shields.io/coveralls/lo1tuma/eslint-plugin-mocha/main.svg?style=flat)](https://coveralls.io/r/lo1tuma/eslint-plugin-mocha) [![NPM Downloads](https://img.shields.io/npm/dm/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha) # eslint-plugin-mocha diff --git a/lib/rules/consistent-spacing-between-blocks.js b/lib/rules/consistent-spacing-between-blocks.js index 24a1e19..0b2d129 100644 --- a/lib/rules/consistent-spacing-between-blocks.js +++ b/lib/rules/consistent-spacing-between-blocks.js @@ -9,7 +9,7 @@ exports.meta = { docs: { description: 'Require consistent spacing between blocks', url: - 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/' + + 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/' + 'consistent-spacing-between-blocks.md' } }; diff --git a/lib/rules/handle-done-callback.js b/lib/rules/handle-done-callback.js index 242dbed..dc324cb 100644 --- a/lib/rules/handle-done-callback.js +++ b/lib/rules/handle-done-callback.js @@ -8,7 +8,7 @@ module.exports = { type: 'problem', docs: { description: 'Enforces handling of callbacks for async tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/handle-done-callback.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/handle-done-callback.md' }, schema: [ { diff --git a/lib/rules/max-top-level-suites.js b/lib/rules/max-top-level-suites.js index 7363fab..fd37751 100644 --- a/lib/rules/max-top-level-suites.js +++ b/lib/rules/max-top-level-suites.js @@ -19,7 +19,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Enforce the number of top-level suites in a single file', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/max-top-level-suites.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/max-top-level-suites.md' }, schema: [ { diff --git a/lib/rules/no-async-describe.js b/lib/rules/no-async-describe.js index 4001726..d0013c6 100644 --- a/lib/rules/no-async-describe.js +++ b/lib/rules/no-async-describe.js @@ -13,7 +13,7 @@ module.exports = { type: 'problem', docs: { description: 'Disallow async functions passed to describe', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-async-describe.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-async-describe.md' }, fixable: 'code', schema: [] diff --git a/lib/rules/no-empty-description.js b/lib/rules/no-empty-description.js index bdda4f0..50b2aad 100644 --- a/lib/rules/no-empty-description.js +++ b/lib/rules/no-empty-description.js @@ -44,7 +44,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow empty test descriptions', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-empty-description.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-empty-description.md' }, schema: [ { diff --git a/lib/rules/no-exclusive-tests.js b/lib/rules/no-exclusive-tests.js index 539288d..cff97d7 100644 --- a/lib/rules/no-exclusive-tests.js +++ b/lib/rules/no-exclusive-tests.js @@ -7,7 +7,7 @@ module.exports = { type: 'problem', docs: { description: 'Disallow exclusive tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-exclusive-tests.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-exclusive-tests.md' }, schema: [] }, diff --git a/lib/rules/no-exports.js b/lib/rules/no-exports.js index a37996a..dbbfd65 100644 --- a/lib/rules/no-exports.js +++ b/lib/rules/no-exports.js @@ -6,7 +6,7 @@ module.exports = { meta: { docs: { description: 'Disallow exports from test files', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-exports.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-exports.md' }, messages: { unexpectedExport: 'Unexpected export from a test file' diff --git a/lib/rules/no-global-tests.js b/lib/rules/no-global-tests.js index 9c22a95..7364823 100644 --- a/lib/rules/no-global-tests.js +++ b/lib/rules/no-global-tests.js @@ -7,7 +7,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow global tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-global-tests.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-global-tests.md' }, schema: [] }, diff --git a/lib/rules/no-hooks-for-single-case.js b/lib/rules/no-hooks-for-single-case.js index 684ad52..1bf5daf 100644 --- a/lib/rules/no-hooks-for-single-case.js +++ b/lib/rules/no-hooks-for-single-case.js @@ -15,7 +15,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow hooks for a single test or test suite', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-hooks-for-single-case.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-hooks-for-single-case.md' }, schema: [ { diff --git a/lib/rules/no-hooks.js b/lib/rules/no-hooks.js index a852299..d0c8d4f 100644 --- a/lib/rules/no-hooks.js +++ b/lib/rules/no-hooks.js @@ -7,7 +7,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow hooks', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-hooks.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-hooks.md' }, schema: [ { diff --git a/lib/rules/no-identical-title.js b/lib/rules/no-identical-title.js index bc85e2f..e583922 100644 --- a/lib/rules/no-identical-title.js +++ b/lib/rules/no-identical-title.js @@ -22,7 +22,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow identical titles', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-identical-title.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-identical-title.md' }, schema: [] }, diff --git a/lib/rules/no-mocha-arrows.js b/lib/rules/no-mocha-arrows.js index ca97fc1..9ec2fb5 100644 --- a/lib/rules/no-mocha-arrows.js +++ b/lib/rules/no-mocha-arrows.js @@ -76,7 +76,7 @@ module.exports = { docs: { description: 'Disallow arrow functions as arguments to mocha functions', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-mocha-arrows.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-mocha-arrows.md' }, fixable: 'code', schema: [] diff --git a/lib/rules/no-nested-tests.js b/lib/rules/no-nested-tests.js index 7fc3433..270c52b 100644 --- a/lib/rules/no-nested-tests.js +++ b/lib/rules/no-nested-tests.js @@ -9,7 +9,7 @@ module.exports = { type: 'problem', docs: { description: 'Disallow tests to be nested within other tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-nested-tests.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-nested-tests.md' }, schema: [] }, diff --git a/lib/rules/no-pending-tests.js b/lib/rules/no-pending-tests.js index 486d3d1..a042838 100644 --- a/lib/rules/no-pending-tests.js +++ b/lib/rules/no-pending-tests.js @@ -7,7 +7,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow pending tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-pending-tests.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-pending-tests.md' }, schema: [] }, diff --git a/lib/rules/no-return-and-callback.js b/lib/rules/no-return-and-callback.js index ab1c75a..4029ae8 100644 --- a/lib/rules/no-return-and-callback.js +++ b/lib/rules/no-return-and-callback.js @@ -24,7 +24,7 @@ module.exports = { type: 'problem', docs: { description: 'Disallow returning in a test or hook function that uses a callback', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-return-and-callback.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-return-and-callback.md' }, schema: [] }, diff --git a/lib/rules/no-return-from-async.js b/lib/rules/no-return-from-async.js index ed13d3b..dc9e4aa 100644 --- a/lib/rules/no-return-from-async.js +++ b/lib/rules/no-return-from-async.js @@ -18,7 +18,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow returning from an async test or hook', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-return-from-async.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-return-from-async.md' }, schema: [] }, diff --git a/lib/rules/no-setup-in-describe.js b/lib/rules/no-setup-in-describe.js index 0357406..7da6bd3 100644 --- a/lib/rules/no-setup-in-describe.js +++ b/lib/rules/no-setup-in-describe.js @@ -40,7 +40,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow setup in describe blocks', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-setup-in-describe.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-setup-in-describe.md' }, schema: [] }, diff --git a/lib/rules/no-sibling-hooks.js b/lib/rules/no-sibling-hooks.js index fbd596d..6ec0245 100644 --- a/lib/rules/no-sibling-hooks.js +++ b/lib/rules/no-sibling-hooks.js @@ -17,7 +17,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow duplicate uses of a hook at the same level inside a describe', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-sibling-hooks.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-sibling-hooks.md' }, schema: [] }, diff --git a/lib/rules/no-skipped-tests.js b/lib/rules/no-skipped-tests.js index b591dd9..9c11e79 100644 --- a/lib/rules/no-skipped-tests.js +++ b/lib/rules/no-skipped-tests.js @@ -6,7 +6,7 @@ module.exports = { meta: { docs: { description: 'Disallow skipped tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-skipped-tests.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-skipped-tests.md' }, type: 'problem', schema: [] diff --git a/lib/rules/no-synchronous-tests.js b/lib/rules/no-synchronous-tests.js index dfe856a..e649e1f 100644 --- a/lib/rules/no-synchronous-tests.js +++ b/lib/rules/no-synchronous-tests.js @@ -44,7 +44,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Disallow synchronous tests', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-synchronous-tests.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-synchronous-tests.md' }, schema: [ { diff --git a/lib/rules/no-top-level-hooks.js b/lib/rules/no-top-level-hooks.js index 1ea75ae..03448f7 100644 --- a/lib/rules/no-top-level-hooks.js +++ b/lib/rules/no-top-level-hooks.js @@ -7,7 +7,7 @@ module.exports = { type: 'problem', docs: { description: 'Disallow top-level hooks', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-top-level-hooks.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/no-top-level-hooks.md' }, schema: [] }, diff --git a/lib/rules/prefer-arrow-callback.js b/lib/rules/prefer-arrow-callback.js index 3d584ed..958b059 100644 --- a/lib/rules/prefer-arrow-callback.js +++ b/lib/rules/prefer-arrow-callback.js @@ -120,7 +120,7 @@ module.exports = { description: 'Require using arrow functions for callbacks', category: 'ECMAScript 6', recommended: false, - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/prefer-arrow-callback.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/prefer-arrow-callback.md' }, schema: [ diff --git a/lib/rules/valid-suite-description.js b/lib/rules/valid-suite-description.js index e991a27..958c3d4 100644 --- a/lib/rules/valid-suite-description.js +++ b/lib/rules/valid-suite-description.js @@ -51,7 +51,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Require suite descriptions to match a pre-configured regular expression', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/valid-suite-description.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/valid-suite-description.md' }, schema: [ { diff --git a/lib/rules/valid-test-description.js b/lib/rules/valid-test-description.js index 427e8c0..f71603e 100644 --- a/lib/rules/valid-test-description.js +++ b/lib/rules/valid-test-description.js @@ -50,7 +50,7 @@ module.exports = { type: 'suggestion', docs: { description: 'Require test descriptions to match a pre-configured regular expression', - url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/valid-test-description.md' + url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/docs/rules/valid-test-description.md' }, schema: [ {