1.0.0 • Published 7 months ago

@syakod/eslint-config v1.0.0

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

@syakod/eslint-config npm

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

Require Node.js >= 16.14.

Usage

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

export default all

Custom Config

import { syakod } from '@syakod/eslint-config'
export default syakod(
  [
    /* 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 © 2023 Syakod