Skip to content

ESLint

Whether it's a multi-person collaboration or personal projects, code specifications are important. It can not only avoids basic syntax errors, but also ensures the readability of the code.

Config

The ESLint config of Vitify Admin is based on @vue/eslint-config-typescript which uses eslint-plugin-vue to parse .vue file and extends typescript-eslint to parse .ts file. The config also extends @vue/eslint-config-prettier which turns off rules of ESLint conflicting with Prettier.

Auto Linting on Save

Just install Microsoft's ESLint VSCode extension.

Lint with CLI command

pnpm lint
pnpm lint

Released under the MIT License.