0.2.2 • Published 8 months ago

@litert/eslint-plugin-rules v0.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

@litert/eslint-plugin-rules

The customized ESLint rules insides LiteRT ORG.

Installation

npm i --save-dev @litert/eslint-plugin-rules

Usage

Put these configuration in your eslint.config.js:

// eslint.config.js
const LitertEslintRules = require('@litert/eslint-plugin-rules');

module.exports = [
    ...LitertEslintRules.configs.typescript,
    {
        plugins: {
            '@litert/rules': require('@litert/eslint-plugin-rules'),
        },
        files: [
            'src/**/*.ts',
        ],
        languageOptions: {
            parserOptions: {
                project: 'tsconfig.json',
                tsconfigRootDir: __dirname,
            },
        },
        rules: {
            // add other customized rules here.
        },
    }
];

Customized rules

  • @litert/general/disable-for-each-method

    Disabling the method Array.prototype.forEach.

Click here to read the default rules.

0.2.1

8 months ago

0.2.0

8 months ago

0.2.2

8 months ago

0.1.7

1 year ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago