ember-cli-template-lint

Lint your handlebars templates.

MIT 54 个版本
安装
npm install ember-cli-template-lint
yarn add ember-cli-template-lint
pnpm add ember-cli-template-lint
bun add ember-cli-template-lint
README

ember-cli-template-lint

npm version Build Status

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:

{{! app/components/my-thing/template.hbs }}
<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

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

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

Troubleshooting

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

var app = new EmberApp(defaults, {
  hinting: false
});
版本列表
2.0.2 2020-02-24
2.0.1 2020-02-17
2.0.0 2020-01-15
1.0.0-beta.3 2019-04-09
1.0.0-beta.2 2018-09-07
1.0.0-beta.1 2018-07-26
1.0.0 2020-01-08
0.7.6 2018-05-29
0.7.5 2017-10-08
0.7.4 2017-10-08
0.7.3 2017-08-03
0.7.2 2017-08-03
0.7.1 2017-07-27
0.7.0 2017-06-22
0.5.2 2017-01-12
0.5.1 2017-01-11
0.5.0 2016-11-05
0.4.12 2016-08-12
0.4.11 2016-06-08
0.4.10 2016-06-05
0.4.9 2016-06-01
0.4.8 2016-05-18
0.4.7 2016-05-14
0.4.6 2016-05-13
0.4.5 2016-05-07
0.4.4 2016-05-06
0.4.3 2016-05-04
0.4.2 2016-05-03
0.4.1 2016-05-01
0.4.0 2016-05-01
0.3.5 2016-04-16
0.3.4 2016-04-16
0.3.3 2016-04-10
0.3.2 2016-04-06
0.3.1 2016-04-04
0.3.0 2016-03-20
0.2.13 2016-03-15
0.2.12 2016-03-14
0.2.11 2016-03-14
0.2.10 2016-03-14
0.2.9 2016-03-14
0.2.8 2016-03-10
0.2.7 2016-03-10
0.2.6 2016-03-09
0.2.4 2016-03-09
0.2.3 2016-03-08
0.2.2 2016-03-08
0.2.1 2016-03-07
0.2.0 2016-03-07
0.1.4 2016-02-25
0.1.3 2016-02-25
0.1.2 2015-09-11
0.1.1 2015-07-27
0.1.0 2015-07-27