Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-polish
Advanced tools
gulp plugin for integrating Polish.
npm install --save gulp-polish
var gulp = require('gulp');
var polish = require('gulp-polish');
gulp.task('polish', function() {
return gulp.src('./test_stylesheets/**/*.scss')
.pipe(polish())
.pipe(polish.reporter());
});
gulp-polish adds the following properties to the file object:
file.polish.success = false; // or true, if there aren't any warnings or errors!
file.polish.errors = [...]; // Every failure with severity 2
file.polish.warnings = [...]; // Every failure with severity 1
To configure which rules are applied on a per-directory basis, use .polish.json
files.
The config will inherit from its parents directories. Just create a simple JSON object
that specifies rules to include/exclude by filename.
{
"config": [
{
"module" : "polish-no-styling-elements",
"severity" : 2 // an error
},
{
"module" : "polish-no-bang-important",
"severity" : 1 // a warning
},
{
"module" : "polish-no-banned-selectors",
"severity" : 0 // ignored,
"selectors" : [".these", "#will", ".be", "#banned"]
}
],
"fileConfig": {
// individual files can be configured like this
"_colors.scss": [
{
"module" : "polish-use-color-variables",
"severity" : 0
}
]
}
}
If you want to disable a particular ruleset in a file, you can do an inline config that will apply only to the next rule in the sheet:
/* polish no-styling-ids=false */
#now-this-wont-be-an-error {
color: green;
}
#but-this-one-will-be {
color: red;
}
This project is licensed under the terms of the MIT license.
FAQs
Make your stylesheets perfect. Add an extra coat of polish.
The npm package gulp-polish receives a total of 1 weekly downloads. As such, gulp-polish popularity was classified as not popular.
We found that gulp-polish demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.