4.0.2 • Published 10 months ago

@alwynou/eslint-config v4.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@alwynou/eslint-config npm

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 }
)

License

MIT License © 2021-PRESENT Alwyn Ou