https://github.com/ember-template-lint/ember-cli-template-lint
Ember CLI integration for ember-template-lint
https://github.com/ember-template-lint/ember-cli-template-lint
ember-cli ember-template-lint lint templates
Last synced: 11 months ago
JSON representation
Ember CLI integration for ember-template-lint
- Host: GitHub
- URL: https://github.com/ember-template-lint/ember-cli-template-lint
- Owner: ember-template-lint
- License: mit
- Archived: true
- Created: 2015-07-27T22:34:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T21:03:49.000Z (almost 4 years ago)
- Last Synced: 2024-09-08T13:56:39.198Z (over 1 year ago)
- Topics: ember-cli, ember-template-lint, lint, templates
- Language: JavaScript
- Homepage:
- Size: 1.85 MB
- Stars: 151
- Watchers: 7
- Forks: 53
- Open Issues: 41
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ember - ember-cli-template-lint - Ember CLI integration for `ember-template-lint`. (Packages / Codestyle)
README
# ember-cli-template-lint
[](https://badge.fury.io/js/ember-cli-template-lint)
[](https://travis-ci.org/ember-template-lint/ember-cli-template-lint)
## 🔴 DEPRECATED 🔴
**ember-cli-template-lint is deprecated!!**
Please use [ember-template-lint](https://github.com/ember-template-lint/ember-template-lint) directly instead.
More info / background:
* https://github.com/ember-cli/rfcs/pull/121
* https://github.com/emberjs/rfcs/blob/master/text/0121-remove-ember-cli-eslint.md
* https://github.com/ember-cli/ember-cli/pull/9009
## General Info
ember-cli-template-lint will lint your templates and add a test for each asserting
that all style rules have been satisfied.
For example, given the rule `no-bare-strings` is enabled, this template would be
in violation:
```hbs
{{! app/components/my-thing/template.hbs }}
A bare string
```
Thus a the test `TemplateLint: app/components/my-thing/template.hbs` would
fail with the assertion "A bare string was found (0:5)".
## Install
To install ember-cli-template-lint
```
ember install ember-cli-template-lint
```
__Ember CLI >= 2.4.2 is required for linting templates__
## Configuration
ember-cli-template-lint is powered by [ember-template-lint](https://github.com/ember-template-lint/ember-template-lint)
which allows configuration by using a `.template-lintrc.js` file in the root of your project.
See [here](https://github.com/ember-template-lint/ember-template-lint/#rules) details on configuration and rules that are available.
### Installation
* `git clone` this repository
* `npm install`
* `bower install`
### Running
* `ember server`
* Visit your app at http://localhost:4200.
### Running Tests
* `npm run nodetest`
* `ember test`
* `ember test --server`
### Building
* `ember build`
For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).
## Troubleshooting
If your files aren't linted make sure that you don't have the following option set in your `ember-cli-build.js`:
```js
var app = new EmberApp(defaults, {
hinting: false
});
```