From 342b5e633a1729e48d208ee5f5cb65a093eda553 Mon Sep 17 00:00:00 2001 From: Kevin Van Lierde Date: Sat, 6 Aug 2022 01:27:45 +0200 Subject: [PATCH] chore: rename master to main, fix eslint issue --- .github/workflows/test.yml | 6 +++--- test/index.cjs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9015c74..01f5bd5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ on: push: branches: ['**'] pull_request: - branches: ['master'] + branches: ['main'] jobs: pre-test: @@ -19,7 +19,7 @@ jobs: - run: npm run lint:check branch-test: - if: github.ref_name != 'master' && success() + if: github.ref_name != 'main' && success() needs: pre-test runs-on: ${{ matrix.os }} strategy: @@ -37,7 +37,7 @@ jobs: - run: npm test test: - if: github.ref_name == 'master' && success() + if: github.ref_name == 'main' && success() needs: pre-test runs-on: ${{ matrix.os }} strategy: diff --git a/test/index.cjs b/test/index.cjs index d08aa6b..91894ed 100644 --- a/test/index.cjs +++ b/test/index.cjs @@ -3,7 +3,7 @@ const equal = require('assert-dir-equal') const Metalsmith = require('metalsmith') -/* eslint-disable-next-line node/no-missing-require */ +/* eslint-disable-next-line */ const drafts = require('../lib/index.cjs') describe('@metalsmith/drafts', function () {