stylecow-plugin-fixes
Advanced tools
Comparing version 5.0.0 to 5.1.0
module.exports = function (tasks) { | ||
tasks.use(require('./src/import')); | ||
tasks.use(require('./src/clip')); | ||
@@ -3,0 +4,0 @@ tasks.use(require('./src/column-break')); |
{ | ||
"name": "stylecow-plugin-fixes", | ||
"description": "Stylecow plugin to fix automatically some css issues.", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"engines": { | ||
@@ -19,4 +19,4 @@ "node": ">=4.0" | ||
"devDependencies": { | ||
"mocha": "^2.3.2", | ||
"stylecow-core": "^2.0.0" | ||
"mocha": "^2.3.4", | ||
"stylecow-core": "^2.2.2" | ||
}, | ||
@@ -23,0 +23,0 @@ "main": "index.js", |
@@ -20,2 +20,3 @@ stylecow plugin fixer | ||
* Fix multiple @charset at-rules | ||
* Fix @import position that must be on top of the css (only preceded by @charset) | ||
* etc... | ||
@@ -22,0 +23,0 @@ |
@@ -8,3 +8,3 @@ "use strict"; | ||
fn: function (root) { | ||
var charsets = root.getAll({ | ||
let charsets = root.getAll({ | ||
type: 'AtRule', | ||
@@ -11,0 +11,0 @@ name: 'charset' |
@@ -162,3 +162,3 @@ "use strict"; | ||
fn: function (keyword) { | ||
var declaration = keyword.getAncestor('Declaration'); | ||
let declaration = keyword.getAncestor('Declaration'); | ||
@@ -165,0 +165,0 @@ if (declaration && initials[declaration.name]) { |
@@ -15,3 +15,3 @@ "use strict"; | ||
fn: function (declaration) { | ||
var block = declaration.getParent('Block'); | ||
let block = declaration.getParent('Block'); | ||
@@ -25,3 +25,3 @@ if (block) { | ||
function addMsFilter (block, filter) { | ||
var declaration = block.getChild({ | ||
let declaration = block.getChild({ | ||
type: 'Declaration', | ||
@@ -45,3 +45,3 @@ name: 'filter', | ||
var string = declaration.get('String'); | ||
let string = declaration.get('String'); | ||
@@ -48,0 +48,0 @@ if (string.name) { |
@@ -19,3 +19,3 @@ "use strict"; | ||
fn: function (conditionalFeature) { | ||
var query = conditionalFeature.getAncestor('MediaQuery'); | ||
let query = conditionalFeature.getAncestor('MediaQuery'); | ||
@@ -47,3 +47,3 @@ if (query) { | ||
//change unit | ||
var unit = feature.get('Unit'); | ||
let unit = feature.get('Unit'); | ||
@@ -73,3 +73,3 @@ if (unit) { | ||
fn: function (unit) { | ||
var number = unit.get('Number'); | ||
let number = unit.get('Number'); | ||
@@ -76,0 +76,0 @@ if (unit.name === 'dppx') { |
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
135867
55
5114
48