Skip to content

Commit 0b5ce18

Browse files
authored
feat: update markdown code blocks rules (#112)
1 parent cac3b9c commit 0b5ce18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ module.exports = {
315315
},
316316
},
317317
{
318+
// **/*.md/*.js references code blocks inside markdown files
318319
files: ['**/*.md/*.js'],
319320
rules: {
320321
'no-undef': 0,
@@ -330,6 +331,11 @@ module.exports = {
330331
strict: 0,
331332
'import/no-unresolved': 0,
332333
'node/no-missing-require': 0,
334+
335+
// code blocks in markdown files have autogenerated file names
336+
'unicorn/filename-case': 0,
337+
338+
'node/no-unpublished-require': 0,
333339
},
334340
},
335341
],

0 commit comments

Comments
 (0)