Skip to content

Commit

Permalink
add patterns for json and source blocks in markdown
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeremymeng committed Aug 22, 2024
1 parent d86ec0c commit 1764824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1764824

Please sign in to comment.