Socket
Socket
Sign inDemoInstall

@empathyco/eslint-plugin-x

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empathyco/eslint-plugin-x

ESLint and Prettier rules and configurations


Version published
Weekly downloads
889
increased by13.39%
Maintainers
5
Weekly downloads
 
Created
Source

ESLint Plugin X

The project name is just to follow the guidelines of ESLint to develop a custom plugin, but it includes also style formatter and good practices outside ESLint:

  • ESLint and third-party plugins
  • Prettier

ESLint

Installation

To install the linter plugin:

# or pnpm or yarn
npm install @empathyco/eslint-plugin-x --save-dev

The plugin offers different levels of configuration depending on the plugins and rules we want to activate:

SeverityPlugins
standardESLint
TypeScript
Prettier
recommendedstandard plugins
JSDoc
TSDoc
Import
Jest
Cypress
allrecommended plugins
Vue

Usage

Add plugin:@empathyco/x to the extends section of your .eslintrc configuration file followed by the severity config that you want to activate standard, recommended or all. You can omit the eslint-plugin- prefix.

{ "extends": ["plugin:@empathyco/x/standard"] }

or

{ "extends": ["plugin:@empathyco/x/recommended"] }

or

{ "extends": ["plugin:@empathyco/x/all"] }

Prettier

The Prettier configuration is available in the prettier-config.js file. First, delete your custom prettier config file if you have. To use it is enough with reference it in you package.json:

"prettier": "@empathyco/eslint-plugin-x/prettier-config"

Keywords

FAQs

Package last updated on 24 Nov 2023

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