@frabbit/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

1.5.15 • Public • Published

@frabbit/eslint-config npm

Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier. based on https://github.com/sxzz/eslint-config

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 @frabbit/eslint-config

Require Node.js >= 16.14.

Usage

// eslint.config.js
import { all } from '@frabbit/eslint-config'

export default all

Custom Config

import { frabbit } from '@frabbit/eslint-config'
export default frabbit(
  [
    /* your custom config */
  ],
  { vue: true, prettier: true, markdown: true, unocss: false }
)

VSCode

{
  "eslint.experimental.useFlatConfig": true
}

Comparing to @antfu/eslint-config

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.

Sponsors

License

MIT License © 2021-PRESENT 三咲智子

Readme

Keywords

none

Package Sidebar

Install

npm i @frabbit/eslint-config

Weekly Downloads

35

Version

1.5.15

License

MIT

Unpacked Size

90.3 kB

Total Files

7

Last publish

Collaborators

  • frenchrabbit