0.1.24 • Published 3 months ago

@blumintinc/eslint-plugin-blumint v0.1.24

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

@blumintinc/eslint-plugin-blumint

Custom eslint rules for use at BluMint

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @blumintinc/eslint-plugin-blumint:

npm install @blumintinc/eslint-plugin-blumint --save-dev

Usage

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

{
    "plugins": [
        "@blumintinc/blumint"
    ]
}

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

{
    "rules": {
        "blumint/rule-name": "error"
    }
}

Or use the recommended config:

{
    "extends": ["some-other-plugin", "plugin:@blumintinc/blumint/recommended"]
}

Rules

💼 Configurations enabled in.\ ⚠️ Configurations set to warn in.\ ✅ Set in the recommended configuration.\ 🔧 Automatically fixable by the --fix CLI option.

Name                            Description💼⚠️🔧
array-methods-this-contextPrevent misuse of Array methods in OOP
class-methods-read-top-to-bottomEnsures classes read linearly from top to bottom.🔧
dynamic-https-errorsDynamic error details should only be in the third argument of the HttpsError constructor. The second argument is hashed to produce a unique id.
export-if-in-doubtAll top-level const definitions, type definitions, and functions should be exported
extract-global-constantsExtract constants/functions to the global scope when possible
generic-starts-with-tEnforce TypeScript generic types to start with T
no-async-array-filterDisallow async callbacks for Array.filter
no-async-foreachDisallow Array.forEach with an async callback function
no-conditional-literals-in-jsxDisallow use of conditional literals in JSX code
no-filter-without-returnDisallow Array.filter callbacks without an explicit return (if part of a block statement)
no-misused-switch-casePrevent misuse of logical OR in switch case statements
no-unpinned-dependenciesEnforces pinned dependencies🔧
no-useless-fragmentPrevent unnecessary use of React fragments🔧
prefer-fragment-shorthandPrefer <> shorthand for <React.Fragment>🔧
prefer-type-over-interfacePrefer using type alias over interface🔧
require-memoReact components must be memoized🔧
0.1.24

3 months ago

0.1.15

9 months ago

0.1.20

8 months ago

0.1.21

7 months ago

0.1.22

7 months ago

0.1.23

6 months ago

0.1.16

9 months ago

0.1.17

9 months ago

0.1.18

9 months ago

0.1.19

8 months ago

0.1.11

12 months ago

0.1.12

11 months ago

0.1.13

11 months ago

0.1.14

11 months ago

0.1.10

12 months ago

0.1.9

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4-s

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago