0.0.8 • Published 4 years ago

@snsw/eslint-plugin-var v0.0.8

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

eslint-plugin-var

eslint rules - Vouchers and Rebates

Installation

Install typescript-eslint:

yarn add -D eslint typescript@~3.9.7 @typescript-eslint/parser @typescript-eslint/eslint-plugin

Next, install eslint-plugin-var:

$ yarn add -D eslint-plugin-var

Configs

  • recommended: the default set of rules
  • toolkit: used for the UI's toolkit folders
  • journey-tests: used for journey tests (usually .js)
  • tsJsRuleToggles: ensures TypeScript-specific rules are run only against .tsx files, e.g. @typescript-eslint/explicit-function-return-type
  • indents: standard indentation rules

Usage

Add @snsw/var to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "root": true,
  "plugins": [
    "@snsw/var"
  ],
  "extends": [
    "plugin:@snsw/var/recommended"
  ]
}

Toolkits use both the @snsw/var/recommended and @snsw/var/toolkit configs:

{
  "plugins": [
    "@snsw/var"
  ],
  "extends": [
    "plugin:@snsw/var/recommended",
    "plugin:@snsw/var/toolkit"
  ]
}

Journey tests use both the @snsw/var/recommended and @snsw/var/journeyTests configs:

{
  "root": true,
  "plugins": [
    "@snsw/var"
  ],
  "extends": [
    "plugin:@snsw/var/recommended",
    "plugin:@snsw/var/journeyTests"
  ]
}

Supported Rules

  • TBD
0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago