项目作者: u-sho

项目描述 :
Vue 3 & TypeScript' s ESLint rules for u-sho.
高级语言: JavaScript
项目地址: git://github.com/u-sho/eslint-config-vue3-ts.git
创建时间: 2021-03-30T07:49:34Z
项目社区:https://github.com/u-sho/eslint-config-vue3-ts

开源协议:MIT License

下载


@u-sho/eslint-config-vue3-ts

Vue 3 + TypeScript’ s ESLint rules for u-sho.

Installation

  1. 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.

  1. {
  2. "extends": "@u-sho/vue3-ts",
  3. }
  • 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.

  1. {
  2. "extends": "@u-sho/vue3-ts",
  3. "rules": {
  4. "no-restricted-imports": ["error",
  5. { "pattern": ["@/components/*"] }
  6. ]
  7. }
  8. }

For more information about rules, see below documents.

License

MIT © u-sho.