项目作者: ember-template-lint

项目描述 :
Ember CLI integration for ember-template-lint
高级语言: JavaScript
项目地址: git://github.com/ember-template-lint/ember-cli-template-lint.git
创建时间: 2015-07-27T22:34:07Z
项目社区:https://github.com/ember-template-lint/ember-cli-template-lint

开源协议:MIT License

下载


ember-cli-template-lint

npm version
Build Status

🔴 DEPRECATED 🔴

ember-cli-template-lint is deprecated!!

Please use ember-template-lint directly instead.

More info / background:

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:

  1. {{! app/components/my-thing/template.hbs }}
  2. <div>A bare string</div>

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

  1. 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
which allows configuration by using a .template-lintrc.js file in the root of your project.

See here details on configuration and rules that are available.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

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/.

Troubleshooting

If your files aren’t linted make sure that you don’t have the following option set in your ember-cli-build.js:

  1. var app = new EmberApp(defaults, {
  2. hinting: false
  3. });