1.0.0 • Published 1 year ago

@palastri/eslint-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

eslint-plugin

Build Status

Installation

yarn add --dev eslint @palastri/eslint-plugin

Usage

Add @palastri to the plugins section of your .eslintrc configuration file.

{
  "extends": ["@palastri/recommended"],
  "plugins": ["@palastri"]
}

Shareable configurations

Recommended

This plugin exports a recommended configuration that enforces good testing practices. To enable this configuration, please use the extends property in the .eslintrc config file:

{
  "extends": ["plugin:@palastri/recommended"]
}

Stylistic

This plugin also exports a configuration named stylistic, which adds some extra stylistic rules. The rules considered to be best practice for modern TypeScript codebase, but that do not impact program logic. To enable this configuration, please use the extends property in the .eslintrc config file:

{
  "extends": ["plugin:@palastri/recommended", "plugin:@palastri/stylistic"]
}

Recommended plugin ruleset

This plugin includes the following plugins:

One or more default rules from those plugins are overridden such as:

NameDescriptionRules
@typescript-eslint/array-typeRequire consistently using either T[] or Array<T> for arrays.["error", { default: "array-simple" }]
@typescript-eslint/member-orderingRequire a consistent member declaration order.["error", { default: { optionallyOrder: "required-first", order: "alphabetically" } }]

Changelog

Detailed changes for each release are documented in CHANGELOG.md