Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@so1ve/eslint-config-ts

so1ve2.8kMIT0.123.0

Ray's eslint config for typescript.

eslint, eslint-config, eslint-ts, eslint-typescript, ts, typescript

readme

@so1ve/eslint-config

npm

Forked from antfu/eslint-config

  • Double quotes, semi
  • Auto fix for formatting (aimed to be used standalone without Prettier)
  • TypeScript, Vue, React out-of-box
  • Lint also for json, yaml, markdown
  • Sorted imports, dangling commas for cleaner commit diff
  • Reasonable defaults, best practices, only one-line of config

Usage

Install

pnpm add -D eslint @so1ve/eslint-config

Config .eslintrc

{
  "extends": "@so1ve"
}

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

Add script for package.json

For example:

{
  "scripts": {
    "lint": "eslint ."
  }
}

Config VS Code auto fix

Create .vscode/settings.json

{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

Check Also

License

MIT