From e5f793e6f9eb68497a827184359ae9af4464d4bc Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Thu, 1 Feb 2024 12:51:04 -0500 Subject: [PATCH] Fix linting errors --- .github/workflows/ci.yml | 2 +- README.md | 2 +- eslint.config.js | 3 ++- tests/lib/plugin.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 828ba06a..3132584a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: lts/* - name: Install Packages run: npm install env: diff --git a/README.md b/README.md index b1d34d09..fa17bb21 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ npm install --save-dev eslint eslint-plugin-markdown In your `eslint.config.js` file, import `eslint-plugin-markdown` and included the recommended config to enable the Markdown processor on all `.md` files: ```js -// / eslint.config.js +// eslint.config.js import markdown from "eslint-plugin-markdown"; export default [ diff --git a/eslint.config.js b/eslint.config.js index f9103b15..9758d80b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -46,7 +46,8 @@ module.exports = [ } }, rules: { - "lines-around-comment": "off" + "lines-around-comment": "off", + "n/no-missing-import": "off" } } ]; diff --git a/tests/lib/plugin.js b/tests/lib/plugin.js index 6818d14e..296fb2a7 100644 --- a/tests/lib/plugin.js +++ b/tests/lib/plugin.js @@ -76,7 +76,7 @@ describe("LegacyESLint", () => { // the plugin, so we need to make sure it's resolvable and link it // if not. - + // eslint-disable-next-line n/no-missing-require -- Known possible failure. require.resolve("eslint-plugin-markdown"); } catch (error) { if (error.code === "MODULE_NOT_FOUND") {