Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geallenboy/garron-lint
ESlint 配置、Prettier 配置、Stylelint配置、Remark 配置
https://github.com/geallenboy/garron-lint
Last synced: 14 days ago
JSON representation
ESlint 配置、Prettier 配置、Stylelint配置、Remark 配置
- Host: GitHub
- URL: https://github.com/geallenboy/garron-lint
- Owner: geallenboy
- License: mit
- Created: 2024-06-20T13:40:40.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-06-29T12:28:58.000Z (7 months ago)
- Last Synced: 2024-11-15T17:09:09.484Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
garron Lint
ESlint 配置、Prettier 配置、Remark 配置
[Changelog](./CHANGELOG.md)
![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)
Table of contents
#### TOC
- [📦 安装](#-installation)
- [使用方法](#-usage)
- [.npmrc](#npmrc)
- [ESlint](#eslint)
- [Stylelint](#stylelint)
- [Commitlint](#commitlint)
- [更新日志](#changelog)
- [Prettier](#prettier)
- [Semantic Release](#semantic-release)
- [⌨️ 本地开发](#️-local-development)
- [🤝 贡献](#-contributing)####
## 📦 安装
要安装 garron Lint, 请运行以下命令:
```bash
$ bun add @garron/lint -D
```[back-to-top](#readme-top)
## 用法
### .npmrc
```text
public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*
```### ESlint
配置可以在以下位置找到 [`.eslintrc.js`](/src/eslint/index.ts)
```js
module.exports = require('@garron/lint').eslint;
```### Stylelint
配置可以在以下位置找到 [`.stylelintrc.js`](/src/stylelint/index.ts)
```js
module.exports = require('@garron/lint').stylelint;
```### Commitlint
配置可以在以下位置找到 [`.commitlintrc.js`](/src/commitlint/index.ts)
```js
module.exports = require('@garron/lint').commitlint;
```### Changelog
配置可以在以下位置找到 [`.changelogrc.js`](/src/changelog/index.ts)
```js
module.exports = require('@garron/lint').changelog;
```### Remark
配置可以在以下位置找到 [`.remarkrc.js`](/src/remarklint/index.ts)
```js
module.exports = require('@garron/lint').remarklint;
```### Prettier
配置可以在以下位置找到 [`.prettierrc.js`](/src/prettier/index.ts)
```js
module.exports = require('@garron/lint').prettier;
```### Semantic Release
配置可以在以下位置找到 [`.releaserc.js`](/src/semantic-release/index.ts)
```js
module.exports = require('@garron/lint').semanticRelease;
```[back-to-top](#readme-top)
## ⌨️ 本地开发
```bash
$ git clone https://github.com/geallenboy/garron-lint.git
$ cd garron/lint
$ bun install
$ bun start
```[back-to-top](#readme-top)
#### 📝 许可证
Copyright © 2024 [garron].
This project is [MIT](./LICENSE) licensed.