3.0.1 • Published 5 months ago
@kolhe/eslint-config v3.0.1
@kolhe/eslint-config 
One Eslint Config to rule them all. Supports JavaScript, TypeScript, Vue 3, Prettier and much more out of the box.
Features
- Format with Prettier.
- Designed to work with TypeScript, Vue out-of-box.
- Support JSON(5), YAML, Markdown...
- Sort imports,
package.json
,tsconfig.json
... - ESLint Flat config, compose easily!
- Ignores common files like
dist
,node_modules
,coverage
, and files in.gitignore
. - Reasonable defaults, best practices, only one-line of config
- Reasonable strict, but with better code quality.
Install
yarn add -D @kolhe/eslint-config
Require Node.js >= 18.18, and ESLint >= 9.5.0.
Usage
import { config } from '@kolhe/eslint-config'
export default config(
// Features: it'll detect installed dependency and enable necessary features automatically
{
prettier: true,
markdown: true,
vue: true, // auto detection
unocss: false // auto detection
},
[
/* your custom config */
]
).removeRules('foo/bar') // see more in https://github.com/antfu/eslint-flat-config-utils
Presets
// eslint.config.js
import {
presetJavaScript, // Ignore common files and include javascript support
presetJsonc, // Includes basic json(c) file support and sorting json keys
presetLangsExtensions, // Includes markdown, yaml + `presetJsonc` support
presetBasic, // Includes `presetJavaScript` and typescript support
// Includes
// - `presetBasic` (JS+TS) support
// - `presetLangsExtensions` (markdown, yaml, jsonc) support
// - Vue support
// - UnoCSS support (`uno.config.ts` is required)
// - Prettier support
presetAll
} from '@kolhe/eslint-config'
export default presetAll
See preset.ts for more details.
License
MIT License © 2022-PRESENT Sumit Kolhe
3.0.1
5 months ago
2.2.6
1 year ago
2.2.5
1 year ago
2.2.4
1 year ago
2.2.1
1 year ago
2.2.3
1 year ago
2.2.2
1 year ago
2.2.0
2 years ago
2.1.0
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
2.0.0-preview.1
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.3
2 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago