Vue 3 & TypeScript' s ESLint rules for u-sho.
Vue 3 + TypeScript’ s ESLint rules for u-sho.
npm i -D eslint @u-sho/eslint-config-vue3-ts
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",
}
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.
MIT © u-sho.