Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sass-lint

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-lint - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0-alpha.1

index.js

2

bin/sass-lint.js

@@ -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));
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc