ESlint rules for Ember projects.
npm install --save-dev eslint-plugin-ember-standard
- no-set-in-computed-property – Prevent side effects.
- no-settimeout – Make run loop aware of timeouts.
- prop-types – Make sure
PropTypes
references are valid.
- computed-property-readonly – Enforce data down, actions up.
- logger – Make sure logging goes through Ember.
- destructure – Make sure Ember properties are destructured.
- import – Make sure Ember is explicitly imported.
- single-destructure – Make sure Ember properties are destructured in a single variable declaration.