mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* Bump stylelint from 13.13.1 to 14.2.0 Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.13.1 to 14.2.0. - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](https://github.com/stylelint/stylelint/compare/13.13.1...14.2.0) --- updated-dependencies: - dependency-name: stylelint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * upgrade to newest stylelint * fix style issues * fix color function rules to match old Angular * rollback modern color func Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
95 lines
3.0 KiB
JSON
95 lines
3.0 KiB
JSON
{
|
|
"extends": ["stylelint-config-standard-scss"],
|
|
"rules": {
|
|
"indentation": 4,
|
|
"color-function-notation": "legacy",
|
|
"alpha-value-notation": "number",
|
|
"color-hex-case": "lower",
|
|
"color-no-invalid-hex": true,
|
|
"function-calc-no-unspaced-operator": true,
|
|
"function-comma-space-after": "always-single-line",
|
|
"function-comma-space-before": "never",
|
|
"function-name-case": "lower",
|
|
"function-url-quotes": "always",
|
|
"function-url-scheme-disallowed-list": [
|
|
"data"
|
|
],
|
|
"function-whitespace-after": "always",
|
|
"number-leading-zero": "always",
|
|
"number-no-trailing-zeros": true,
|
|
"length-zero-no-unit": true,
|
|
"string-no-newline": true,
|
|
"string-quotes": "single",
|
|
"unit-case": "lower",
|
|
"unit-no-unknown": true,
|
|
"unit-allowed-list": [
|
|
"px",
|
|
"%",
|
|
"deg",
|
|
"ms",
|
|
"em",
|
|
"vh",
|
|
"vw",
|
|
"vmin",
|
|
"s"
|
|
],
|
|
"value-list-comma-space-after": "always-single-line",
|
|
"value-list-comma-space-before": "never",
|
|
"shorthand-property-no-redundant-values": true,
|
|
"property-case": "lower",
|
|
"no-duplicate-at-import-rules": true,
|
|
"declaration-block-no-duplicate-properties": [
|
|
true,
|
|
{
|
|
"ignore": [
|
|
"consecutive-duplicates-with-different-values"
|
|
]
|
|
}
|
|
],
|
|
"declaration-block-trailing-semicolon": "always",
|
|
"declaration-block-single-line-max-declarations": 1,
|
|
"declaration-block-semicolon-space-before": "never",
|
|
"declaration-block-semicolon-space-after": "always-single-line",
|
|
"declaration-block-semicolon-newline-before": "never-multi-line",
|
|
"declaration-block-semicolon-newline-after": "always-multi-line",
|
|
"declaration-property-value-disallowed-list": [
|
|
{
|
|
"/.*/": [
|
|
"initial"
|
|
]
|
|
},
|
|
{
|
|
"message": "The `initial` value is not supported in IE."
|
|
}
|
|
],
|
|
"block-closing-brace-newline-after": "always",
|
|
"block-closing-brace-newline-before": "always-multi-line",
|
|
"block-opening-brace-newline-after": "always-multi-line",
|
|
"block-opening-brace-space-before": "always-multi-line",
|
|
"selector-attribute-brackets-space-inside": "never",
|
|
"selector-attribute-operator-space-after": "never",
|
|
"selector-attribute-operator-space-before": "never",
|
|
"selector-combinator-space-after": "always",
|
|
"selector-combinator-space-before": "always",
|
|
"selector-pseudo-class-case": "lower",
|
|
"selector-pseudo-class-parentheses-space-inside": "never",
|
|
"selector-pseudo-element-case": "lower",
|
|
"selector-pseudo-element-colon-notation": "double",
|
|
"selector-pseudo-element-no-unknown": [true, {
|
|
"ignorePseudoElements": ["ng-deep"]
|
|
}],
|
|
"selector-type-case": "lower",
|
|
"selector-max-id": 0,
|
|
"no-missing-end-of-source-newline": true,
|
|
"no-eol-whitespace": true,
|
|
"max-line-length": 240,
|
|
"linebreaks": "unix",
|
|
"selector-class-pattern": [
|
|
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page)",
|
|
{
|
|
"resolveNestedSelectors": true
|
|
}
|
|
]
|
|
}
|
|
}
|