@sxzz/eslint-config
Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
Legacy Version
Features
- Format with Prettier.
- Designed to work with TypeScript, Vue 2 and 3 out-of-box.
- Support JSON(5), YAML, Markdown...
- Sort imports,
package.json
, tsconfig.json
... - ESLint Flat config, compose easily!
- Reasonable defaults, best practices, only one-line of config
Install
npm i -D @sxzz/eslint-config
Require Node.js >= 16.14.
Usage
import { all } from '@sxzz/eslint-config'
export default all
Custom Config
import { sxzz } from '@sxzz/eslint-config'
export default sxzz(
[
],
{ vue: true, prettier: true, markdown: true, unocss: false },
)
VSCode
{
"eslint.experimental.useFlatConfig": true
}
Most of the rules are the same, but there are some differences:
- Use Prettier instead of ESLint Stylistic.
- Support both Vue 2 and Vue 3.
- Support Vue Reactivity Transform.
- More stricter rules.
License
MIT License © 2021-PRESENT 三咲智子