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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 rules: { | 25 rules: { |
26 // Opening braces go on their own line | 26 // Opening braces go on their own line |
27 "block-opening-brace-newline-before": "always-multi-line", | 27 "block-opening-brace-newline-before": "always-multi-line", |
28 "block-opening-brace-newline-after": "always-multi-line", | 28 "block-opening-brace-newline-after": "always-multi-line", |
29 "block-closing-brace-newline-before": "always-multi-line", | 29 "block-closing-brace-newline-before": "always-multi-line", |
30 "block-closing-brace-newline-after": "always", | 30 "block-closing-brace-newline-after": "always", |
31 "block-closing-brace-empty-line-before": "never", | 31 "block-closing-brace-empty-line-before": "never", |
32 | 32 |
33 // Use a space between the last selector and the declaration block | 33 // Use a space between the last selector and the declaration block |
34 "block-opening-brace-space-before": "always-single-line", | 34 "block-opening-brace-space-before": "always-single-line", |
35 "block-closing-brace-space-after": "always-single-line", | |
36 | 35 |
37 // Use a space after a property name’s colon | 36 // Use a space after a property name’s colon |
38 "declaration-colon-space-after": "always", | 37 "declaration-colon-space-after": "always", |
39 | 38 |
40 // Selectors and declarations should be on their own line | 39 // Selectors and declarations should be on their own line |
41 "selector-list-comma-newline-after": "always", | 40 "selector-list-comma-newline-after": "always", |
42 "declaration-block-semicolon-newline-after": "always-multi-line", | 41 "declaration-block-semicolon-newline-after": "always-multi-line", |
43 | 42 |
44 // Separate rules by an empty line | 43 // Separate rules by an empty line |
45 "rule-empty-line-before": ["always", { | 44 "rule-empty-line-before": ["always", { |
(...skipping 28 matching lines...) Expand all Loading... |
74 // Font weight values should be specified in relative or numerical notation | 73 // Font weight values should be specified in relative or numerical notation |
75 "font-weight-notation": ["numeric", { | 74 "font-weight-notation": ["numeric", { |
76 "ignore": ["relative"] | 75 "ignore": ["relative"] |
77 }], | 76 }], |
78 | 77 |
79 // CSS rule declaration order should follow the WordPress CSS | 78 // CSS rule declaration order should follow the WordPress CSS |
80 // Coding Standards | 79 // Coding Standards |
81 "order/properties-order": require("./css-properties-order") | 80 "order/properties-order": require("./css-properties-order") |
82 } | 81 } |
83 }; | 82 }; |
OLD | NEW |