Skip to content

An ESlint plugin that provides set of rules for Glimmer.js Applications

Notifications You must be signed in to change notification settings

bardzusny/eslint-plugin-glimmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-glimmer

Eslint plugin for Glimmer.js apps

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-glimmer:

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

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

Usage

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

{
    "plugins": [
        "glimmer"
    ]
}

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

{
    "rules": {
        "glimmer/no-side-effects-in-tracking-getters": 2,
        "glimmer/require-init-in-constructor": 2
    }
}

Supported Rules

Contribution guide

In order to add a new rule, you should:

  • Create issue on GH with description of proposed rule
  • Generate a new rule using the official yeoman generator
  • Write test scenarios & implement logic
  • Describe the rule in the generated docs file
  • Make sure all tests are passing
  • Create PR and link created issue in description

If you have any suggestions, ideas or problems feel free to add new issue, but first please make sure your question does not repeat previous ones.

About

An ESlint plugin that provides set of rules for Glimmer.js Applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published