0.1.24 • Published 1 year ago

@blumintinc/eslint-plugin-blumint v0.1.24

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

0.1.15

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4-s

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago