Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@songkick/stylelint-config-songkick
Advanced tools
Boilerplate configuration for Stylelint CSS linter
A boilerplate configuration for stylelint, with SCSS syntax linting by stylelint-scss.
This project is currently an experimental WIP. For the most part it follows existing Songkick and some former CrowdSurge CSS patterns. We'll gradually add/remove rules as we work out what does and doesn't work for us.
This linter is designed to enforce syntax and coding style - rather than any specific architectural patterns. It will generally not force you to write your CSS to fit a certain methodology or practice, but will make sure that CSS is written in a way that looks consistent and familiar across projects.
## Installation and Configuration
In your project run:
npm install stylelint stylelint-scss @songkick/stylelint-config-songkick --save-dev
Add a .stylelintrc
file to your project which extends this configuration:
{
"extends": "@songkick/stylelint-config-songkick"
}
Where the linting rules don't suit a certain project, or cause issues when including the linter in an existing codebase, you can also override and add to these rules as required:
{
"extends": "@songkick/stylelint-config-songkick",
"rules": {
"indentation": 2,
"declaration-no-important": true
}
}
Full documentation on the stylelint config file can be found here: http://stylelint.io/user-guide/configuration/#the-configuration-object
a
, div
, :hover
)width
, height
, margin
)@media
, @keyframe
)scale(0.5)
)px
, em
, s
)#f80046
)div.class-name
- Note: This excludes attribute selectors).width: 123px;
).!important
, you must place a space before, but never after the bang. (ie. width: 123px !important;
).margin
property in a rule after margin-left
).@media (min-width ...)
).min-width: 123px
).skew(30deg, 20deg)
).transform: scale(1.5) rotateX(10deg);
).background-image: url(foo.jpg);
)margin: 1px 1px 1px 1px;
should be margin: 1px;
)### Units
0px
> 0
).1.23px
).0.5px
).1.50px
)."Proxima Nova"
), not around ones that don't (eg. Arial
).Please read the included Contribution Guidelines guide before working on this project.
FAQs
Boilerplate configuration for Stylelint CSS linter
We found that @songkick/stylelint-config-songkick demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.