Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pressmodo/stylelint-config
Pressmodo custom WordPress CSS & SCSS Coding Standards shareable config for stylelint.
https://github.com/pressmodo/stylelint-config
pressmodo stylelint stylelint-config stylelint-config-wordpress wordpress wordpress-standards
Last synced: about 2 months ago
JSON representation
Pressmodo custom WordPress CSS & SCSS Coding Standards shareable config for stylelint.
- Host: GitHub
- URL: https://github.com/pressmodo/stylelint-config
- Owner: Pressmodo
- License: mit
- Created: 2019-02-25T15:12:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T16:52:25.000Z (about 2 years ago)
- Last Synced: 2024-10-10T12:21:36.342Z (3 months ago)
- Topics: pressmodo, stylelint, stylelint-config, stylelint-config-wordpress, wordpress, wordpress-standards
- Language: JavaScript
- Size: 222 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Pressmodo Stylelint Config
=====================In order to improve both our efficiency and consistency, we need to standardize what we use and how we use it. This repository contains Pressmodo's standard configuration for [Stylelint](https://github.com/stylelint/stylelint), our preferred stylesheet linter.
## Dependencies
1. [Node & NPM](https://www.npmjs.com/get-npm) - 3rd party dependencies are managed through NPM, so you will need that installed globally
2. [Stylelint](https://stylelint.io/) - as this is a config extention for Stylelint, you will need Stylelint installed in your main project in order for it to work.## Installation
First, install Stylelint:
```
// NPM
npm install stylelint --save-dev// Yarn
yarn add stylelint --dev
```Then install the Pressmodo Stylelint config:
```
// NPM
npm install @pressmodo/stylelint-config --save-dev
```## Usage
Add the following to your `.stylelintrc` file:
```js
{
"plugins": [
"@pressmodo/stylelint-config"
]
}```
## Autofixing
Certain rules / violations can be fixed automatically using the `--fix` flag via the command line.
To ensure that Stylelint fixes what it can, you can run:```
stylelint path/to/css/file.css --fix
```