Skip to content

Commit

Permalink
Merge pull request #31 from punkave/feature/req-vars
Browse files Browse the repository at this point in the history
Feature/req vars
  • Loading branch information
Alex Bea authored Sep 11, 2017
2 parents d9d4f5b + 24599de commit 6788380
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

```bash
npm install stylelint-config-punkave --save-dev
npm install stylelint-order stylelint-declaration-strict-value --save-dev
```
Add the following to `.stylelintrc` in root directory of project.

Expand Down
19 changes: 18 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
'plugins': [
'stylelint-order'
'stylelint-order',
'stylelint-declaration-strict-value'
],
'rules': {
'color-hex-length': 'short',
Expand Down Expand Up @@ -71,6 +72,22 @@ module.exports = {
'font-family',
'font-size',
'text-align'
],
'scale-unlimited/declaration-strict-value': [
[
'/color/',
'font',
'font-family',
'font-size',
'z-index'
],
{
ignoreKeywords: [
'currentColor',
'inherit',
'initial'
]
}
]
}
};

0 comments on commit 6788380

Please sign in to comment.