4.0.2 • Published 2 years ago
@alwynou/eslint-config v4.0.2
@alwynou/eslint-config 
Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
Features
- Support Vue 2 and 3 out-of-box.
- Select the required file types as needed.
- Support JSON(5), YAML, Markdown...
Install
npm i -D @alwynou/eslint-config
Usage
In VScode should add config:
eslint.experimental.useFlatConfig: true
current.
// eslint.config.js
import { all } from '@alwynou/eslint-config'
export default defineFlatConfig(all)
Custom Config
import { alwynou } from '@alwynou/eslint-config'
export default alwynou(
[
/* your custom config */
],
{ vue: true, prettier: true, markdown: true }
)