add patterns for json and source blocks in markdown

because in flat config, the path is resolved relative to the config file.
The added patterns are for when the central flat config is used.
This commit is contained in:
Jeremy Meng 2024-08-15 19:39:53 -07:00 коммит произвёл Jeremy Meng
Родитель d86ec0cddc
Коммит 1764824335
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -188,7 +188,7 @@ export default (parser: FlatConfig.Parser): FlatConfig.ConfigArray => [
},
{
name: "@azure/azure-sdk/recommended-json",
files: ["*.json"],
files: ["*.json", "*/*/*.json"],
ignores: ["**/*.md/*.json", "**/src/**/*.json", "**/test/**/*.json"],
languageOptions: {
parser,

Просмотреть файл

@ -11,7 +11,7 @@ const markdownConfigs: FlatConfig.ConfigArray = [
},
{
name: "markdown-js-azsdk-customized",
files: ["*.md/*.js"],
files: ["*.md/*.js", "*/*/*.md/*.js"],
languageOptions: {
parserOptions: {
project: true,
@ -40,7 +40,7 @@ const markdownConfigs: FlatConfig.ConfigArray = [
},
{
name: "markdown-ts-azsdk-customized",
files: ["*.md/*.ts"],
files: ["*.md/*.ts", "*/*/*.md/*.ts"],
languageOptions: {
parserOptions: {
project: true,