@fighting-design/eslint-config
v0.1.2
Published
Fighting design out of the box eslint configuration item.
Downloads
6
Maintainers
Readme
@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