0.1.0 • Published 2 years ago

@moderntribe/eslint-config-custom v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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