| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Use a space after a property name’s colon | 34 // Use a space after a property name’s colon |
| 35 "declaration-colon-space-after": "always", | 35 "declaration-colon-space-after": "always", |
| 36 | 36 |
| 37 // Selectors and declarations should be on their own line | 37 // Selectors and declarations should be on their own line |
| 38 "selector-list-comma-newline-after": "always", | 38 "selector-list-comma-newline-after": "always", |
| 39 "declaration-block-semicolon-newline-after": "always-multi-line", | 39 "declaration-block-semicolon-newline-after": "always-multi-line", |
| 40 | 40 |
| 41 // Separate rules by an empty line | 41 // Separate rules by an empty line |
| 42 "rule-empty-line-before": ["always", { | 42 "rule-empty-line-before": ["always", { |
| 43 "ignore": ["after-comment", "first-nested"] | 43 "ignore": ["after-comment"], |
| 44 "except": ["first-nested"] |
| 44 }], | 45 }], |
| 45 | 46 |
| 46 // Use double over single quotation marks | 47 // Use double over single quotation marks |
| 47 "string-quotes": "double", | 48 "string-quotes": "double", |
| 48 | 49 |
| 49 // CSS color values should be specified in hexadecimal where possible | 50 // CSS color values should be specified in hexadecimal where possible |
| 50 "color-named": "never", | 51 "color-named": "never", |
| 51 | 52 |
| 52 // Use short hexadecimal notation where possible | 53 // Use short hexadecimal notation where possible |
| 53 "color-hex-length": "short", | 54 "color-hex-length": "short", |
| 54 | 55 |
| 55 // Don't omit the optional leading 0 for decimal numbers | 56 // Don't omit the optional leading 0 for decimal numbers |
| 56 "number-leading-zero": "always", | 57 "number-leading-zero": "always", |
| 57 "number-no-trailing-zeros": true, | 58 "number-no-trailing-zeros": true, |
| 58 | 59 |
| 59 // Two spaces per logic level | 60 // Two spaces per logic level |
| 60 "indentation": 2, | 61 "indentation": 2, |
| 61 | 62 |
| 62 // Line length should be 80 characters or less | 63 // Line length should be 80 characters or less |
| 63 "max-line-length": 80, | 64 "max-line-length": 80, |
| 64 | 65 |
| 65 // Avoid qualifying ID and class names with type selectors | 66 // Avoid qualifying ID and class names with type selectors |
| 66 "selector-no-qualifying-type": [true, { | 67 "selector-no-qualifying-type": [true, { |
| 67 "ignore": ["attribute"] | 68 "ignore": ["attribute"] |
| 68 }] | 69 }] |
| 69 } | 70 } |
| 70 }; | 71 }; |
| OLD | NEW |