/eslint-plugin-console-saas-rules

A collection of custome eslint rules used in the console saas ES6 project

Primary LanguageJavaScript

!!! DEPRECATED !!!

This repository has been moved to bitbucket at https://bitbucket.org/consoleau/eslint-plugin-console-saas-rules

eslint-plugin-console-saas-rules

A collection of eslint rules to check conventions used in the console saas web repo. Will cover a variety of ES6, Angular, and bespoke conecerns.

Usage

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

{
    "plugins": [
        "console-saas-rules"
    ]
}

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

{
    "rules": {
        "console-saas-rules/chai-expect-checker": "error"    }
}

Supported Rules

  • chai-expect-checker : verify that chai assertion methods are called as methods and chai assertion properties are called as properties

Development

Here are some relevant resources for figuring out how this works:

run tests

npm test.