Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-template-lint

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-template-lint - npm Package Versions

1
6

0.3.5

Diff

Changelog

Source

v0.3.5

  • Update the bare-strings rule to allow the following configuration:

    • boolean -- true for enabled / false for disabled
    • array -- an array of whitelisted strings
    • object -- An object with the following keys:
      • whitelist -- An array of whitelisted strings
      • globalAttributes -- An array of attributes to check on every element.
      • elementAttributes -- An object whose keys are tag names and value is an array of attributes to check for that tag name.
  • Change default .template-lintrc.js file value for bare-strings to be true, which defaults the configuration to:

{
  whitelist: ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}'],
  globalAttributes: [ 'title' ],
  elementAttributes: { input: [ 'placeholder' ], img: [ 'alt' ]}
};
  • Fix bug with bare-strings where an allowed whitelisted string would only be allowed once in a given string. i.e && would have failed, even though & was a whitelisted string.
rwjblue
published 0.3.4 •

Changelog

Source

v0.3.4

  • Add support for TextNode/CommentNode location information. Now the bare-strings / html-comments rules include line and column info.
  • Add nested-interactive rule. Usage of nested interactive content can lead to UX problems, accessibility problems, bugs and in some cases to DOM errors. You should not put interactive content elements nested inside other interactive content elements.
rwjblue
published 0.3.3 •

Changelog

Source

v0.3.3

  • Fix issue with per-template rule configuration.
rwjblue
published 0.3.2 •

Changelog

Source

v0.3.2

  • Fix issue with block-indentation rule when a given block starts on the same line as a previous item. i.e.:
{{! good }}
{{#each foo as |bar|}}
  <span>{{bar.name}}:</span><span>{{bar.title}}</span>
{{/each}}
rwjblue
published 0.3.1 •

Changelog

Source

v0.3.1

  • Add html-comments rule which forbids the usage of HTML comments (other than <!-- template-lint bare-strings=false --> style control comments).
rwjblue
published 0.3.0 •

Changelog

Source

v0.3.0

  • Change default configuration so that no plugins are enabled (warns when .template-lintrc.js is not found).
rwjblue
published 0.2.13 •

Changelog

Source

v0.2.13

  • Add better default whitelist for bare-strings rule.
rwjblue
published 0.2.12 •

Changelog

Source

v0.2.12

  • Add blueprint that generate .template-lintrc.js.
  • Deprecate using ember-cli-template-lint without a .template-lintrc.js.
rwjblue
published 0.2.11 •

rwjblue
published 0.2.10 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc