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

Side by Side 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: Change block-opening-brace-space-before to always-single-line Created Sept. 18, 2017, 8:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | stylelint-config-eyeo/index.js » ('j') | stylelint-config-eyeo/index.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 This command requires administrator privileges so you might need to use `sudo`.
juliandoucette 2017/10/13 14:21:06 NIT: Isn't it a bad idea to give npm administrator
ire 2017/10/24 09:05:16 The `sudo` is what may be required to run the comm
juliandoucette 2017/10/26 15:24:08 sudo is not required to run this command.
ire 2017/10/30 08:30:47 It depends on the version of npm. In older version
juliandoucette 2017/11/01 13:14:26 On 2017/10/30 08:30:47, ire wrote: Let's leave th
ire 2017/11/07 07:14:01 Acknowledged.
12
13 Next, either install stylelint-config-eyeo within your project. For example:
14
15 npm install --save-dev stylelint-config-eyeo
16
17 Or, install stylelint-config-eyeo globally. For example:
18
19 npm install -g stylelint-config-eyeo
20
21 ## Usage
22
23 To lint a CSS (or CSS-like, e.g. SCSS, SugarCSS, Less) file using Stylelint
24 you run the `stylelint` command with the file as an argument. For example:
25
26 stylelint example.css
27
28 For advanced usage see `stylelint --help`.
29
30 In order to use stylelint-config-eyeo, your project's Stylelint configuration
31 should extend from it. A minimal example looks like this:
32
33 {
34 "extends": "stylelint-config-eyeo"
35 }
36
37 If you've globally installed stylelint-config-eyeo using the `-g` flag, then
38 you'll need to use the absolute path to stylelint-config-eyeo in your config.
39
40 {
41 "extends": "/absolute/path/to/stylelint-config-eyeo"
42 }
43
44 For projects without a Stylelint configuration you can create your own
45 personal configuration in `~/.stylelintrc.json`.
OLDNEW
« no previous file with comments | « no previous file | stylelint-config-eyeo/index.js » ('j') | stylelint-config-eyeo/index.js » ('J')

Powered by Google App Engine
This is Rietveld