| OLD | NEW |
| (Empty) |
| 1 # stylelint-config-eyeo | |
| 2 | |
| 3 A [Stylelint](https://stylelint.io) configuration that checks for compliance | |
| 4 with the [Adblock Plus coding style guide](https://adblockplus.org/coding-style#
html-css) | |
| 5 which is used for all eyeo projects. | |
| 6 | |
| 7 ## Installation | |
| 8 | |
| 9 npm install -g stylelint | |
| 10 | |
| 11 Next, either install stylelint-config-eyeo within your project. For example: | |
| 12 | |
| 13 npm install --save-dev stylelint-config-eyeo | |
| 14 | |
| 15 Or, install stylelint-config-eyeo globally. For example: | |
| 16 | |
| 17 npm install -g stylelint-config-eyeo | |
| 18 | |
| 19 ## Usage | |
| 20 | |
| 21 To lint a CSS (or CSS-like, e.g. SCSS, SugarCSS, Less) file using Stylelint | |
| 22 you run the `stylelint` command with the file as an argument. For example: | |
| 23 | |
| 24 stylelint example.css | |
| 25 | |
| 26 For advanced usage see `stylelint --help`. | |
| 27 | |
| 28 In order to use stylelint-config-eyeo, your project's Stylelint configuration | |
| 29 should extend from it. A minimal example looks like this: | |
| 30 | |
| 31 { | |
| 32 "extends": "stylelint-config-eyeo" | |
| 33 } | |
| 34 | |
| 35 If you've globally installed stylelint-config-eyeo using the `-g` flag, then | |
| 36 you'll need to use the absolute path to stylelint-config-eyeo in your config. | |
| 37 | |
| 38 { | |
| 39 "extends": "/absolute/path/to/stylelint-config-eyeo" | |
| 40 } | |
| 41 | |
| 42 For projects without a Stylelint configuration you can create your own | |
| 43 personal configuration in `~/.stylelintrc.json`. | |
| 44 | |
| 45 ## License | |
| 46 | |
| 47 - CSS property order in `css-properties-order.js` based on [grunt-wp-css](https:
//github.com/cedaro/grunt-wp-css/blob/develop/tasks/config/default.json) | |
| OLD | NEW |