|
| 1 | +# |
| 2 | +# Configuration file for stylelint |
| 3 | +# Used before every commit to format the style of scss files |
| 4 | +# |
| 5 | +# Description for this rules can be found in their docs: |
| 6 | +# https://github.com/stylelint/stylelint/blob/master/docs/user-guide/rules.md |
| 7 | +# |
| 8 | + |
| 9 | +plugins: |
| 10 | + - stylelint-scss |
| 11 | + |
| 12 | +rules: |
| 13 | + color-no-invalid-hex: true |
| 14 | + block-no-empty: true |
| 15 | + font-family-no-duplicate-names: true |
| 16 | + function-calc-no-unspaced-operator: true |
| 17 | + function-linear-gradient-no-nonstandard-direction: true |
| 18 | + string-no-newline: true |
| 19 | + # Disallow unknown units. (Eg: 100pixel is invalid value) |
| 20 | + unit-no-unknown: true |
| 21 | + # No unknown property. (Eg: heiht is an unknown property) |
| 22 | + property-no-unknown: true |
| 23 | + # Ignored by browsers, so prevents confusion |
| 24 | + keyframe-declaration-no-important: true |
| 25 | + # Disallow duplicate properties within declaration blocks. |
| 26 | + declaration-block-no-duplicate-properties: true |
| 27 | + # Disallow shorthand properties that override related longhand properties. |
| 28 | + # Example: a { background-repeat: repeat; background: green; } |
| 29 | + declaration-block-no-shorthand-property-overrides: true |
| 30 | + comment-no-empty: true |
| 31 | + # Rules are specified in the spec, this rule disallow any unknown property |
| 32 | + # Eample: @unknown (max-width: 960px) {} |
| 33 | + # Needs to be disabled because cannot work together with SCSS functions |
| 34 | + # at-rule-no-unknown: true |
| 35 | + no-extra-semicolons: true |
| 36 | + no-invalid-double-slash-comments: true |
| 37 | + shorthand-property-no-redundant-values: true |
| 38 | + value-no-vendor-prefix: true |
| 39 | + # We don't allow !important rules |
| 40 | + declaration-no-important: true |
| 41 | + # Numbers below zero allowed only without leading zero. (Eg: .5) |
| 42 | + number-leading-zero: never |
| 43 | + number-no-trailing-zeros: true |
| 44 | + string-quotes: single |
| 45 | + length-zero-no-unit: true |
| 46 | + unit-case: lower |
| 47 | + value-keyword-case: lower |
| 48 | + block-closing-brace-newline-after: always |
| 49 | + indentation: 2 |
| 50 | + no-eol-whitespace: true |
| 51 | + |
| 52 | + # scss/max-nesting-depth: 4 |
| 53 | + # scss/dollar-variable-colon-space-after: always |
0 commit comments