1.0.1 • Published 7 months ago

eslint-plugin-no-data-blocks v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

eslint-plugin-no-data-blocks

Do not embed large data in code

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-data-blocks:

npm install eslint-plugin-no-data-blocks --save-dev

Usage

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

{
    "plugins": [
        "no-data-blocks"
    ]
}

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

{
    "rules": {
        "no-data-blocks/no-data-blocks": ["error", 100]
    }
}

Rules

NameDescription
no-data-blocksDo not embed large data in code