Skip to content

Commit c62c13f

Browse files
committed
feat: graphql glob that supports .qgl extensions
1 parent f62bcc4 commit c62c13f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"yaml",
1616
"yml",
1717
"markdown",
18-
"toml"
18+
"toml",
19+
"gql",
20+
"graphql"
1921
],
2022
"prettier.enable": false,
2123
"cSpell.words": ["antfu", "coderwyd", "rspack", "unocss"]

src/cli/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const vscodeSettingsString = `
2626
// Enable eslint for all supported languages
2727
"eslint.validate": [
2828
"svelte",
29-
"astro",
3029
"html",
3130
"css",
3231
"less",
@@ -36,6 +35,8 @@ export const vscodeSettingsString = `
3635
"yaml",
3736
"yml",
3837
"markdown",
39-
"toml"
38+
"toml",
39+
"gql",
40+
"graphql"
4041
]
4142
`

src/constants/glob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const GLOB_MARKDOWN = '**/*.md'
2727
export const GLOB_MARKDOWN_IN_MARKDOWN = '**/*.md/*.md'
2828
export const GLOB_YAML = '**/*.y?(a)ml'
2929
export const GLOB_TOML = '**/*.toml'
30-
export const GLOB_GRAPHQL = '**/*.graphql'
30+
export const GLOB_GRAPHQL = '**/*.{g,graph}ql'
3131

3232
export const GLOB_PRETTIER_LINT = [GLOB_SRC, GLOB_VUE]
3333

0 commit comments

Comments
 (0)