This repository was archived by the owner on Aug 24, 2022. It is now read-only.
v0.3.5
Changelog
- Update the
bare-stringsrule to allow the following configuration:- boolean --
truefor enabled /falsefor disabled - array -- an array of whitelisted strings
- object -- An object with the following keys:
whitelist-- An array of whitelisted stringsglobalAttributes-- 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.
- boolean --
- Change default
.template-lintrc.jsfile value forbare-stringsto betrue, which defaults the configuration to:
{
whitelist: ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}'],
globalAttributes: [ 'title' ],
elementAttributes: { input: [ 'placeholder' ], img: [ 'alt' ]}
};- Fix bug with
bare-stringswhere an allowed whitelisted string would only be allowed once in a given string. i.e&&would have failed, even though&was a whitelisted string.