1.0.6 • Published 3 months ago

@sunshj/eslint-config v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

@sunshj/eslint-config

Based on @sxzz/eslint-config

Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.

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

Require Node.js >= 16.14.

Usage

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

export default all

Custom Config

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

VSCode

{
  "eslint.experimental.useFlatConfig": true
}