Commit 235535b 1 parent 2038498 commit 235535b Copy full SHA for 235535b
File tree 4 files changed +21
-7
lines changed
4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -57946,11 +57946,11 @@ var __webpack_exports__ = {};
57946
57946
57947
57947
57948
57948
const core = __nccwpck_require__(2186);
57949
- const {"main": markdownlintCli2} = __nccwpck_require__(9247);
57949
+ const { "main": markdownlintCli2 } = __nccwpck_require__(9247);
57950
57950
57951
57951
const logMessage = core.info;
57952
57952
const outputFormatter = (options) => {
57953
- const {results} = options;
57953
+ const { results } = options;
57954
57954
for (const lintError of results) {
57955
57955
const {
57956
57956
errorContext,
@@ -58007,7 +58007,7 @@ const parameters = {
58007
58007
argv,
58008
58008
logMessage,
58009
58009
"optionsOverride": {
58010
- "outputFormatters": [[ outputFormatter] ]
58010
+ "outputFormatters": [ [ outputFormatter ] ]
58011
58011
}
58012
58012
};
58013
58013
markdownlintCli2(parameters).then(
Original file line number Diff line number Diff line change 2
2
3
3
import js from "@eslint/js" ;
4
4
import eslintPluginNode from "eslint-plugin-n" ;
5
+ import eslintPluginStylistic from "@stylistic/eslint-plugin" ;
5
6
import eslintPluginUnicorn from "eslint-plugin-unicorn" ;
6
7
7
8
export default [
8
9
js . configs . all ,
9
10
eslintPluginNode . configs [ "flat/recommended" ] ,
11
+ eslintPluginStylistic . configs . customize ( {
12
+ "arrowParens" : true ,
13
+ "commaDangle" : "never" ,
14
+ "jsx" : false ,
15
+ "quoteProps" : "always" ,
16
+ "quotes" : "double" ,
17
+ "semi" : true
18
+ } ) ,
10
19
eslintPluginUnicorn . configs [ "flat/all" ] ,
11
20
{
12
21
"languageOptions" : {
@@ -22,7 +31,11 @@ export default [
22
31
"one-var" : "off" ,
23
32
"sort-imports" : "off" ,
24
33
"sort-keys" : "off" ,
25
-
34
+
35
+ "@stylistic/array-bracket-spacing" : [ "error" , "always" ] ,
36
+ "@stylistic/dot-location" : [ "error" , "object" ] ,
37
+ "@stylistic/operator-linebreak" : [ "error" , "after" ] ,
38
+
26
39
"unicorn/no-array-callback-reference" : "off" ,
27
40
"unicorn/prefer-module" : "off" ,
28
41
"unicorn/prefer-top-level-await" : "off"
Original file line number Diff line number Diff line change 3
3
"use strict" ;
4
4
5
5
const core = require ( "@actions/core" ) ;
6
- const { "main" : markdownlintCli2 } = require ( "markdownlint-cli2" ) ;
6
+ const { "main" : markdownlintCli2 } = require ( "markdownlint-cli2" ) ;
7
7
8
8
const logMessage = core . info ;
9
9
const outputFormatter = ( options ) => {
10
- const { results} = options ;
10
+ const { results } = options ;
11
11
for ( const lintError of results ) {
12
12
const {
13
13
errorContext,
@@ -64,7 +64,7 @@ const parameters = {
64
64
argv,
65
65
logMessage,
66
66
"optionsOverride" : {
67
- "outputFormatters" : [ [ outputFormatter ] ]
67
+ "outputFormatters" : [ [ outputFormatter ] ]
68
68
}
69
69
} ;
70
70
markdownlintCli2 ( parameters ) . then (
Original file line number Diff line number Diff line change 29
29
},
30
30
"devDependencies" : {
31
31
"@eslint/js" : " 9.9.1" ,
32
+ "@stylistic/eslint-plugin" : " 2.7.2" ,
32
33
"@vercel/ncc" : " 0.38.1" ,
33
34
"eslint" : " 9.9.1" ,
34
35
"eslint-plugin-n" : " 17.10.2" ,
You can’t perform that action at this time.
0 commit comments