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

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

Issue 30050569: Noissue - Removed linters which are now moved to a seperate repository (Closed)
Patch Set: Created April 25, 2019, 11:17 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « stylelint-config-eyeo/css-properties-order.js ('k') | stylelint-config-eyeo/package.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
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/>.
16 */
17
18 "use strict";
19
20 module.exports = {
21 extends: "stylelint-config-recommended",
22 plugins: [
23 "stylelint-order"
24 ],
25 rules: {
26 // Opening braces go on their own line
27 "block-opening-brace-newline-before": "always-multi-line",
28 "block-opening-brace-newline-after": "always-multi-line",
29 "block-closing-brace-newline-before": "always-multi-line",
30 "block-closing-brace-newline-after": "always",
31 "block-closing-brace-empty-line-before": "never",
32
33 // Use a space between the last selector and the declaration block
34 "block-opening-brace-space-before": "always-single-line",
35
36 // Use a space after a property name’s colon
37 "declaration-colon-space-after": "always",
38
39 // Selectors and declarations should be on their own line
40 "selector-list-comma-newline-after": "always",
41 "declaration-block-semicolon-newline-after": "always-multi-line",
42
43 // Separate rules by an empty line
44 "rule-empty-line-before": ["always", {
45 "ignore": ["after-comment"],
46 "except": ["first-nested"]
47 }],
48
49 // Use double over single quotation marks
50 "string-quotes": "double",
51
52 // CSS color values should be specified in hexadecimal where possible
53 "color-named": "never",
54
55 // Use short hexadecimal notation where possible
56 "color-hex-length": "short",
57
58 // Don't omit the optional leading 0 for decimal numbers
59 "number-leading-zero": "always",
60 "number-no-trailing-zeros": true,
61
62 // Two spaces per logic level
63 "indentation": 2,
64
65 // Line length should be 80 characters or less
66 "max-line-length": 80,
67
68 // Avoid qualifying ID and class names with type selectors
69 "selector-no-qualifying-type": [true, {
70 "ignore": ["attribute"]
71 }],
72
73 // Font weight values should be specified in relative or numerical notation
74 "font-weight-notation": ["numeric", {
75 "ignore": ["relative"]
76 }],
77
78 // CSS rule declaration order should follow the WordPress CSS
79 // Coding Standards
80 "order/properties-order": require("./css-properties-order")
81 }
82 };
OLDNEW
« no previous file with comments | « stylelint-config-eyeo/css-properties-order.js ('k') | stylelint-config-eyeo/package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld