Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: stylelint-config-eyeo/README.md

Issue 29541680: Issue 5109 - Create stylelintrc for websites and ui modules (Closed) Base URL: https://hg.adblockplus.org/codingtools
Patch Set: Add max-line-length, update README with usage information Created Sept. 15, 2017, 8:53 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | stylelint-config-eyeo/index.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: stylelint-config-eyeo/README.md
===================================================================
new file mode 100644
--- /dev/null
+++ b/stylelint-config-eyeo/README.md
@@ -0,0 +1,45 @@
+# stylelint-config-eyeo
+
+A [Stylelint](https://stylelint.io) configuration that checks for compliance
+with the [Adblock Plus coding style guide](https://adblockplus.org/coding-style#html-css)
+which is used for all eyeo projects.
+
+## Installation
+
+ npm install -g stylelint
+
+This command requires administrator privileges so you might need to use `sudo`.
+
+Next, either install stylelint-config-eyeo within your project. For example:
+
+ npm install --save-dev stylelint-config-eyeo
Thomas Greiner 2017/09/15 16:58:29 Is this worth mentioning? Considering that there a
ire 2017/09/18 07:36:20 I was trying to follow the style that was used in
Thomas Greiner 2017/11/14 13:18:31 Sounds reasonable.
+
+Or, install stylelint-config-eyeo globally. For example:
+
+ npm install --g stylelint-config-eyeo
Thomas Greiner 2017/09/15 16:58:29 Detail: This should be either `-g` or `--global`.
ire 2017/09/18 07:36:20 Good catch, I meant `-g`. Done.
+
+## Usage
+
+To lint a CSS (or CSS-like, e.g. SCSS, SugarCSS, Less) file using Stylelint
+you run the `stylelint` command with the file as an argument. For example:
+
+ stylelint example.css
+
+For advanced usage see `stylelint --help`.
+
+In order to use stylelint-config-eyeo, your project's Stylelint configuration
+should extend from it. A minimal example looks like this:
+
+ {
+ "extends": "stylelint-config-eyeo"
+ }
+
+If you've globally installed stylelint-config-eyeo using the `-g` flag, then
+you'll need to use the absolute path to stylelint-config-eyeo in your config.
+
+ {
+ "extends": "/absolute/path/to/stylelint-config-eyeo"
+ }
+
+For projects without a Stylelint configuration you can create your own
+personal configuration in `~/.stylelintrc.json`.
« no previous file with comments | « no previous file | stylelint-config-eyeo/index.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld