0.0.18 • Published 7 months ago

eslint-plugin-letron v0.0.18

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

eslint-plugin-letron

letron defined eslint rules

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-letron:

npm install eslint-plugin-letron --save-dev

Usage

Add letron to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "letron"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "letron/rule-name": 2
    }
}

then change .eslintjs to provide a value for the 'parserOptions.project' property for @typescript-eslint/parse

{
    module.exports = {
    extends: ['alloy', 'alloy/typescript'],
    root: true,
    parser: '@typescript-eslint/parser',
    parserOptions: {
        tsconfigRootDir: __dirname,
        project: ['./tsconfig.json'],
    },
    extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'],
}

Then add the ruler offer to Shield temporarily illegal rules.

{
    plugins: ['@typescript-eslint'],
    "rules": {
        '@typescript-eslint/no-unsafe-member-access': 'off',
        '@typescript-eslint/no-unsafe-return': 'off',
        '@typescript-eslint/no-unsafe-argument': 'off',
        '@typescript-eslint/no-unsafe-assignment': 'off',
        '@typescript-eslint/restrict-template-expressions': 'off',
        '@typescript-eslint/restrict-plus-operands': 'off',
        '@typescript-eslint/no-unsafe-call': 'off',
        '@typescript-eslint/no-unnecessary-type-assertion': 'off',
        '@typescript-eslint/no-floating-promises': 'off',
        '@typescript-eslint/require-await': 'off',
        '@typescript-eslint/no-misused-promises': 'off',
        'prefer-const': 'off',
        '@typescript-eslint/unbound-method': 'off',
    }
}

Supported Rules

  • Fill in provided rules here
0.0.18

7 months ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.17

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago