@u-sho/eslint-config-vue3-ts
Vue 3 + TypeScript' s ESLint rules for u-sho.
Installation
npm i -D eslint @u-sho/eslint-config-vue3-ts
Usage
Once the @u-sho/eslint-config-vue3-ts
package is installed, you can use it in the extends
section of your ESLint configuration.
{
"extends": "@u-sho/vue3-ts",
}
- Check the base rules at here.
Additional rules
Your can customize rules for your project.
For example, using alias @c/
as src/components
, write like below.
{
"extends": "@u-sho/vue3-ts",
"rules": {
"no-restricted-imports": ["error",
{ "pattern": ["@/components/*"] }
]
}
}
For more information about rules, see below documents.
- https://eslint.org/docs/rules/
- https://eslint.vuejs.org/rules/
- https://github.com/vuejs/eslint-config-typescript#readme
License
MIT © u-sho.