eslint-plugin-thumbtack

0.2.1 • Public • Published

eslint-plugin-thumbtack

Thumbtack's custom ESLint Rules

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-thumbtack:

$ npm install eslint-plugin-thumbtack --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-thumbtack globally.

Usage

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

{
    "plugins": ["thumbtack"]
}

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

{
    "rules": {
        "thumbtack/no-getters-setters": 2
    }
}

Supported Rules

  • no-getters-setters: Disallow ES6 getters/setters
  • chai-strict-equal: Disallow Chai's assert.equal

Development

In general, follow the official guide for creating new rules, and make sure each rule has test cases.

Linting

Yes, you can lint the linter.

npm run lint

Testing

npm run test

Package Sidebar

Install

npm i eslint-plugin-thumbtack

Weekly Downloads

3

Version

0.2.1

License

MIT

Last publish

Collaborators

  • lavelle