Skip to content

Commit 739919d

Browse files
committed
feedback for tooling/linting
1 parent a1c0e75 commit 739919d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/guide/scaling-up/tooling.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ The Vue team maintains [eslint-plugin-vue](https://github.com/vuejs/eslint-plugi
9292

9393
Users previously using Vue CLI may be used to having linters configured via webpack loaders. However when using a Vite-based build setup, our general recommendation is:
9494

95-
1. Setup ESLint via IDE extensions during development so you get linter feedback right in your editor. This also avoids unnecessary linting cost when starting the dev server.
95+
1. `npm install -D eslint eslint-plugin-vue`, then follow `eslint-plugin-vue`'s [configuration guide](https://eslint.vuejs.org/user-guide/#usage).
9696

97-
2. Run linting as part of the production build command.
97+
2. Setup ESLint IDE extensions, for example [ESLint for VSCode](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint), so you get linter feedback right in your editor during development. This also avoids unnecessary linting cost when starting the dev server.
9898

99-
3. Setup tools like [lint-staged](https://github.com/okonet/lint-staged) to automatically lint modified files on git commit.
99+
3. Run ESLint as part of the production build command, so you get full linter feedback before shipping to production.
100+
101+
4. (Optional) Setup tools like [lint-staged](https://github.com/okonet/lint-staged) to automatically lint modified files on git commit.
100102

101103
## Formatting
102104

0 commit comments

Comments
 (0)