@condorhero/eslint-config-basic

0.2.0 • Public • Published

@condorhero/eslint-config-basic

Note: The code comes from @antfu/eslint-config

APE LOGO
My basic ESLint config presets

NPM version NPM Downloads
GitHub stars

  • Double quotes, must semi
  • Auto fix for formatting (aimed to be used standalone without Prettier)
  • JavaScript, NodeJs 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 @condorhero/eslint-config-basic

# or with npm
npm install -D eslint @condorhero/eslint-config-basic

Config

For example .eslintrc file:

{
	"extends": "@condorhero/eslint-config-basic"
}

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
	}
}

License

MIT

Package Sidebar

Install

npm i @condorhero/eslint-config-basic

Weekly Downloads

9

Version

0.2.0

License

MIT

Unpacked Size

13.2 kB

Total Files

4

Last publish

Collaborators

  • condorhero