2022-11-23 08:22:27 +08:00
|
|
|
plugins:
|
|
|
|
- stylelint-declaration-strict-value
|
2023-06-18 12:22:09 +08:00
|
|
|
- stylelint-declaration-block-no-ignored-properties
|
2024-02-02 17:36:32 +08:00
|
|
|
- "@stylistic/stylelint-plugin"
|
2022-11-23 08:22:27 +08:00
|
|
|
|
2023-03-10 11:16:16 +08:00
|
|
|
ignoreFiles:
|
|
|
|
- "**/*.go"
|
|
|
|
|
2021-11-11 09:52:16 +08:00
|
|
|
overrides:
|
2023-05-24 09:48:51 +08:00
|
|
|
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console.css", "font_i18n.css"]
|
2022-11-23 08:22:27 +08:00
|
|
|
rules:
|
|
|
|
scale-unlimited/declaration-strict-value: null
|
2023-03-10 11:16:16 +08:00
|
|
|
- files: ["**/chroma/*", "**/codemirror/*"]
|
|
|
|
rules:
|
|
|
|
block-no-empty: null
|
2023-05-23 21:54:21 +08:00
|
|
|
- files: ["**/*.vue"]
|
|
|
|
customSyntax: postcss-html
|
2021-11-11 09:52:16 +08:00
|
|
|
|
2019-06-27 14:36:37 +08:00
|
|
|
rules:
|
2024-02-02 17:36:32 +08:00
|
|
|
"@stylistic/at-rule-name-case": null
|
|
|
|
"@stylistic/at-rule-name-newline-after": null
|
|
|
|
"@stylistic/at-rule-name-space-after": null
|
|
|
|
"@stylistic/at-rule-semicolon-newline-after": null
|
|
|
|
"@stylistic/at-rule-semicolon-space-before": null
|
|
|
|
"@stylistic/block-closing-brace-empty-line-before": null
|
|
|
|
"@stylistic/block-closing-brace-newline-after": null
|
|
|
|
"@stylistic/block-closing-brace-newline-before": null
|
|
|
|
"@stylistic/block-closing-brace-space-after": null
|
|
|
|
"@stylistic/block-closing-brace-space-before": null
|
|
|
|
"@stylistic/block-opening-brace-newline-after": null
|
|
|
|
"@stylistic/block-opening-brace-newline-before": null
|
|
|
|
"@stylistic/block-opening-brace-space-after": null
|
|
|
|
"@stylistic/block-opening-brace-space-before": null
|
|
|
|
"@stylistic/color-hex-case": lower
|
|
|
|
"@stylistic/declaration-bang-space-after": never
|
|
|
|
"@stylistic/declaration-bang-space-before": null
|
|
|
|
"@stylistic/declaration-block-semicolon-newline-after": null
|
|
|
|
"@stylistic/declaration-block-semicolon-newline-before": null
|
|
|
|
"@stylistic/declaration-block-semicolon-space-after": null
|
|
|
|
"@stylistic/declaration-block-semicolon-space-before": never
|
|
|
|
"@stylistic/declaration-block-trailing-semicolon": null
|
|
|
|
"@stylistic/declaration-colon-newline-after": null
|
|
|
|
"@stylistic/declaration-colon-space-after": null
|
|
|
|
"@stylistic/declaration-colon-space-before": never
|
|
|
|
"@stylistic/function-comma-newline-after": null
|
|
|
|
"@stylistic/function-comma-newline-before": null
|
|
|
|
"@stylistic/function-comma-space-after": null
|
|
|
|
"@stylistic/function-comma-space-before": null
|
|
|
|
"@stylistic/function-max-empty-lines": 0
|
|
|
|
"@stylistic/function-parentheses-newline-inside": never-multi-line
|
|
|
|
"@stylistic/function-parentheses-space-inside": null
|
|
|
|
"@stylistic/function-whitespace-after": null
|
|
|
|
"@stylistic/indentation": 2
|
|
|
|
"@stylistic/linebreaks": null
|
|
|
|
"@stylistic/max-empty-lines": 1
|
|
|
|
"@stylistic/max-line-length": null
|
|
|
|
"@stylistic/media-feature-colon-space-after": null
|
|
|
|
"@stylistic/media-feature-colon-space-before": never
|
|
|
|
"@stylistic/media-feature-name-case": null
|
|
|
|
"@stylistic/media-feature-parentheses-space-inside": null
|
|
|
|
"@stylistic/media-feature-range-operator-space-after": always
|
|
|
|
"@stylistic/media-feature-range-operator-space-before": always
|
|
|
|
"@stylistic/media-query-list-comma-newline-after": null
|
|
|
|
"@stylistic/media-query-list-comma-newline-before": null
|
|
|
|
"@stylistic/media-query-list-comma-space-after": null
|
|
|
|
"@stylistic/media-query-list-comma-space-before": null
|
2024-03-04 00:23:14 +08:00
|
|
|
"@stylistic/named-grid-areas-alignment": null
|
2024-02-02 17:36:32 +08:00
|
|
|
"@stylistic/no-empty-first-line": null
|
|
|
|
"@stylistic/no-eol-whitespace": true
|
|
|
|
"@stylistic/no-extra-semicolons": true
|
|
|
|
"@stylistic/no-missing-end-of-source-newline": null
|
|
|
|
"@stylistic/number-leading-zero": null
|
|
|
|
"@stylistic/number-no-trailing-zeros": null
|
|
|
|
"@stylistic/property-case": lower
|
|
|
|
"@stylistic/selector-attribute-brackets-space-inside": null
|
|
|
|
"@stylistic/selector-attribute-operator-space-after": null
|
|
|
|
"@stylistic/selector-attribute-operator-space-before": null
|
|
|
|
"@stylistic/selector-combinator-space-after": null
|
|
|
|
"@stylistic/selector-combinator-space-before": null
|
|
|
|
"@stylistic/selector-descendant-combinator-no-non-space": null
|
|
|
|
"@stylistic/selector-list-comma-newline-after": null
|
|
|
|
"@stylistic/selector-list-comma-newline-before": null
|
|
|
|
"@stylistic/selector-list-comma-space-after": always-single-line
|
|
|
|
"@stylistic/selector-list-comma-space-before": never-single-line
|
|
|
|
"@stylistic/selector-max-empty-lines": 0
|
|
|
|
"@stylistic/selector-pseudo-class-case": lower
|
|
|
|
"@stylistic/selector-pseudo-class-parentheses-space-inside": never
|
|
|
|
"@stylistic/selector-pseudo-element-case": lower
|
|
|
|
"@stylistic/string-quotes": double
|
|
|
|
"@stylistic/unicode-bom": null
|
|
|
|
"@stylistic/unit-case": lower
|
|
|
|
"@stylistic/value-list-comma-newline-after": null
|
|
|
|
"@stylistic/value-list-comma-newline-before": null
|
|
|
|
"@stylistic/value-list-comma-space-after": null
|
|
|
|
"@stylistic/value-list-comma-space-before": null
|
|
|
|
"@stylistic/value-list-max-empty-lines": 0
|
2021-11-11 09:52:16 +08:00
|
|
|
alpha-value-notation: null
|
2023-02-21 23:23:45 +08:00
|
|
|
annotation-no-unknown: true
|
|
|
|
at-rule-allowed-list: null
|
|
|
|
at-rule-disallowed-list: null
|
2020-02-08 01:09:30 +08:00
|
|
|
at-rule-empty-line-before: null
|
Add tailwindcss (#29357)
This will get tailwindcss working on a basic level. It provides only the
utility classes, e.g. no tailwind base which we don't need because we
have our own CSS reset. Without the base, we also do not have their CSS
variables so a small amount of features do not work and I removed the
generated classes for them.
***Note for future developers: This currently uses a `tw-` prefix, so we
use it like `tw-p-3`.***
<details>
<summary>Currently added CSS, all false-positives</summary>
```
.\!visible{
visibility: visible !important
}
.visible{
visibility: visible
}
.invisible{
visibility: hidden
}
.collapse{
visibility: collapse
}
.static{
position: static
}
.\!fixed{
position: fixed !important
}
.absolute{
position: absolute
}
.relative{
position: relative
}
.sticky{
position: sticky
}
.left-10{
left: 2.5rem
}
.isolate{
isolation: isolate
}
.float-right{
float: right
}
.float-left{
float: left
}
.mr-2{
margin-right: 0.5rem
}
.mr-3{
margin-right: 0.75rem
}
.\!block{
display: block !important
}
.block{
display: block
}
.inline-block{
display: inline-block
}
.inline{
display: inline
}
.flex{
display: flex
}
.inline-flex{
display: inline-flex
}
.\!table{
display: table !important
}
.inline-table{
display: inline-table
}
.table-caption{
display: table-caption
}
.table-cell{
display: table-cell
}
.table-column{
display: table-column
}
.table-column-group{
display: table-column-group
}
.table-footer-group{
display: table-footer-group
}
.table-header-group{
display: table-header-group
}
.table-row-group{
display: table-row-group
}
.table-row{
display: table-row
}
.flow-root{
display: flow-root
}
.inline-grid{
display: inline-grid
}
.contents{
display: contents
}
.list-item{
display: list-item
}
.\!hidden{
display: none !important
}
.hidden{
display: none
}
.flex-shrink{
flex-shrink: 1
}
.shrink{
flex-shrink: 1
}
.flex-grow{
flex-grow: 1
}
.grow{
flex-grow: 1
}
.border-collapse{
border-collapse: collapse
}
.select-all{
user-select: all
}
.resize{
resize: both
}
.flex-wrap{
flex-wrap: wrap
}
.overflow-visible{
overflow: visible
}
.rounded{
border-radius: 0.25rem
}
.border{
border-width: 1px
}
.text-justify{
text-align: justify
}
.uppercase{
text-transform: uppercase
}
.lowercase{
text-transform: lowercase
}
.capitalize{
text-transform: capitalize
}
.italic{
font-style: italic
}
.text-red{
color: var(--color-red)
}
.text-shadow{
color: var(--color-shadow)
}
.underline{
text-decoration-line: underline
}
.overline{
text-decoration-line: overline
}
.line-through{
text-decoration-line: line-through
}
.outline{
outline-style: solid
}
.ease-in{
transition-timing-function: cubic-bezier(0.4, 0, 1, 1)
}
.ease-in-out{
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
}
.ease-out{
transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
}
```
</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io>
2024-02-26 00:46:46 +08:00
|
|
|
at-rule-no-unknown: [true, {ignoreAtRules: [tailwind]}]
|
2023-02-21 23:23:45 +08:00
|
|
|
at-rule-no-vendor-prefix: true
|
|
|
|
at-rule-property-required-list: null
|
|
|
|
block-no-empty: true
|
2021-11-11 09:52:16 +08:00
|
|
|
color-function-notation: null
|
2023-02-21 23:23:45 +08:00
|
|
|
color-hex-alpha: null
|
2019-06-27 14:36:37 +08:00
|
|
|
color-hex-length: null
|
2023-02-21 23:23:45 +08:00
|
|
|
color-named: null
|
|
|
|
color-no-hex: null
|
|
|
|
color-no-invalid-hex: true
|
2019-06-27 14:36:37 +08:00
|
|
|
comment-empty-line-before: null
|
2023-02-21 23:23:45 +08:00
|
|
|
comment-no-empty: true
|
|
|
|
comment-pattern: null
|
|
|
|
comment-whitespace-inside: null
|
|
|
|
comment-word-disallowed-list: null
|
|
|
|
custom-media-pattern: null
|
|
|
|
custom-property-empty-line-before: null
|
|
|
|
custom-property-no-missing-var-function: true
|
|
|
|
custom-property-pattern: null
|
|
|
|
declaration-block-no-duplicate-custom-properties: true
|
|
|
|
declaration-block-no-duplicate-properties: [true, {ignore: [consecutive-duplicates-with-different-values]}]
|
2021-11-11 09:52:16 +08:00
|
|
|
declaration-block-no-redundant-longhand-properties: null
|
2023-02-21 23:23:45 +08:00
|
|
|
declaration-block-no-shorthand-property-overrides: null
|
2020-09-09 01:17:56 +08:00
|
|
|
declaration-block-single-line-max-declarations: null
|
2019-06-27 14:36:37 +08:00
|
|
|
declaration-empty-line-before: null
|
2023-02-21 23:23:45 +08:00
|
|
|
declaration-no-important: null
|
|
|
|
declaration-property-max-values: null
|
|
|
|
declaration-property-unit-allowed-list: null
|
2023-06-28 03:44:17 +08:00
|
|
|
declaration-property-unit-disallowed-list: {line-height: [em]}
|
2023-02-21 23:23:45 +08:00
|
|
|
declaration-property-value-allowed-list: null
|
|
|
|
declaration-property-value-disallowed-list: null
|
|
|
|
declaration-property-value-no-unknown: true
|
|
|
|
font-family-name-quotes: always-where-recommended
|
|
|
|
font-family-no-duplicate-names: true
|
|
|
|
font-family-no-missing-generic-family-keyword: true
|
|
|
|
font-weight-notation: null
|
|
|
|
function-allowed-list: null
|
|
|
|
function-calc-no-unspaced-operator: true
|
|
|
|
function-disallowed-list: null
|
|
|
|
function-linear-gradient-no-nonstandard-direction: true
|
|
|
|
function-name-case: lower
|
2022-02-26 04:08:35 +08:00
|
|
|
function-no-unknown: null
|
2023-02-21 23:23:45 +08:00
|
|
|
function-url-no-scheme-relative: null
|
|
|
|
function-url-quotes: always
|
|
|
|
function-url-scheme-allowed-list: null
|
|
|
|
function-url-scheme-disallowed-list: null
|
2021-11-11 09:52:16 +08:00
|
|
|
hue-degree-notation: null
|
2022-10-28 21:40:50 +08:00
|
|
|
import-notation: string
|
2023-02-21 23:23:45 +08:00
|
|
|
keyframe-block-no-duplicate-selectors: true
|
|
|
|
keyframe-declaration-no-important: true
|
|
|
|
keyframe-selector-notation: null
|
|
|
|
keyframes-name-pattern: null
|
2023-12-30 13:29:03 +08:00
|
|
|
length-zero-no-unit: [true, ignore: [custom-properties], ignoreFunctions: [var]]
|
2023-02-21 23:23:45 +08:00
|
|
|
max-nesting-depth: null
|
|
|
|
media-feature-name-allowed-list: null
|
|
|
|
media-feature-name-disallowed-list: null
|
|
|
|
media-feature-name-no-unknown: true
|
|
|
|
media-feature-name-no-vendor-prefix: true
|
|
|
|
media-feature-name-unit-allowed-list: null
|
|
|
|
media-feature-name-value-allowed-list: null
|
2023-06-18 16:38:47 +08:00
|
|
|
media-feature-name-value-no-unknown: true
|
2023-02-21 23:23:45 +08:00
|
|
|
media-feature-range-notation: null
|
2023-07-21 11:34:10 +08:00
|
|
|
media-query-no-invalid: true
|
2023-02-21 23:23:45 +08:00
|
|
|
named-grid-areas-no-invalid: true
|
2019-06-27 14:36:37 +08:00
|
|
|
no-descending-specificity: null
|
2023-02-21 23:23:45 +08:00
|
|
|
no-duplicate-at-import-rules: true
|
|
|
|
no-duplicate-selectors: true
|
|
|
|
no-empty-source: true
|
|
|
|
no-invalid-double-slash-comments: true
|
2021-11-11 09:52:16 +08:00
|
|
|
no-invalid-position-at-import-rule: null
|
2023-02-21 23:23:45 +08:00
|
|
|
no-irregular-whitespace: true
|
|
|
|
no-unknown-animations: null
|
2023-04-03 07:47:14 +08:00
|
|
|
no-unknown-custom-properties: null
|
2021-11-11 09:52:16 +08:00
|
|
|
number-max-precision: null
|
2023-06-18 12:22:09 +08:00
|
|
|
plugin/declaration-block-no-ignored-properties: true
|
2023-02-21 23:23:45 +08:00
|
|
|
property-allowed-list: null
|
|
|
|
property-disallowed-list: null
|
|
|
|
property-no-unknown: true
|
2021-11-11 09:52:16 +08:00
|
|
|
property-no-vendor-prefix: null
|
2019-06-27 14:36:37 +08:00
|
|
|
rule-empty-line-before: null
|
2023-02-21 23:23:45 +08:00
|
|
|
rule-selector-property-disallowed-list: null
|
2023-10-13 16:19:21 +08:00
|
|
|
scale-unlimited/declaration-strict-value: [[/color$/, font-weight], {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor|none)$/, ignoreFunctions: false, disableFix: true, expandShorthand: true}]
|
2023-02-21 23:23:45 +08:00
|
|
|
selector-attribute-name-disallowed-list: null
|
|
|
|
selector-attribute-operator-allowed-list: null
|
|
|
|
selector-attribute-operator-disallowed-list: null
|
|
|
|
selector-attribute-quotes: always
|
2021-11-11 09:52:16 +08:00
|
|
|
selector-class-pattern: null
|
2023-02-21 23:23:45 +08:00
|
|
|
selector-combinator-allowed-list: null
|
|
|
|
selector-combinator-disallowed-list: null
|
|
|
|
selector-disallowed-list: null
|
2021-11-11 09:52:16 +08:00
|
|
|
selector-id-pattern: null
|
2023-02-21 23:23:45 +08:00
|
|
|
selector-max-attribute: null
|
|
|
|
selector-max-class: null
|
|
|
|
selector-max-combinators: null
|
|
|
|
selector-max-compound-selectors: null
|
|
|
|
selector-max-id: null
|
|
|
|
selector-max-pseudo-class: null
|
|
|
|
selector-max-specificity: null
|
|
|
|
selector-max-type: null
|
|
|
|
selector-max-universal: null
|
|
|
|
selector-nested-pattern: null
|
|
|
|
selector-no-qualifying-type: null
|
|
|
|
selector-no-vendor-prefix: true
|
|
|
|
selector-not-notation: null
|
|
|
|
selector-pseudo-class-allowed-list: null
|
|
|
|
selector-pseudo-class-disallowed-list: null
|
|
|
|
selector-pseudo-class-no-unknown: true
|
|
|
|
selector-pseudo-element-allowed-list: null
|
2020-11-11 02:28:07 +08:00
|
|
|
selector-pseudo-element-colon-notation: double
|
2023-02-21 23:23:45 +08:00
|
|
|
selector-pseudo-element-disallowed-list: null
|
|
|
|
selector-pseudo-element-no-unknown: true
|
|
|
|
selector-type-case: lower
|
|
|
|
selector-type-no-unknown: [true, {ignore: [custom-elements]}]
|
2020-05-20 12:06:04 +08:00
|
|
|
shorthand-property-no-redundant-values: true
|
2023-02-21 23:23:45 +08:00
|
|
|
string-no-newline: true
|
|
|
|
time-min-milliseconds: null
|
|
|
|
unit-allowed-list: null
|
|
|
|
unit-disallowed-list: null
|
|
|
|
unit-no-unknown: true
|
|
|
|
value-keyword-case: null
|
|
|
|
value-no-vendor-prefix: [true, {ignoreValues: [box, inline-box]}]
|