Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@condorhero/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@condorhero/eslint-config

My eslint config presets

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-ape

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

APE LOGO
My ESLint config presets

NPM version NPM Downloads
GitHub stars

  • Double quotes, must 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 @condorhero/eslint-config

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

Config

For example .eslintrc file:

{
	"extends": "@condorhero"
}

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

Vue

Installing @condorhero/eslint-config will apply all rules, It only needs Vue config.

pnpm add -D eslint @condorhero/eslint-config-vue

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

eslint .eslintrc file:

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

React

Installing @condorhero/eslint-config will apply all rules, It only needs React config.

pnpm add -D eslint @condorhero/eslint-config-react

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

eslint .eslintrc file:

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

TypeScript

Installing @condorhero/eslint-config will apply all rules, It only needs TypeScript config.

pnpm add -D eslint @condorhero/eslint-config-typescript

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

eslint .eslintrc file:

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

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

Keywords

FAQs

Package last updated on 08 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc