posthtml-vscode-sorting-attrs-logic
Advanced tools
Comparing version 1.0.5 to 1.0.7
31
index.js
module.exports = function(opts) { | ||
/** Following : | ||
* https://codeguide.co/#html-lang | ||
* https://stackoverflow.com/a/51389977/11135174 | ||
* Added Angular after data. See https://github.com/mdo/code-guide/issues/106 | ||
*/ | ||
const orderList = options.order || [ | ||
'id', 'class', 'name', | ||
'data-.+', 'ng-.+', '[.+', '(.+', '*ng+', | ||
'src', 'for', 'type', 'href', 'value', | ||
'title', 'alt', | ||
'role', 'aria-.+', | ||
'$unknown$' | ||
]; | ||
// Added Angular after data. See https://github.com/mdo/code-guide/issues/106 | ||
var orderList = (opts && opts.order) || [ | ||
"class", | ||
"id", | ||
"name", | ||
"data-.+", | ||
"ng-.+", | ||
"src", | ||
"for", | ||
"type", | ||
"href", | ||
"values", | ||
"title", | ||
"alt", | ||
"role", | ||
"aria-.+", | ||
"$unknown$" | ||
]; | ||
@@ -16,0 +21,0 @@ // A RegExp's for filtering and sorting |
{ | ||
"name": "posthtml-vscode-sorting-attrs-logic", | ||
"description": "It's sort HTML attribute based on the given order", | ||
"version": "1.0.5", | ||
"description": "Sort HTML attribute based on the given order", | ||
"version": "1.0.7", | ||
"author": "Raphaël Balet (ultrastark.ch)", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/rbalet/posthtml-vscode-sorting-attrs.git" | ||
"url": "git+https://github.com/rbalet/posthtml-vscode-sorting-attrs-logic.git" | ||
}, | ||
@@ -10,0 +10,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85
6057