A eslint config for vue project best practice.
npm install eslint @nice-move/eslint-config-vue --save-dev
Add to eslint.config.mjs
// example: eslint.config.mjs
export { default } from '@nice-move/eslint-config-vue';
Then run
eslint --fix .
Environment | pattern |
---|---|
browser |
.js , .html , .vue
|
node.js |
.mjs , .mts , .cjs , .cts
|
es modules |
.mjs , .mts , .js , .html , .vue
|
commonjs |
.cjs , source code in webpack project |
Rules can handle by prettier and garou is disabled by default.
- [ ] JSX for
vue
- [ ] typescript in
vue
SFC