Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use main instead of master as default branch #346

Merged
merged 1 commit into from Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Expand Up @@ -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" }
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion .release-it.json
@@ -1,6 +1,6 @@
{
"git": {
"requireBranch": "master",
"requireBranch": "main",
"changelog": false
},
"github": {
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/consistent-spacing-between-blocks.js
Expand Up @@ -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'
}
};
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/handle-done-callback.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/max-top-level-suites.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-async-describe.js
Expand Up @@ -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: []
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-empty-description.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-exclusive-tests.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-exports.js
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-global-tests.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-hooks-for-single-case.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-hooks.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-identical-title.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-mocha-arrows.js
Expand Up @@ -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: []
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-nested-tests.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-pending-tests.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-return-and-callback.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-return-from-async.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-setup-in-describe.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-sibling-hooks.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-skipped-tests.js
Expand Up @@ -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: []
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-synchronous-tests.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-top-level-hooks.js
Expand Up @@ -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: []
},
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-arrow-callback.js
Expand Up @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/valid-suite-description.js
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/valid-test-description.js
Expand Up @@ -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: [
{
Expand Down