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");