0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-11-23 06:36:25 +01:00

Add @stylistic/eslint-plugin to ESLint configuration.

This commit is contained in:
David Anson 2024-09-01 15:27:29 -07:00
parent 20384985f1
commit 235535bdb7
4 changed files with 21 additions and 7 deletions

6
dist/index.js vendored
View file

@ -57946,11 +57946,11 @@ var __webpack_exports__ = {};
const core = __nccwpck_require__(2186);
const {"main": markdownlintCli2} = __nccwpck_require__(9247);
const { "main": markdownlintCli2 } = __nccwpck_require__(9247);
const logMessage = core.info;
const outputFormatter = (options) => {
const {results} = options;
const { results } = options;
for (const lintError of results) {
const {
errorContext,
@ -58007,7 +58007,7 @@ const parameters = {
argv,
logMessage,
"optionsOverride": {
"outputFormatters": [[outputFormatter]]
"outputFormatters": [ [ outputFormatter ] ]
}
};
markdownlintCli2(parameters).then(

View file

@ -2,11 +2,20 @@
import js from "@eslint/js";
import eslintPluginNode from "eslint-plugin-n";
import eslintPluginStylistic from "@stylistic/eslint-plugin";
import eslintPluginUnicorn from "eslint-plugin-unicorn";
export default [
js.configs.all,
eslintPluginNode.configs["flat/recommended"],
eslintPluginStylistic.configs.customize({
"arrowParens": true,
"commaDangle": "never",
"jsx": false,
"quoteProps": "always",
"quotes": "double",
"semi": true
}),
eslintPluginUnicorn.configs["flat/all"],
{
"languageOptions": {
@ -22,7 +31,11 @@ export default [
"one-var": "off",
"sort-imports": "off",
"sort-keys": "off",
"@stylistic/array-bracket-spacing": [ "error", "always" ],
"@stylistic/dot-location": [ "error", "object" ],
"@stylistic/operator-linebreak": [ "error", "after" ],
"unicorn/no-array-callback-reference": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-top-level-await": "off"

View file

@ -3,11 +3,11 @@
"use strict";
const core = require("@actions/core");
const {"main": markdownlintCli2} = require("markdownlint-cli2");
const { "main": markdownlintCli2 } = require("markdownlint-cli2");
const logMessage = core.info;
const outputFormatter = (options) => {
const {results} = options;
const { results } = options;
for (const lintError of results) {
const {
errorContext,
@ -64,7 +64,7 @@ const parameters = {
argv,
logMessage,
"optionsOverride": {
"outputFormatters": [[outputFormatter]]
"outputFormatters": [ [ outputFormatter ] ]
}
};
markdownlintCli2(parameters).then(

View file

@ -29,6 +29,7 @@
},
"devDependencies": {
"@eslint/js": "9.9.1",
"@stylistic/eslint-plugin": "2.7.2",
"@vercel/ncc": "0.38.1",
"eslint": "9.9.1",
"eslint-plugin-n": "17.10.2",