eslint-config-kasa

1.2.1 • Public • Published

eslint-config-kasa

ESLint shareable config for Kasa Javascript style guide


Installation

# NPM
$ npm install --save-dev eslint typescript jest react eslint-config-kasa
# Yarn
$ yarn add -D  eslint typescript jest react eslint-config-kasa

Usage

Once the eslint-config-kasa package is installed, you can use it by specifying kasa in the extends section of your ESLint configuration.

{
  "extends": "kasa",
  "rules": {
    // Additional, per-project rules...
  }
}

Using the kasa config with eslint:recommended

There are several rules in the eslint:recommended ruleset that kasa style is not opinionated about that you might want to enforce in your project.

To use kasa style in conjunction with ESLint's recommended rule set, extend them both, making sure to list kasa last:

{
  "extends": ["kasa"],
  "rules": {
    // Additional, per-project rules...
  }
}

License

Provided under the terms of the MIT License.

Copyright © 2021, Kasa.

Package Sidebar

Install

npm i eslint-config-kasa

Weekly Downloads

129

Version

1.2.1

License

MIT

Unpacked Size

8.19 kB

Total Files

4

Last publish

Collaborators

  • kasa-dev