Skip to content

feat: add includeDotFolders option#278

Open
mlmoravek wants to merge 2 commits intovuejs:mainfrom
mlmoravek:feat/includeDotFolders
Open

feat: add includeDotFolders option#278
mlmoravek wants to merge 2 commits intovuejs:mainfrom
mlmoravek:feat/includeDotFolders

Conversation

@mlmoravek
Copy link
Copy Markdown

When working with VitePress, I encountered an issue where the .vitepress folder wasn't included in the scan for Vue components because the leading dot defines it as a hidden folder. However, when I have components inside the .vitepress folder or any other dot leading folder and use type-aware lint rules (like the recommendedTypeChecked configuration), I get the following error:

Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.
Parser: vue-eslint-parser
Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.

This could be solved by setting the dot option of the fast-globe in groupVueFiles to true.
Therefore I propose adding a new option includeDotFolders to the configureVueProject function which can be set to do exactly this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant