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

Side by Side Diff: stylelint-config-eyeo/index.js

Issue 29643562: Issue 5689 - Add rules for CSS declaration order to stylelint-config-eyeo (Closed) Base URL: https://hg.adblockplus.org/codingtools
Patch Set: Rebase, ignore node_modules in any subdirectory Created Jan. 10, 2018, 10:17 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
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 "use strict"; 18 "use strict";
19 19
20 module.exports = { 20 module.exports = {
21 extends: "stylelint-config-recommended", 21 extends: "stylelint-config-recommended",
22 plugins: [
23 "stylelint-order"
24 ],
22 rules: { 25 rules: {
23 // Opening braces go on their own line 26 // Opening braces go on their own line
24 "block-opening-brace-newline-before": "always-multi-line", 27 "block-opening-brace-newline-before": "always-multi-line",
25 "block-opening-brace-newline-after": "always-multi-line", 28 "block-opening-brace-newline-after": "always-multi-line",
26 "block-closing-brace-newline-before": "always-multi-line", 29 "block-closing-brace-newline-before": "always-multi-line",
27 "block-closing-brace-newline-after": "always", 30 "block-closing-brace-newline-after": "always",
28 "block-closing-brace-empty-line-before": "never", 31 "block-closing-brace-empty-line-before": "never",
29 32
30 // Use a space between the last selector and the declaration block 33 // Use a space between the last selector and the declaration block
31 "block-opening-brace-space-before": "always-single-line", 34 "block-opening-brace-space-before": "always-single-line",
(...skipping 27 matching lines...) Expand all
59 62
60 // Two spaces per logic level 63 // Two spaces per logic level
61 "indentation": 2, 64 "indentation": 2,
62 65
63 // Line length should be 80 characters or less 66 // Line length should be 80 characters or less
64 "max-line-length": 80, 67 "max-line-length": 80,
65 68
66 // Avoid qualifying ID and class names with type selectors 69 // Avoid qualifying ID and class names with type selectors
67 "selector-no-qualifying-type": [true, { 70 "selector-no-qualifying-type": [true, {
68 "ignore": ["attribute"] 71 "ignore": ["attribute"]
69 }] 72 }],
73
74 // CSS rule declaration order should follow the WordPress CSS
75 // Coding Standards
76 "order/properties-order": require("./css-properties-order")
70 } 77 }
71 }; 78 };
OLDNEW

Powered by Google App Engine
This is Rietveld