eslint-plugin-slonik-safe-json

1.0.2 • Public • Published

eslint-plugin-slonik-safe-json

ESLint rule for not allowing JSON.stringify inside slonik sql tagged template literals

Installation

Once you have ESLint installed then install the plugin:

npm install --save-dev eslint-plugin-slonik-safe-json

Usage

Add slonik-safe-json to plugins section of .eslintrc config file.

{
    "plugins": [
        "slonik-safe-json"
    ]
}

Add rule in rules section

"rules": {
  "slonik-safe-json/no-json-stringify": "error"
}

Package Sidebar

Install

npm i eslint-plugin-slonik-safe-json

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.47 kB

Total Files

5

Last publish

Collaborators

  • bnagi