Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump eslint from 8.52.0 to 8.53.0 #232

Merged
merged 2 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2.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