Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

v0.3.5

Choose a tag to compare

@rwjblue rwjblue released this 16 Apr 15:08
· 628 commits to master since this release

Changelog

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