eslint-plugin-thumbtack
v0.2.1
Published
Thumbtack's custom ESLint Rules
Downloads
20
Maintainers
Readme
eslint-plugin-thumbtack
Thumbtack's custom ESLint Rules
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-thumbtack:
$ npm install eslint-plugin-thumbtack --save-devNote: 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/setterschai-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 lintTesting
npm run test