Skip to content

Commit

Permalink
feat: update markdown code blocks rules (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored Feb 16, 2021
1 parent cac3b9c commit 0b5ce18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ module.exports = {
},
},
{
// **/*.md/*.js references code blocks inside markdown files
files: ['**/*.md/*.js'],
rules: {
'no-undef': 0,
Expand All @@ -330,6 +331,11 @@ module.exports = {
strict: 0,
'import/no-unresolved': 0,
'node/no-missing-require': 0,

// code blocks in markdown files have autogenerated file names
'unicorn/filename-case': 0,

'node/no-unpublished-require': 0,
},
},
],
Expand Down

0 comments on commit 0b5ce18

Please sign in to comment.