
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
polish-css
Advanced tools
A plugin-based linting tool for CSS. Make your stylesheets perfect. Add an extra coat of polish.
Spend less time reviewing pull requests. Make learning your rules simpler for new additions to the team. Keep your code more consistent and more reliable...
Or don't. You're the boss.
Manicure your CSS with Polish.
Features:
Polish works with CSS, SCSS, Sass, and Less.
Do this:
var polish = require('polish-css');
Then do this:
var stylesheet = '#css { color: red; }',
pathToStylesheet = '/path/to/stylesheet',
myPrivateModules = require('./path/to/private/modules'),
pluginsToUse = [
{
module : 'polish-no-styling-ids',
severity : 2
},
{
module : myPrivateModules.someLinter,
severity : 2,
lintingOption : ['.things', '.to', '.pass', '.to', '.the', '.linter']
}
],
results;
results = polish(stylesheet, pathToStylesheet, pluginsToUse);
polish.reporter(pathToStylesheet, results.errors, results.warnings);
Linters can be ignored using inline commenting:
To disable a block of comments, use /* polish-disable */
and /* polish-enable */
.
/* polish-disable */
.polish-is-entirely-disabled-here {
color: green;
}
/* polish-enable */
To disable a specific rule for a range of comments, use the same syntax as above with a comma-separated
list of plugins to disable /* polish-disable no-styling-ids, no-styling-elements */
. They can be individually
re-enabled using /* polish-enable no-styling-elements */
.
To disable an individual line, use /* polish-disable-line */
. It also can accept a comma-separated list of plugins.
Install from npm:
npm install polish-css
If you want to use the CLI, install Polish globally:
npm install -g polish-css
calc
in background-position
(it crashes older IE versions).@extend
is only used with placeholders (for Sass and SCSS).!important
.This project is licensed under the terms of the MIT license.
FAQs
A plugin-based linting tool for CSS. Make your stylesheets perfect. Add an extra coat of polish.
The npm package polish-css receives a total of 0 weekly downloads. As such, polish-css popularity was classified as not popular.
We found that polish-css 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.