@lobehub/lint
v2.1.5
Published
Meta package that re-exports all LobeHub lint configurations
Keywords
Readme
Meta package that re-exports all LobeHub lint configurations
Overview
This is a convenience package that re-exports all LobeHub lint configurations. Install this single package to get access to all lint configs.
Installation
pnpm add -D @lobehub/lintYou'll also need to install the peer dependencies:
pnpm add -D eslint prettier stylelint @commitlint/cli remark-cli semantic-release typescriptUsage
ESLint
// eslint.config.js
import { defineConfig } from '@lobehub/lint';
export default defineConfig({
react: 'next',
});Prettier
// prettier.config.js
import { prettier } from '@lobehub/lint';
export default prettier;Stylelint
// stylelint.config.js
import { stylelint } from '@lobehub/lint';
export default stylelint;Commitlint
// commitlint.config.js
import { commitlint } from '@lobehub/lint';
export default commitlint;Remarklint
// .remarkrc.js
import { remarklint } from '@lobehub/lint';
export default remarklint;Semantic Release
// .releaserc.js
import { semanticRelease } from '@lobehub/lint';
export default semanticRelease;For monorepo:
import { semanticReleaseMonoRepo } from '@lobehub/lint';
export default semanticReleaseMonoRepo;For changelog only:
import { changelog } from '@lobehub/lint';
export default changelog;Exports
| 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 |
Individual Packages
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
Requirements
- Node.js >= 18
License
MIT © LobeHub
