Home

Awesome

<a name="readme-top"></a><div align="center">

<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp"> <img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg"> <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/triangular-ruler.webp"> <h1>Lobe Lint</h1>

ESlint config, Prettier config, Remark config for LobeHub

Changelog · Report Bug · Request Feature

<!-- SHIELD GROUP -->

<br/>

</div>

<details> <summary><kbd>Table of contents</kbd></summary>

TOC

</details>

📦 Installation

To install Lobe Lint, run the following command:

$ bun add @lobehub/lint -D

To use template ignore files, run the following command:

$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.eslintignore
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.gitignore
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.prettierignore
<div align="right">

</div>

🤯 Usage

.npmrc

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

config can be found at .eslintrc.js

module.exports = require('@lobehub/lint').eslint;

Stylelint

config can be found at .stylelintrc.js

module.exports = require('@lobehub/lint').stylelint;

Commitlint

config can be found at .commitlintrc.js

module.exports = require('@lobehub/lint').commitlint;

Changelog

config can be found at .changelogrc.js

module.exports = require('@lobehub/lint').changelog;

Remark

config can be found at .remarkrc.js

module.exports = require('@lobehub/lint').remarklint;

Prettier

config can be found at .prettierrc.js

module.exports = require('@lobehub/lint').prettier;

Semantic Release

config can be found at .releaserc.js

module.exports = require('@lobehub/lint').semanticRelease;
<div align="right">

</div>

⌨️ Local Development

You can use Github Codespaces for online development:

Or clone it for local development:

$ git clone https://github.com/lobehub/lobe-lint.git
$ cd lobehub/lint
$ bun install
$ bun start
<div align="right">

</div>

🤝 Contributing

Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what you’re made of.

<div align="right">

</div>

📝 License

Copyright © 2023 LobeHub. <br /> This project is MIT licensed.

<!-- LINK GROUP -->