Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/regru/stylelint-plugin-regru

Stylelint rules for REG.RU project
https://github.com/regru/stylelint-plugin-regru

Last synced: 29 days ago
JSON representation

Stylelint rules for REG.RU project

Awesome Lists containing this project

README

        

# stylelint-plugin-regru

Stylelint rules for REG.RU project

```
npm i stylelint stylelint-plugin-regru
```

## function-space-quotes-inside

Add exception for `()` parens which contains ONLY string expression like:

```
//never-single-line-quotes
.block {
background: url('hello.png'); //correct
background: url( 'hello.png' ); //incorrect
}

//always-single-line-quotes
.block {
background: url( 'hello.png' ); //correct
background: url('hello.png'); //incorrect
}

```

```
//.stylelintrc
{
"plugins": [
"stylelint-plugin-regru"
],
"rules": {
"stylelint-plugin-regru/function-space-quotes-inside": "never-single-line-quotes"
}
}

```