0.1.5 • Published 1 year ago

@kriszu/eslint-config-basic v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@kriszu/eslint-config-basic

English | 中文

  • Single quotes
  • Auto fix for formatting (aimed to be used standalone without Prettier)
  • Designed to work with TypeScript, Vue out-of-box
  • Lint also for json, yaml, markdown
  • Sorted imports, dangling commas for cleaner commit diff

Usage

Install

npm add -D eslint @kriszu/eslint-config-basic

Config .eslintrc

{
  "extends": "@kriszu"
}

You don't need .eslintignore normally as it has been provided by the preset.

Add script for package.json

For example:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

This project is based on @antfu/eslint-config

License

MIT License © 2022-PRESENT Krizsu