An open API service indexing awesome lists of open source software.

https://github.com/sanand0/eslint-plugin-no-data-blocks

Do not embed large data in code
https://github.com/sanand0/eslint-plugin-no-data-blocks

library tool

Last synced: 4 months ago
JSON representation

Do not embed large data in code

Awesome Lists containing this project

README

          

# eslint-plugin-no-data-blocks

Do not embed large data in code

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

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

```sh
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:

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

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

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

## Rules

| Name | Description |
| :--------------------------------------------- | :------------------------------ |
| [no-data-blocks](docs/rules/no-data-blocks.md) | Do not embed large data in code |