https://github.com/mario34/lint-config
通用的前端项目风格校验配置
https://github.com/mario34/lint-config
Last synced: 3 months ago
JSON representation
通用的前端项目风格校验配置
- Host: GitHub
- URL: https://github.com/mario34/lint-config
- Owner: Mario34
- Created: 2021-08-09T09:03:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T07:44:17.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T14:36:38.921Z (4 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**为了解决项目代码风格校验繁琐、且难以及时同步的问题**
## 快速使用
### 安装依赖
```shell
yarn add @mario34/lint-config -D
```### js
```js
module.export = {
extend: ['./node_modules/@mario34/lint-config/src/js'],
rules: [
// 自定义规则
]
}
```### ts
```js
module.export = {
extend: ['./node_modules/@mario34/lint-config/src/ts'],
rules: [
// 自定义规则
]
}
```### vue项目
```js
module.export = {
extend: ['./node_modules/@mario34/lint-config/src/vue'],
rules: [
// 自定义规则
]
}
```### vue3.x项目
```js
module.export = {
extend: ['./node_modules/@mario34/lint-config/src/vue3'],
rules: [
// 自定义规则
]
}
```### react项目
```js
module.export = {
extend: ['./node_modules/@mario34/lint-config/src/react'],
rules: [
// 自定义规则
]
}
```