eslint-plugin-kuzzle

0.0.13 • Public • Published

eslint-plugin-kuzzle

Kuzzle Coding Standard.

This plugin is standalone, meaning that eslint and prettier are included in the package so you don't need to install them yourself.

Install our coding standard

  1. Install the plugin
npm i eslint-plugin-kuzzle --save-dev
  1. Add kuzzle to the plugins section of your .eslintrc configuration file and select the default rule set:
{
  "extends": [
    "plugin:kuzzle/default",
    "plugin:kuzzle/node",
    "plugin:kuzzle/typescript"
  ]
}
  1. Remove unused eslint-related dependencies (such as @typescript-eslint/eslint-plugin, eslint etc)

  2. Commit relevant files

Available rule sets

  • plugin:kuzzle/default: default rules between all javascript projects
  • plugin:kuzzle/node: rules for Node.js projects
  • plugin:kuzzle/typescript: rules for Typescript projects

You can disable the sort-keys rule on project that are not libraries:

{
  "extends": [
    "plugin:kuzzle/default",
    "plugin:kuzzle/node",
    "plugin:kuzzle/typescript"
  ],
  "rules": {
    "sort-keys": ["off"]
  }
}

Package Sidebar

Install

npm i eslint-plugin-kuzzle

Weekly Downloads

1,322

Version

0.0.13

License

Apache 2

Unpacked Size

7.74 kB

Total Files

9

Last publish

Collaborators

  • kuzzle