@moderntribe/eslint-config-custom

0.1.0 • Public • Published

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

Rule Description Recommended
custom-tbd TBD Custom Rules

Package Sidebar

Install

npm i @moderntribe/eslint-config-custom

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

3.38 kB

Total Files

4

Last publish

Collaborators

  • marktribe
  • jorgemarrero
  • chrismkindred
  • dpellenwood