| Index: stylelint-config-eyeo/index.js |
| =================================================================== |
| --- a/stylelint-config-eyeo/index.js |
| +++ b/stylelint-config-eyeo/index.js |
| @@ -14,16 +14,19 @@ |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| "use strict"; |
| module.exports = { |
| extends: "stylelint-config-recommended", |
| + plugins: [ |
| + "stylelint-order" |
| + ], |
| rules: { |
| // Opening braces go on their own line |
| "block-opening-brace-newline-before": "always-multi-line", |
| "block-opening-brace-newline-after": "always-multi-line", |
| "block-closing-brace-newline-before": "always-multi-line", |
| "block-closing-brace-newline-after": "always", |
| "block-closing-brace-empty-line-before": "never", |
| @@ -61,11 +64,15 @@ |
| "indentation": 2, |
| // Line length should be 80 characters or less |
| "max-line-length": 80, |
| // Avoid qualifying ID and class names with type selectors |
| "selector-no-qualifying-type": [true, { |
| "ignore": ["attribute"] |
| - }] |
| + }], |
| + |
| + // CSS rule declaration order should follow the WordPress CSS |
| + // Coding Standards |
| + "order/properties-order": require("./css-properties-order") |
| } |
| }; |