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

Unified Diff: stylelintrc.json

Issue 29360001: Issue #5109 - Create stylelintrc for websites and ui modules (Closed)
Patch Set: Updated browser support based on ABP requirements Created Nov. 10, 2016, 5:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: stylelintrc.json
===================================================================
new file mode 100644
--- /dev/null
+++ b/stylelintrc.json
@@ -0,0 +1,293 @@
+{
Thomas Greiner 2017/07/07 21:45:00 Did you also consider the "General" section of our
+ "rules": {
+
+ "color-hex-length": "short",
+ "color-named": "never",
+ "color-no-invalid-hex": true,
+
+ "font-family-name-quotes": "always-where-recommended",
+ "font-weight-notation": "numeric",
+
+ "function-calc-no-unspaced-operator": true,
+ "function-comma-newline-before": "never-multi-line",
Thomas Greiner 2017/07/07 21:45:01 Where's this mentioned in the coding style? In ge
+ "function-comma-space-after": "always-single-line",
+ "function-comma-space-before": "never-single-line",
+ "function-linear-gradient-no-nonstandard-direction": true,
+ "function-max-empty-lines": 0,
+ "function-name-case": "lower",
+ "function-parentheses-space-inside": "never",
+ "function-url-quotes": "always",
Thomas Greiner 2017/07/07 21:45:01 This is the opposite of what our coding style defi
+ "function-whitespace-after": "always",
+
+ "number-leading-zero": "always",
+ "number-no-trailing-zeros": true,
+
+ "string-no-newline": true,
+ "string-quotes": "double",
+
+ "time-no-imperceptible": true,
Thomas Greiner 2017/07/07 21:45:00 Apart from it not being in the coding style, this
+
+ "unit-case": "lower",
+ "unit-no-unknown": true,
+
+ "value-keyword-case": "lower",
+ "value-no-vendor-prefix": true,
+
+ "value-list-comma-newline-before": "never-multi-line",
+ "value-list-comma-space-after": "always-single-line",
+ "value-list-comma-space-before": "never-single-line",
+ "value-list-max-empty-lines": 0,
+
+ "custom-property-empty-line-before": "never",
+ "custom-property-no-outside-root": true,
+
+ "property-case": "lower",
+ "property-no-unknown": true,
+ "property-no-vendor-prefix": true,
+
+ "declaration-bang-space-after": "never",
+ "declaration-bang-space-before": "always",
+ "declaration-colon-newline-after": "always-multi-line",
+ "declaration-colon-space-after": "always",
+ "declaration-colon-space-before": "never",
+ "declaration-empty-line-before": "never",
+ "declaration-no-important": true,
Thomas Greiner 2017/07/07 21:45:01 While this is not part of the coding style, I'd ar
+
+ "declaration-block-no-duplicate-properties": true,
+ "declaration-block-no-ignored-properties": true,
+ "declaration-block-no-redundant-longhand-properties": true,
+ "declaration-block-no-shorthand-property-overrides": true,
+ "declaration-block-properties-order": [
Thomas Greiner 2017/07/07 21:45:00 We have also discussed the approach of enumerating
+ "display",
+ "visibility",
+
+ "position",
+ "top",
+ "right",
+ "bottom",
+ "left",
+ "float",
+ "clear",
+ "z-index",
+
+ "flex",
+ "flex-direction",
+ "flex-order",
+ "flex-pack",
+ "flex-align",
+ "box-sizing",
+ "table-layout",
+ "empty-cells",
+ "border-spacing",
+ "border-collapse",
+ "overflow",
+ "overflow-x",
+ "overflow-y",
+ "width",
+ "min-width",
+ "max-width",
+ "height",
+ "min-height",
+ "max-height",
+ "margin",
+ "margin-top",
+ "margin-right",
+ "margin-bottom",
+ "margin-left",
+ "padding",
+ "padding-top",
+ "padding-right",
+ "padding-bottom",
+ "padding-left",
+ "border",
+ "border-collapse",
+ "border-width",
+ "border-style",
+ "border-color",
+ "border-top",
+ "border-top-width",
+ "border-top-style",
+ "border-top-color",
+ "border-right",
+ "border-right-width",
+ "border-right-style",
+ "border-right-color",
+ "border-bottom",
+ "border-bottom-width",
+ "border-bottom-style",
+ "border-bottom-color",
+ "border-left",
+ "border-left-width",
+ "border-left-style",
+ "border-left-color",
+ "border-radius",
+ "border-top-left-radius",
+ "border-top-right-radius",
+ "border-bottom-right-radius",
+ "border-bottom-left-radius",
+ "border-image",
+ "border-image-source",
+ "border-image-slice",
+ "border-image-width",
+ "border-image-outset",
+ "border-image-repeat",
+ "outline",
+ "outline-width",
+ "outline-style",
+ "outline-color",
+ "outline-offset",
+ "box-shadow",
+ "text-shadow",
+
+ "color",
+ "opacity",
+ "background",
+ "background-color",
+ "background-image",
+ "background-repeat",
+ "background-attachment",
+ "background-position",
+ "background-position-x",
+ "background-position-y",
+ "background-clip",
+ "background-origin",
+ "background-size",
+
+ "font",
+ "font-family",
+ "font-size",
+ "font-weight",
+ "font-style",
+ "font-variant",
+ "line-height",
+ "text-align",
+ "text-align-last",
+ "vertical-align",
+ "white-space",
+ "text-decoration",
+ "text-transform",
+ "letter-spacing",
+ "word-spacing",
+ "text-transform",
+ "text-overflow",
+ "text-overflow-ellipsis",
+ "text-overflow-mode",
+ "word-wrap",
+ "word-break",
+ "tab-size",
+
+ "content",
+ "quotes",
+ "cursor",
+ "counter-reset",
+ "counter-increment",
+ "list-style",
+ "list-style-position",
+ "list-style-type",
+ "list-style-image",
+
+ "transition",
+ "transition-delay",
+ "transition-timing-function",
+ "transition-duration",
+ "transition-property",
+ "transform",
+ "transform-origin",
+ "animation",
+ "animation-name",
+ "animation-duration",
+ "animation-play-state",
+ "animation-timing-function",
+ "animation-delay",
+ "animation-iteration-count",
+ "animation-iteration-count",
+ "animation-direction"
+ ],
+ "declaration-block-semicolon-newline-after": "always",
+ "declaration-block-semicolon-newline-before": "never-multi-line",
+ "declaration-block-semicolon-space-after": "never-single-line",
+ "declaration-block-semicolon-space-before": "never",
+ "declaration-block-single-line-max-declarations": 1,
+ "declaration-block-trailing-semicolon": "always",
+
+ "block-closing-brace-empty-line-before": "never",
+ "block-closing-brace-newline-after": "always",
+ "block-closing-brace-newline-before": "always",
+ "block-closing-brace-space-after": "always-single-line",
+ "block-closing-brace-space-before": "always-single-line",
+ "block-no-empty": true,
+ "block-no-single-line": true,
+ "block-opening-brace-newline-after": "always",
+ "block-opening-brace-newline-before": "always-single-line",
+ "block-opening-brace-space-after": "always-single-line",
+ "block-opening-brace-space-before": "always-single-line",
+
+ "selector-attribute-brackets-space-inside": "never",
+ "selector-attribute-operator-space-after": "never",
+ "selector-attribute-operator-space-before": "never",
+ "selector-attribute-quotes": "always",
+ "selector-combinator-space-after": "always",
+ "selector-combinator-space-before": "always",
+ "selector-descendant-combinator-no-non-space": true,
+ "selector-max-compound-selectors": 3,
+ "selector-no-empty": true,
+ "selector-no-qualifying-type": [true, {"ignore": "attribute"}],
+ "selector-no-vendor-prefix": true,
+ "selector-pseudo-class-case": "lower",
+ "selector-pseudo-class-no-unknown": true,
+ "selector-pseudo-class-parentheses-space-inside": "never",
+ "selector-pseudo-element-case": "lower",
+ "selector-pseudo-element-colon-notation": "single",
+ "selector-pseudo-element-no-unknown": true,
+ "selector-type-case": "lower",
+ "selector-type-no-unknown": true,
+ "selector-max-empty-lines": 0,
+
+ "selector-list-comma-newline-after": "always",
+ "selector-list-comma-newline-before": "never-multi-line",
+ "selector-list-comma-space-after": "always-single-line",
+ "selector-list-comma-space-before": "never",
+
+ "root-no-standard-properties": true,
+
+ "rule-nested-empty-line-before": ["always", {"except": ["first-nested"], "ignore": ["after-comment"]}],
+ "rule-non-nested-empty-line-before": ["always", {"ignore": ["after-comment"]}],
+
+ "media-feature-colon-space-after": "always",
+ "media-feature-colon-space-before": "never",
+ "media-feature-name-case": "lower",
+ "media-feature-name-no-unknown": true,
+ "media-feature-name-no-vendor-prefix": true,
+ "media-feature-parentheses-space-inside": "never",
+ "media-feature-range-operator-space-after": "always",
+ "media-feature-range-operator-space-before": "always",
+
+ "media-query-list-comma-newline-after": "never-multi-line",
+ "media-query-list-comma-newline-before": "never-multi-line",
+ "media-query-list-comma-space-after": "always",
+ "media-query-list-comma-space-before": "never",
+
+ "at-rule-name-case": "lower",
+ "at-rule-no-unknown": true,
+ "at-rule-no-vendor-prefix": true,
+ "at-rule-semicolon-newline-after": "always",
+
+ "comment-no-empty": true,
+
+ "indentation": 2,
+ "max-empty-lines": 1,
+ "max-nesting-depth": 3,
+ "no-duplicate-selectors": true,
+ "no-empty-source": true,
+ "no-eol-whitespace": true,
+ "no-extra-semicolons": true,
+ "no-missing-end-of-source-newline": true,
+ "no-unsupported-browser-features": [
Thomas Greiner 2017/07/07 21:45:01 Note that the requirements for the extension UIs d
+ true,
+ {
+ "browsers": "last 2 versions, Safari 6, IE 8",
ire 2017/07/07 15:51:29 Shouldn't this be "last 2 versions, IE >= 9" ?
juliandoucette 2017/07/07 20:15:04 Perhaps. We haven't set this is stone yet.
+ "ignore": ["css-gencontent", "css-mediaqueries"]
ire 2017/07/07 15:51:28 What about feature queries?
juliandoucette 2017/07/07 20:15:04 I didn't know that they existed at the time I made
+ }
+ ]
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld