You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
npm i -D @sxzz/eslint-config
Require Node.js >= 18.18, and ESLint >= 9.5.0.
Usage
import{sxzz}from'@sxzz/eslint-config'exportdefaultsxzz(// Features: it'll detect installed dependency and enable necessary features automatically{prettier: true,markdown: true,vue: true,// auto detectionunocss: false,// auto detection},[/* your custom config */],).removeRules('foo/bar')// see more in https://github.com/antfu/eslint-flat-config-utils
Presets
// eslint.config.jsimport{presetJavaScript,// Ignore common files and include javascript supportpresetJsonc,// Includes basic json(c) file support and sorting json keyspresetLangsExtensions,// Includes markdown, yaml + `presetJsonc` supportpresetBasic,// 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 supportpresetAll,}from'@sxzz/eslint-config'exportdefaultpresetAll