@dimensiondev/eslint-plugin

eslint plugin for dimensiondev

Usage no npm install needed!

<script type="module">
  import dimensiondevEslintPlugin from 'https://cdn.skypack.dev/@dimensiondev/eslint-plugin';
</script>

README

@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/ban-eslint-disable": "error",
    "@dimensiondev/no-bidi-characters": "off",
    "@dimensiondev/no-bigint": "off",
    "@dimensiondev/no-builtin-base64": "error",
    "@dimensiondev/no-default-error": "error",
    "@dimensiondev/no-implicit-array-sort": "error",
    "@dimensiondev/no-invisible-characters": "error",
    "@dimensiondev/no-jsx-logical": "off",
    "@dimensiondev/no-jsx-template-literal": "error",
    "@dimensiondev/no-locale-case": "error",
    "@dimensiondev/no-number-constructor": "error",
    "@dimensiondev/no-redundant-variable": "error",
    "@dimensiondev/no-simple-string-interpolation": "error",
    "@dimensiondev/no-simple-template-literal": "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-unneeded-to-string": "error",
    "@dimensiondev/no-unsafe-date": "error",
    "@dimensiondev/prefer-default-export": "off",
    "@dimensiondev/prefer-early-return": "error",
    "@dimensiondev/prefer-fetch": "error",
    "@dimensiondev/prefer-location-assign": "error",
    "@dimensiondev/prefer-timer-id": "error",
    "@dimensiondev/unicode-specific-set": "off"
  }
}

Supported Rules

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

LICENSE

MIT