'How to add paths to "vue-cli-service lint"

I have a Vue CLI project with some extra directories, api/ and config/storybook/, and I'd like to include them when I run yarn run lint (which is vue-cli-service lint).

Is there a way to add these extra paths to the list that vue-cli-service lints? Perhaps something I can add in vue.config.js?

I know I can specify paths as extra arguments at the commandline, like:

vue-cli-service lint src/**/*.vue src/**/*.js config/**/*.js api/**/*.js

...but then I have to also include src/ and try to include whatever else vue-cli-service was already doing. What's the cleanest way to add directories?

I tried searching the source code for the linter service, but I wasn't able to find where the defaults are defined. I would expect to see "*.vue" somewhere in the cli-plugin-eslint directory, but I must be looking in the wrong spot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source