editorconfig-checker
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -10,2 +10,8 @@ 'use strict'; | ||
// Quickfix for this issue | ||
// https://github.com/editorconfig-checker/editorconfig-checker.javascript/issues/18 | ||
var getDefaultExcludesRegexp = function getDefaultExcludesRegexp() { | ||
return ['vendor', 'node_modules', 'coverage/', '.DS_Store/', '.git/', '.gif', '.png', '.bmp', '.jpg', '.svg', '.ico', '.lock', '.eot', '.woff', '.woff2', '.ttf', '.bak', '.bin', '.min.js', '.min.css', '.pdf', '.jpeg']; | ||
}; | ||
var getExcludePatternFromArgs = function getExcludePatternFromArgs(args) { | ||
@@ -31,2 +37,6 @@ var excludesArray = []; | ||
if (!args['ignore-defaults']) { | ||
excludesArray.push(getDefaultExcludesRegexp()); | ||
} | ||
var excludeString = [].concat.apply([], excludesArray).join('|'); | ||
@@ -33,0 +43,0 @@ |
{ | ||
"name": "editorconfig-checker", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -28,2 +28,31 @@ const getDefaultExcludes = () => { | ||
// Quickfix for this issue | ||
// https://github.com/editorconfig-checker/editorconfig-checker.javascript/issues/18 | ||
const getDefaultExcludesRegexp = () => { | ||
return [ | ||
'vendor', | ||
'node_modules', | ||
'coverage/', | ||
'.DS_Store/', | ||
'.git/', | ||
'.gif', | ||
'.png', | ||
'.bmp', | ||
'.jpg', | ||
'.svg', | ||
'.ico', | ||
'.lock', | ||
'.eot', | ||
'.woff', | ||
'.woff2', | ||
'.ttf', | ||
'.bak', | ||
'.bin', | ||
'.min.js', | ||
'.min.css', | ||
'.pdf', | ||
'.jpeg' | ||
]; | ||
}; | ||
const getExcludePatternFromArgs = args => { | ||
@@ -49,2 +78,6 @@ const excludesArray = []; | ||
if (!args['ignore-defaults']) { | ||
excludesArray.push(getDefaultExcludesRegexp()); | ||
} | ||
const excludeString = [] | ||
@@ -51,0 +84,0 @@ .concat.apply([], excludesArray) |
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
97088
2319
54