Comparing version 0.0.0 to 0.1.0-alpha.1
@@ -5,3 +5,3 @@ #!/usr/bin/env node | ||
var exitCode = 0, | ||
lint = require('../lib/scss-lint'); | ||
lint = require('../lib/sass-lint'); | ||
@@ -8,0 +8,0 @@ process.on('exit', function () { |
@@ -6,10 +6,23 @@ 'use strict'; | ||
merge = require('merge'), | ||
defaults = yaml.safeLoad(fs.readFileSync(__dirname + '/../node_modules/scss-lint/config/default.yml', 'utf8')), | ||
configPath = process.cwd() + '/.scss-lint.yml', | ||
config = {}; | ||
defaults = yaml.safeLoad(fs.readFileSync(__dirname + '/config/sass-lint.yml', 'utf8')), | ||
configPath = process.cwd() + '/.sass-lint.yml'; | ||
if (fs.existsSync(configPath)) { | ||
config = yaml.safeLoad(fs.readFileSync(configPath, 'utf8')); | ||
} | ||
module.exports = merge(defaults, config); | ||
module.exports = function (options) { | ||
var config = {}, | ||
finalConfig = {}; | ||
finalConfig = defaults; | ||
if (fs.existsSync(configPath)) { | ||
config = yaml.safeLoad(fs.readFileSync(configPath, 'utf8')); | ||
finalConfig = merge(finalConfig, config); | ||
} | ||
if (options) { | ||
finalConfig = merge(finalConfig, options); | ||
} | ||
return finalConfig; | ||
} |
{ | ||
"name": "sass-lint", | ||
"version": "0.0.0", | ||
"version": "0.1.0-alpha.1", | ||
"description": "Sass linter. Compatible but different from scss-lint", | ||
"main": "lib/sass-lint.js", | ||
"main": "index.js", | ||
"bin": { | ||
"sass-lint": "./bin/sass-lint.js" | ||
}, | ||
"scripts": { | ||
"install": "napa causes/scss-lint" | ||
}, | ||
"repository": { | ||
@@ -28,10 +25,9 @@ "type": "git", | ||
"dependencies": { | ||
"bluebird": "^2.9.9", | ||
"gonzales-pe": "^3.0.0-26", | ||
"eslint": "^1.1.0", | ||
"glob": "^4.3.5", | ||
"gonzales-pe": "^3.0.0-31", | ||
"js-yaml": "^3.2.6", | ||
"merge": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"napa": "^1.2.0" | ||
"merge": "^1.2.0", | ||
"util": "^0.10.3" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
# Sass Lint | ||
# Sass Lint [![npm version](https://badge.fury.io/js/sass-lint.svg)](http://badge.fury.io/js/sass-lint) | ||
A Node based [Sass](http://sass-lang.com/) linter. Designed (eventually) as a drop-in replacement for [SCSS-Lint](https://github.com/causes/scss-lint). |
@@ -1,1 +0,20 @@ | ||
'use strict'; | ||
'use strict'; | ||
var lint = require('../index'), | ||
util = require('util'), | ||
detects = [], | ||
fs = require('fs'); | ||
// var file = fs.readFileSync('./foo.scss', 'utf-8'); | ||
// detects.push(lint.lintText({ | ||
// 'text': file, | ||
// 'format': 'scss', | ||
// 'filename': 'foo.scss' | ||
// })); | ||
detects = lint.lintFiles('**/*.s+(a|c)ss'); | ||
console.log(lint.formatResults(detects)); | ||
// console.log(util.inspect(detects, false, null)); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
15810
0
20
429
0
6
5
1
+ Addedeslint@^1.1.0
+ Addedglob@^4.3.5
+ Addedutil@^0.10.3
+ Addedansi-escapes@1.4.0(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcircular-json@0.3.3(transitive)
+ Addedcli-cursor@1.0.2(transitive)
+ Addedcli-width@1.1.1(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddeep-is@0.1.4(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddoctrine@0.7.2(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-map@0.1.5(transitive)
+ Addedes6-set@0.1.6(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedes6-weak-map@2.0.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedescope@3.6.0(transitive)
+ Addedeslint@1.10.3(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedespree@2.2.5(transitive)
+ Addedesprima@2.7.3(transitive)
+ Addedesrecurse@4.3.0(transitive)
+ Addedestraverse@4.3.05.3.0(transitive)
+ Addedestraverse-fb@1.3.2(transitive)
+ Addedesutils@1.1.62.0.3(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedexit-hook@1.1.1(transitive)
+ Addedext@1.7.0(transitive)
+ Addedfast-levenshtein@1.0.7(transitive)
+ Addedfigures@1.7.0(transitive)
+ Addedfile-entry-cache@1.3.1(transitive)
+ Addedflat-cache@1.3.4(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@4.5.35.0.157.2.3(transitive)
+ Addedglobals@8.18.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhandlebars@4.7.8(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.32.0.4(transitive)
+ Addedinquirer@0.11.4(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedis-resolvable@1.1.0(transitive)
+ Addedisarray@0.0.11.0.02.0.5(transitive)
+ Addedjs-yaml@3.4.5(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedlevn@0.2.5(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedlodash._arraycopy@3.0.0(transitive)
+ Addedlodash._arrayeach@3.0.0(transitive)
+ Addedlodash._arraymap@3.0.0(transitive)
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._baseclone@3.3.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basedifference@3.0.3(transitive)
+ Addedlodash._baseflatten@3.1.4(transitive)
+ Addedlodash._basefor@3.0.3(transitive)
+ Addedlodash._baseindexof@3.1.0(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._cacheindexof@3.0.2(transitive)
+ Addedlodash._createassigner@3.1.1(transitive)
+ Addedlodash._createcache@3.1.2(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash._pickbyarray@3.0.2(transitive)
+ Addedlodash._pickbycallback@3.0.0(transitive)
+ Addedlodash.clonedeep@3.0.2(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.isplainobject@3.2.0(transitive)
+ Addedlodash.istypedarray@3.0.6(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.keysin@3.0.8(transitive)
+ Addedlodash.merge@3.3.2(transitive)
+ Addedlodash.omit@3.1.0(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
+ Addedlodash.toplainobject@3.0.0(transitive)
+ Addedminimatch@2.0.103.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.0.0(transitive)
+ Addedmute-stream@0.0.5(transitive)
+ Addedneo-async@2.6.2(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@1.1.0(transitive)
+ Addedoptionator@0.6.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-is-inside@1.0.2(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedreadline2@1.0.1(transitive)
+ Addedrestore-cursor@1.0.1(transitive)
+ Addedrimraf@2.6.3(transitive)
+ Addedrun-async@0.1.0(transitive)
+ Addedrx-lite@3.1.2(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedshelljs@0.5.3(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-json-comments@1.0.4(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addeduglify-js@3.19.3(transitive)
+ Addeduser-home@2.0.0(transitive)
+ Addedutil@0.10.4(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwordwrap@0.0.31.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedwrite@0.2.1(transitive)
+ Addedxml-escape@1.0.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedbluebird@^2.9.9
- Removedbluebird@2.11.0(transitive)
Updatedgonzales-pe@^3.0.0-31