Socket
Book a DemoInstallSign in
Socket

@moderntribe/eslint-config-custom

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moderntribe/eslint-config-custom

ESLint plugin for WME development.

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
6
100%
Maintainers
7
Weekly downloads
 
Created
Source

ESLint Custom Config

This is an ESLint plugin including configurations and custom rules for WME development.

This primarily extends the @typescript/eslint-plugin/recommended and @wordpress/eslint-plugin/recommended rulesets.

In addition, this ruleset does implement a number of custom rules:

  • Using typescript eslint parser to allow for eslint Import (see issue)
  • prettier formatting
  • No yoda conditionals
  • Radix argument required for parseInt.

Installation

Install the module

pnpm install @moderntribe/eslint-config-custom --save-dev

Usage

To opt-in to the default configuration, extend your own project's .eslintrc.js file:

module.exports = {
  extends: ["plugin:@moderntribe/eslint-config-custom/recommended"],
};

Refer to the ESLint documentation on Shareable Configs for more information.

The recommended preset will include rules governing an ES2015+ environment, and includes rules from ``, @wordpress/eslint-plugin/recommended project.

Rules

RuleDescriptionRecommended
custom-tbdTBD Custom Rules

Keywords

stellarwp

FAQs

Package last updated on 13 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.