GithubHelp home page GithubHelp logo

isabella232 / ember-cli-template-lint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ember-template-lint/ember-cli-template-lint

0.0 0.0 0.0 1.9 MB

Ember CLI integration for ember-template-lint

License: MIT License

JavaScript 93.93% HTML 5.15% Handlebars 0.91%

ember-cli-template-lint's Introduction

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:

{{! 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

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
});

ember-cli-template-lint's People

Contributors

captain-enjoyable avatar davewasmer avatar dcyriller avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar devotox avatar dwickern avatar ef4 avatar elwayman02 avatar ember-tomster avatar exelord avatar gavinjoyce avatar greenkeeper[bot] avatar greenkeeperio-bot avatar heroiceric avatar jathanasiou avatar mixonic avatar orisomething avatar patocallaghan avatar pschutz93 avatar rwjblue avatar scottkidder avatar simonihmig avatar splattne avatar stopfstedt avatar t-sauer avatar turbo87 avatar wagenet avatar xiphiasuvella avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.