From 3e82a47f21a0fb656fdf0f1eab0231b814ce7235 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:24:24 +0000 Subject: [PATCH 1/2] Bump eslint from 8.52.0 to 8.53.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.52.0 to 8.53.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.52.0...v8.53.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d4cb8b93..65e70dfe 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "cpy": "10.1.0", "cpy-cli": "5.0.0", "del": "7.1.0", - "eslint": "8.52.0", + "eslint": "8.53.0", "eslint-plugin-n": "16.2.0", "eslint-plugin-unicorn": "49.0.0", "execa": "8.0.1", From 733cca1b61e5f47d9669a0567aa6b5b9de058416 Mon Sep 17 00:00:00 2001 From: David Anson Date: Tue, 7 Nov 2023 19:13:12 -0800 Subject: [PATCH 2/2] Remove deprecated ESLint rules after version update. --- .eslintrc.json | 10 ---------- .../markdownlint-cli2-formatter-codequality.js | 1 - markdownlint-cli2.js | 5 +---- test/markdownlint-cli2-test-cases.js | 2 -- test/markdownlint-cli2-test.js | 2 -- 5 files changed, 1 insertion(+), 19 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bbdad06c..859c5227 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -22,32 +22,22 @@ ], "reportUnusedDisableDirectives": true, "rules": { - "array-bracket-spacing": ["error", "always"], - "array-element-newline": "off", "capitalized-comments": "off", "complexity": "off", - "function-call-argument-newline": "off", - "function-paren-newline": "off", "guard-for-in": "off", "id-length": "off", - "indent": ["error", 2], - "linebreak-style": "off", "max-lines-per-function": "off", "max-lines": "off", "max-params": "off", "max-statements": "off", "multiline-comment-style": ["error", "separate-lines"], - "multiline-ternary": "off", "no-console": "off", - "no-extra-parens": "off", "no-magic-numbers": "off", "no-plusplus": "off", "no-ternary": "off", "no-undef-init": "off", "no-undefined": "off", - "object-curly-spacing": ["error", "always"], "one-var": "off", - "padded-blocks": "off", "require-atomic-updates": "off", "sort-keys": "off", diff --git a/formatter-codequality/markdownlint-cli2-formatter-codequality.js b/formatter-codequality/markdownlint-cli2-formatter-codequality.js index 32c1a2f2..309d7a00 100644 --- a/formatter-codequality/markdownlint-cli2-formatter-codequality.js +++ b/formatter-codequality/markdownlint-cli2-formatter-codequality.js @@ -17,7 +17,6 @@ const createFingerprint = function createFingerprint (violation) { }; // Writes markdownlint-cli2 results to a GitLab Code Quality report JSON file. -// eslint-disable-next-line max-len // See: https://docs.gitlab.com/ee/ci/testing/code_quality.html#implementing-a-custom-tool const outputFormatter = (options, params) => { const { directory, results } = options; diff --git a/markdownlint-cli2.js b/markdownlint-cli2.js index 625d5089..59b6f126 100755 --- a/markdownlint-cli2.js +++ b/markdownlint-cli2.js @@ -5,7 +5,7 @@ "use strict"; // @ts-ignore -// eslint-disable-next-line camelcase, max-len, no-inline-comments, no-undef +// eslint-disable-next-line camelcase, no-inline-comments, no-undef const dynamicRequire = (typeof __non_webpack_require__ === "undefined") ? require : /* c8 ignore next */ __non_webpack_require__; // Capture native require implementation for dynamic loading of modules @@ -241,7 +241,6 @@ const processArgv = (argv) => { // Show help if missing arguments const showHelp = (logMessage) => { - /* eslint-disable max-len */ logMessage(`https://github.com/DavidAnson/markdownlint-cli2 Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] @@ -282,7 +281,6 @@ Cross-platform compatibility: The most compatible syntax for cross-platform support: $ markdownlint-cli2 "**/*.md" "#node_modules"` ); - /* eslint-enable max-len */ }; // Get (creating if necessary) and process a directory's info object @@ -914,7 +912,6 @@ const main = async (params) => { const baseDir = posixPath(baseDirSystem); // Output banner logMessage( - // eslint-disable-next-line max-len `${name || packageName} v${packageVersion} (${libraryName} v${libraryVersion})` ); // Merge and process args/argv diff --git a/test/markdownlint-cli2-test-cases.js b/test/markdownlint-cli2-test-cases.js index eb3fd3d9..8229b6c2 100644 --- a/test/markdownlint-cli2-test-cases.js +++ b/test/markdownlint-cli2-test-cases.js @@ -730,7 +730,6 @@ const testCases = ({ "args": [ "cfg/unrecognized.jsonc", "**/*.md" ], "exitCode": 2, "stderrRe": - // eslint-disable-next-line max-len /Configuration file "[^"]*cfg\/unrecognized\.jsonc" is unrecognized; its name should be \(or end with\) one of the supported types \(e\.g\., "\.markdownlint\.json" or "example\.markdownlint-cli2\.jsonc"\)\./u, "cwd": "config-files" }); @@ -765,7 +764,6 @@ const testCases = ({ "args": [ "--config", "cfg/unrecognized.jsonc", "**/*.md" ], "exitCode": 2, "stderrRe": - // eslint-disable-next-line max-len /Configuration file "[^"]*cfg\/unrecognized\.jsonc" is unrecognized; its name should be \(or end with\) one of the supported types \(e\.g\., "\.markdownlint\.json" or "example\.markdownlint-cli2\.jsonc"\)\./u, "cwd": "config-files" }); diff --git a/test/markdownlint-cli2-test.js b/test/markdownlint-cli2-test.js index 4a133e0a..432f10b9 100644 --- a/test/markdownlint-cli2-test.js +++ b/test/markdownlint-cli2-test.js @@ -9,13 +9,11 @@ const { "main": markdownlintCli2 } = require("../markdownlint-cli2.js"); const FsMock = require("./fs-mock"); const jsonSchemaVersion = "http://json-schema.org/draft-07/schema#"; -// eslint-disable-next-line max-len const markdownlintConfigSchemaUri = "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/schema/markdownlint-config-schema.json"; const markdownlintConfigSchemaDefinition = require("../schema/markdownlint-config-schema.json"); // @ts-ignore markdownlintConfigSchemaDefinition.$schema = jsonSchemaVersion; -// eslint-disable-next-line max-len const markdownlintCli2ConfigSchemaUri = "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/schema/markdownlint-cli2-config-schema.json"; const markdownlintCli2ConfigSchemaDefinition = require("../schema/markdownlint-cli2-config-schema.json");