-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lint: switch to using eslint directly #827
Conversation
For me this cuts repeated lint run duration from ~25s to <2s. |
I've also been noticing that linting has been pretty slow lately. Cutting down the duration like this would be a big win.
Hoping to move to Vite (#671) before too long!
Are you sure this doesn't require Vite? Before listing recommendations, the second link says:
Can you tell whether .vue files are still being linted?
|
* this allows the use of the --cache flag for faster repeated linting (not supported in `vue-cli-service lint`) see: https://cli.vuejs.org/core-plugins/eslint.html#injected-commands * `vue-cli-service` is deprecated, and using `eslint` directly is recommended for vue 3 see: https://cli.vuejs.org/core-plugins/eslint.html see: https://vuejs.org/guide/scaling-up/tooling.html#linting
7aacf65
to
cc1c97d
Compare
This reverts commit 0f29461.
I don't think this PR has added Vite, and it seems to work 🤔
Yes & yes - check out this failing build: https://app.circleci.com/pipelines/github/getodk/central-frontend/1502/workflows/2554db3f-f934-4df5-88c3-267572382cc1/jobs/1816
|
I'm in the process of moving from Vue CLI to Vite (#671). As mentioned above, under Vite, |
@@ -31,7 +31,6 @@ module.exports = { | |||
css: { url: false } | |||
} | |||
}, | |||
lintOnSave: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to be an option of the ESLint plugin for Vue CLI, so I think we can remove it. From https://cli.vuejs.org/core-plugins/eslint.html#configuration:
The following option is under the section of
vue.config.js
. It is respected only when@vue/cli-plugin-eslint
is installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR is ready to merge, so I'm going to go ahead and approve and merge. I've made some changes myself, though nothing big. @alxndrsn, it'd be great if you could take a look at my changes once you have the chance just to confirm that they make sense.
vue-cli-service lint
) see: https://cli.vuejs.org/core-plugins/eslint.html#injected-commandsvue-cli-service
is deprecated, and usingeslint
directly is recommended for vue 3 see: https://cli.vuejs.org/core-plugins/eslint.html see: https://vuejs.org/guide/scaling-up/tooling.html#linting