Meta package that re-exports all LobeHub lint configurations
npm install @lobehub/lint

Meta package that re-exports all LobeHub lint configurations
[![][npm-release-shield]][npm-release-link]
[![][npm-downloads-shield]][npm-downloads-link]
[![][github-license-shield]][github-license-link]
This is a convenience package that re-exports all LobeHub lint configurations. Install this single package to get access to all lint configs.
``bash`
pnpm add -D @lobehub/lint
You'll also need to install the peer dependencies:
`bash`
pnpm add -D eslint prettier stylelint @commitlint/cli remark-cli semantic-release typescript
`js
// eslint.config.js
import { defineConfig } from '@lobehub/lint';
export default defineConfig({
react: 'next',
});
`
`js
// prettier.config.js
import { prettier } from '@lobehub/lint';
export default prettier;
`
`js
// stylelint.config.js
import { stylelint } from '@lobehub/lint';
export default stylelint;
`
`js
// commitlint.config.js
import { commitlint } from '@lobehub/lint';
export default commitlint;
`
`js
// .remarkrc.js
import { remarklint } from '@lobehub/lint';
export default remarklint;
`
`js
// .releaserc.js
import { semanticRelease } from '@lobehub/lint';
export default semanticRelease;
`
For monorepo:
`js
import { semanticReleaseMonoRepo } from '@lobehub/lint';
export default semanticReleaseMonoRepo;
`
For changelog only:
`js
import { changelog } from '@lobehub/lint';
export default changelog;
`
| Export | Type | Description |
| ------------------------- | -------- | -------------------------------- |
| defineConfig / eslint | Function | ESLint config factory |defineEslintConfig
| | Function | Alias for defineConfig |prettier
| | Object | Prettier config |stylelint
| | Object | Stylelint config |commitlint
| | Object | Commitlint config |remarklint
| | Object | Remarklint config |semanticRelease
| | Object | Semantic release config |semanticReleaseMonoRepo
| | Object | Monorepo semantic release config |changelog
| | Object | Changelog-only config |
If you only need specific configurations, you can install them individually:
- @lobehub/eslint-config - ESLint configuration@lobehub/prettier-config
- - Prettier configuration@lobehub/stylelint-config
- - Stylelint configuration@lobehub/commitlint-config
- - Commitlint configuration@lobehub/remarklint-config
- - Remarklint configuration@lobehub/semantic-release-config` - Semantic release configuration
-
- Node.js >= 18
MIT © LobeHub
[github-license-link]: https://github.com/lobehub/lobe-lint/blob/master/LICENSE
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-lint?color=white&labelColor=black&style=flat-square
[npm-downloads-link]: https://www.npmjs.com/package/@lobehub/lint
[npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/lint?labelColor=black&style=flat-square
[npm-release-link]: https://www.npmjs.com/package/@lobehub/lint
[npm-release-shield]: https://img.shields.io/npm/v/@lobehub/lint?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square