OLD | NEW |
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 26 matching lines...) Expand all Loading... |
58 | 61 |
59 // Two spaces per logic level | 62 // Two spaces per logic level |
60 "indentation": 2, | 63 "indentation": 2, |
61 | 64 |
62 // Line length should be 80 characters or less | 65 // Line length should be 80 characters or less |
63 "max-line-length": 80, | 66 "max-line-length": 80, |
64 | 67 |
65 // Avoid qualifying ID and class names with type selectors | 68 // Avoid qualifying ID and class names with type selectors |
66 "selector-no-qualifying-type": [true, { | 69 "selector-no-qualifying-type": [true, { |
67 "ignore": ["attribute"] | 70 "ignore": ["attribute"] |
68 }] | 71 }], |
| 72 |
| 73 // CSS rule declaration order should follow the WordPress CSS |
| 74 // Coding Standards |
| 75 "order/properties-order": require("./css-properties-order") |
69 } | 76 } |
70 }; | 77 }; |
OLD | NEW |