0.1.2 • Published 2 years ago

@fighting-design/eslint-config v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@fighting-design/eslint-config

Chinese | English

🤟 Introduce

Fighting design exclusive eslint configuration item, out of the box.

@fighting-design/eslint-config is mainly for *.vue and *.ts files have strong format verification rules. If you want to pursue stricter verification rules and better code style, you can use them with confidence. On the contrary, if you don't understand the specifications or are not used to too many mandatory verification rules, you may feel very painful in use.

🔑 Install

Use pnpm install

pnpm add --save-dev eslint @fighting-design/eslint-config

Use npm install

npm install --save-dev eslint @fighting-design/eslint-config

Use yarn install

yarn add --save-dev eslint @fighting-design/eslint-config

🐳 Use

Add the following code to the .eslintrc file

{
  "extends": "@fighting-design"
}

package.json 中新增以下配置:

In The following configurations are added to package.json:

"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
}

Execute command:

# Detection code format specification
pnpm lint

# Fix format specification
pnpm lint:fix

🚧 Rule

Refer to index.js for details

💬 License

MIT