Skip to content
eslint-plugin / 0.0.2-20220124000128-a17b518

eslint-plugin 0.0.2-20220124000128-a17b518

Install from the command line:
Learn more about npm packages
$ npm install @dimensiondev/eslint-plugin@0.0.2-20220124000128-a17b518
Install via package.json:
"@dimensiondev/eslint-plugin": "0.0.2-20220124000128-a17b518"

About this version

@dimensiondev/eslint-plugin

Installation

You'll first need to install eslint:

npm install --save-dev eslint

Next, install @dimensiondev/eslint-plugin:

# for stable version
npm install --save-dev @dimensiondev/eslint-plugin
# for unstable version
npm install --save-dev @dimensiondev/eslint-plugin --registry=https://npm.dimension.im

Usage

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

{
  "$schema": "https://dimensiondev.github.io/eslint-plugin/src/schema.json",
  "plugins": ["@dimensiondev"],
  "rules": {
    "@dimensiondev/browser/prefer-event-target": "error",
    "@dimensiondev/browser/prefer-keyboard-event-key": "error",
    "@dimensiondev/browser/prefer-location-assign": "error",
    "@dimensiondev/browser/prefer-modern-dom-apis": "error",
    "@dimensiondev/jsx/no-logical": "off",
    "@dimensiondev/jsx/no-template-literal": "error",
    "@dimensiondev/jsx/prefer-test-id": "off",
    "@dimensiondev/string/no-interpolation": "error",
    "@dimensiondev/string/no-locale-case": "error",
    "@dimensiondev/string/no-simple-template-literal": "error",
    "@dimensiondev/string/no-unneeded-to-string": "error",
    "@dimensiondev/unicode/no-bidi": "off",
    "@dimensiondev/unicode/no-invisible": "error",
    "@dimensiondev/unicode/specific-set": "off",
    "@dimensiondev/ban-eslint-disable": "error",
    "@dimensiondev/no-bigint": "off",
    "@dimensiondev/no-builtin-base64": "error",
    "@dimensiondev/no-default-error": "error",
    "@dimensiondev/no-force-cast-via-top-type": "error",
    "@dimensiondev/no-implicit-array-sort": "error",
    "@dimensiondev/no-number-constructor": "error",
    "@dimensiondev/no-redundant-variable": "error",
    "@dimensiondev/no-single-return": "error",
    "@dimensiondev/no-then": "error",
    "@dimensiondev/no-timer": "off",
    "@dimensiondev/no-top-level": "off",
    "@dimensiondev/no-unneeded-flat-map": "error",
    "@dimensiondev/no-unsafe-date": "error",
    "@dimensiondev/no-vue": "error",
    "@dimensiondev/prefer-default-export": "off",
    "@dimensiondev/prefer-early-return": "error",
    "@dimensiondev/prefer-fetch": "error",
    "@dimensiondev/prefer-return-type-annotation": "error",
    "@dimensiondev/prefer-timer-id": "error"
  }
}

Supported Rules

Key: :white_check_mark: = recommended, :wrench: = fixable, :bulb: = suggestions, :gear: = configurable, :thought_balloon: = requires type information

LICENSE

MIT