Skip to content

Commit a985f4d

Browse files
committed
fix eslint
1 parent 4ab2788 commit a985f4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ module.exports = {
2121
// Only lint the English pages because the Markdown for the other languages is auto-generated from English (via Crowdin).
2222
// But include all languages when running the ESLint extension in VS Code (in case the user has "eslint.validate": ["mdx"]),
2323
// otherwise there will be random errors since the non-English files don't match any ruleset.
24-
files: [`website/pages/${!isVSCode ? 'en/' : ''}**/*.{md,mdx}`],
24+
files: [`website/pages/${isVSCode ? '' : 'en/'}**/*.{md,mdx}`],
25+
excludedFiles: [
26+
`website/pages/${isVSCode ? '' : 'en/'}developing/graph-ts/*.md`,
27+
`website/pages/${isVSCode ? '' : 'en/'}querying/graph-client/*.md`,
28+
],
2529
parser: 'eslint-mdx',
2630
processor: 'mdx/remark',
2731
plugins: ['mdx'],

0 commit comments

Comments
 (0)