Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a1daf2

Browse files
authored
test: correct integration tests for eslint-plugin-markdown (typescript-eslint#3062)
* test: correct integration tests for eslint-plugin-markdown * test: add missing validation for Javascript and node
1 parent d94c6c9 commit 8a1daf2

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

tests/integration/fixtures/markdown/.eslintrc.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,17 @@ module.exports = {
1818
// Local version of @typescript-eslint/eslint-plugin
1919
'@typescript-eslint',
2020
],
21-
rules: {
22-
'@typescript-eslint/no-explicit-any': 'error',
23-
'no-console': 'error',
24-
},
21+
overrides: [
22+
{
23+
files: ['**/*.md'],
24+
processor: 'markdown/markdown',
25+
},
26+
{
27+
files: ['**/*.md/*.{js,ts,jsx,tsx,javascript,node}'],
28+
rules: {
29+
'@typescript-eslint/no-explicit-any': 'error',
30+
'no-console': 'error',
31+
},
32+
},
33+
],
2534
};

0 commit comments

Comments
 (0)