You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{globalIgnores}from'eslint/config'import{defineConfigWithVueTs,vueTsConfigs}from'@vue/eslint-config-typescript'importpluginVuefrom'eslint-plugin-vue'importpluginVitestfrom'@vitest/eslint-plugin'importpluginPlaywrightfrom'eslint-plugin-playwright'importpluginOxlintfrom'eslint-plugin-oxlint'importskipFormattingfrom'@vue/eslint-config-prettier/skip-formatting'// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:// import { configureVueProject } from '@vue/eslint-config-typescript'// configureVueProject({ scriptLangs: ['ts', 'tsx'] })// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setupexportdefaultdefineConfigWithVueTs({name: 'app/files-to-lint',files: ['**/*.{ts,mts,tsx,vue}'],},globalIgnores(['**/dist/**','**/dist-ssr/**','**/coverage/**']),pluginVue.configs['flat/essential'],vueTsConfigs.recommended,{
...pluginVitest.configs.recommended,files: ['src/**/__tests__/*'],},{
...pluginPlaywright.configs['flat/recommended'],files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],},
...pluginOxlint.configs['flat/recommended'],skipFormatting,)
I don't use gleam and you don't provide a reproducible repo so I can't try it, but I think you can change the parser configuration.
See the documentation:
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
Script block with
lang="gleam"
should have been skippedWhat actually happened?
Block was not skipped, and eslint ran into a parsing error
Repository to reproduce this issue
You can paste the code above into any
pnpm create vue
app. Let me know if you need a repoThe text was updated successfully, but these errors were encountered: