Table of contents
TOC
📦 Installation
To install Lobe Lint, run the following command:
pnpm 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
🤯 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;
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;
⌨️ Local Development
You can use Gitpod for online development:
Or clone it for local development:
$ git clone https://github.com/lobehub/lobe-lint.git
$ cd lobehub/lint
$ npm install
$ npm start
🤝 Contributing
📊 Total: 3
📝 License
Copyright © 2023 ~ present LobeHub.
This project is MIT licensed.