New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-xo-overrides

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo-overrides

eslint+xo sharable config with some opinionated rule overrides

  • 1.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

eslint-config-xo-overrides

eslint+xo sharable config with some opinionated rule overrides

Overrides

Trailing commas in multiline objects and arrays

This makes diffs simpler.

Correct :+1: code:

const fizz = {
  blep: 'bloop',
};

Space around object and array literals

Cause it looks better.

Correct :+1: code:

const { curly } = foo;
const bar = [ square ];

No camelcase in property names

We still use objects as poor man's hashmaps.

Correct :+1: code:

const rates = {
	eur_usd: 1,
};

Linebreak before the operator

IMO reads better. Also makes diffs simpler.

Correct :+1: code:

return user.email
	|| user.phone
	|| user.slug;

Other enabled rules

  • unicorn/custom-error-definition - Enforce correct Error subclassing.

Usage

Installation:

yarn add --dev eslint-config-xo-overrides
yarn eslint-config-xo-overrides

or

npm install --save-dev eslint-config-xo-overrides
./node_modules/.bin/eslint-config-xo-overrides

This will install the package and add the following to your package.json:

{
  "xo": {
    "extends": ["eslint-config-xo-overrides"]
  }
}

FAQs

Package last updated on 17 Nov 2024

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