grafana/stylelint.config.js
Jack Westbrook 6e2237c02f
Chore: Replace Sass-lint with Stylelint (#40617)
* chore(sass): introduce stylelint

* chore(sass): introduce stylelint config that closely matches sass-lint config

* chore: remove sass-lint from codebase

* style(theme): disable stylelint string-quotes rule

* chore(sass): introduce stylelint-prettier-config to prevent config conflicts

* chore: delete sass-lint file

* style(sass): fix remaining stylelint errors
2021-10-20 11:34:24 +02:00

46 lines
1.5 KiB
JavaScript

module.exports = {
extends: ['stylelint-config-sass-guidelines', 'stylelint-config-prettier'],
ignoreFiles: ['**/node_modules/**/*.scss'],
rules: {
'at-rule-no-vendor-prefix': null,
'color-hex-case': null,
'color-hex-length': null,
'color-named': null,
'declaration-block-no-duplicate-properties': [
true,
{
ignore: 'consecutive-duplicates-with-different-values',
ignoreProperties: ['font-size', 'word-break'],
},
],
// Disable equivalent "borderZero" sass-lint rule
'declaration-property-value-disallowed-list': {
border: [0],
'border-top': [0],
'border-right': [0],
'border-bottom': [0],
'border-left': [0],
},
'function-comma-space-after': null,
'function-url-quotes': null,
'length-zero-no-unit': null,
'max-nesting-depth': null,
'number-no-trailing-zeros': null,
'order/order': null,
'order/properties-alphabetical-order': null,
'property-no-vendor-prefix': null,
'rule-empty-line-before': null,
'scss/at-function-pattern': null,
'scss/at-mixin-pattern': null,
'scss/dollar-variable-pattern': null,
'scss/at-extend-no-missing-placeholder': null,
'selector-class-pattern': null,
'selector-max-compound-selectors': null,
'selector-max-id': null,
'selector-no-qualifying-type': null,
'selector-pseudo-element-colon-notation': null,
'shorthand-property-no-redundant-values': null,
'value-no-vendor-prefix': null,
},
};