Skip to content

Commit

Permalink
Merge branch 'next' into dependabot/npm_and_yarn/next/eslint-plugin-n…
Browse files Browse the repository at this point in the history
…-16.3.0
  • Loading branch information
DavidAnson authored Nov 8, 2023
2 parents 8957f2d + 733cca1 commit 0d713cf
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions markdownlint-cli2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.3.0",
"eslint-plugin-unicorn": "49.0.0",
"execa": "8.0.1",
Expand Down
2 changes: 0 additions & 2 deletions test/markdownlint-cli2-test-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down Expand Up @@ -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"
});
Expand Down
2 changes: 0 additions & 2 deletions test/markdownlint-cli2-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0d713cf

Please sign in to comment.