File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const { withCategories } = require("./lib/rules")
15
15
*/
16
16
function toTableRow ( rule ) {
17
17
const mark = `${ rule . recommended ? "🌟" : "" } ${ rule . fixable ? "✒️" : "" } `
18
- const link = `[eslint-comments/<wbr>${ rule . name } ](./${ rule . name } .md)`
18
+ const link = `[@eslint-community/ eslint-comments/<wbr>${ rule . name } ](./${ rule . name } .md)`
19
19
const description = rule . description || "(no description)"
20
20
return `| ${ link } | ${ description } | ${ mark } |`
21
21
}
@@ -38,7 +38,7 @@ fs.writeFileSync(
38
38
path . resolve ( __dirname , "../docs/rules/README.md" ) ,
39
39
`# Available Rules
40
40
41
- - 🌟 mark: the rule which is enabled by \`eslint-comments/recommended\` preset.
41
+ - 🌟 mark: the rule which is enabled by \`@eslint-community/ eslint-comments/recommended\` preset.
42
42
- ✒️ mark: the rule which is fixable by \`eslint --fix\` command.
43
43
44
44
${ withCategories . map ( toCategorySection ) . join ( "\n" ) }
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ const rules = require("./lib/rules")
10
10
const { format } = require ( "./lib/utils" )
11
11
12
12
// recommended.js
13
- fs . writeFileSync (
14
- path . resolve ( __dirname , "../lib/configs/recommended.js" ) ,
15
- format ( `/** DON'T EDIT THIS FILE; was created by scripts. */
13
+ format ( `/** DON'T EDIT THIS FILE; was created by scripts. */
16
14
"use strict"
17
15
18
16
module.exports = {
@@ -24,5 +22,9 @@ module.exports = {
24
22
. join ( "\n " ) }
25
23
},
26
24
}
27
- ` )
25
+ ` ) . then ( ( content ) =>
26
+ fs . writeFileSync (
27
+ path . resolve ( __dirname , "../lib/configs/recommended.js" ) ,
28
+ content
29
+ )
28
30
)
You can’t perform that action at this time.
0 commit comments