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

@condorhero/eslint-config-basic

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

My eslint basic config

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@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

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