a3e78491b9
After migrating to eslint some errors were disabled to make it easier to migrate. This enables all the lint rules and treats all warnings as a build failure. Similarly, CI won't automatically try to fix mistakes. Change-Id: I6d5ef39d476a38dd9a6ab98e3fb94da4c3ab2e57
46 lines
1.7 KiB
JavaScript
46 lines
1.7 KiB
JavaScript
// Copyright (C) 2021 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
module.exports = {
|
|
"env": {
|
|
"es2020": true,
|
|
"node": true,
|
|
"jest": true
|
|
},
|
|
"plugins": [
|
|
"stylelint-scss"
|
|
],
|
|
"extends": "stylelint-config-standard",
|
|
"ignoreFiles": ["dist/**"],
|
|
"rules": {
|
|
"indentation": 4,
|
|
"string-quotes": "single",
|
|
"no-duplicate-selectors": true,
|
|
"selector-max-attribute": 1,
|
|
"selector-combinator-space-after": "always",
|
|
"selector-attribute-operator-space-before": "never",
|
|
"selector-attribute-operator-space-after": "never",
|
|
"selector-attribute-brackets-space-inside": "never",
|
|
"declaration-block-trailing-semicolon": "always",
|
|
"declaration-colon-space-before": "never",
|
|
"declaration-colon-space-after": "always",
|
|
"number-leading-zero": "always",
|
|
"function-url-quotes": "always",
|
|
"font-family-name-quotes": "always-unless-keyword",
|
|
"comment-whitespace-inside": "always",
|
|
"comment-empty-line-before": "always",
|
|
"rule-empty-line-before": "always-multi-line",
|
|
"selector-pseudo-element-colon-notation": "single",
|
|
"selector-pseudo-class-parentheses-space-inside": "never",
|
|
"selector-max-type": 3,
|
|
"font-family-no-missing-generic-family-keyword": true,
|
|
"at-rule-no-unknown": null,
|
|
"scss/at-rule-no-unknown": true,
|
|
"media-feature-range-operator-space-before": "always",
|
|
"media-feature-range-operator-space-after": "always",
|
|
"media-feature-parentheses-space-inside": "never",
|
|
"media-feature-colon-space-before": "never",
|
|
"media-feature-colon-space-after": "always"
|
|
}
|
|
}
|