loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add `stylelint-stylistic` (#25285)

Add
[stylelint-stylistic](https://github.com/elirasza/stylelint-stylistic),
autofix all issues with two manual tweaks. This restores all the
stylistic rules removed in Stylelint 15.

authored by

silverwind and committed by
GitHub
3ee89704 69b1e2f1

+108 -27
+77
.stylelintrc.yaml
··· 1 1 plugins: 2 2 - stylelint-declaration-strict-value 3 + - stylelint-stylistic 3 4 4 5 ignoreFiles: 5 6 - "**/*.go" ··· 132 133 selector-type-no-unknown: [true, {ignore: [custom-elements]}] 133 134 shorthand-property-no-redundant-values: true 134 135 string-no-newline: true 136 + stylistic/at-rule-name-case: null 137 + stylistic/at-rule-name-newline-after: null 138 + stylistic/at-rule-name-space-after: null 139 + stylistic/at-rule-semicolon-newline-after: null 140 + stylistic/at-rule-semicolon-space-before: null 141 + stylistic/block-closing-brace-empty-line-before: null 142 + stylistic/block-closing-brace-newline-after: null 143 + stylistic/block-closing-brace-newline-before: null 144 + stylistic/block-closing-brace-space-after: null 145 + stylistic/block-closing-brace-space-before: null 146 + stylistic/block-opening-brace-newline-after: null 147 + stylistic/block-opening-brace-newline-before: null 148 + stylistic/block-opening-brace-space-after: null 149 + stylistic/block-opening-brace-space-before: null 150 + stylistic/color-hex-case: lower 151 + stylistic/declaration-bang-space-after: never 152 + stylistic/declaration-bang-space-before: null 153 + stylistic/declaration-block-semicolon-newline-after: null 154 + stylistic/declaration-block-semicolon-newline-before: null 155 + stylistic/declaration-block-semicolon-space-after: null 156 + stylistic/declaration-block-semicolon-space-before: never 157 + stylistic/declaration-block-trailing-semicolon: null 158 + stylistic/declaration-colon-newline-after: null 159 + stylistic/declaration-colon-space-after: null 160 + stylistic/declaration-colon-space-before: never 161 + stylistic/function-comma-newline-after: null 162 + stylistic/function-comma-newline-before: null 163 + stylistic/function-comma-space-after: null 164 + stylistic/function-comma-space-before: null 165 + stylistic/function-max-empty-lines: 0 166 + stylistic/function-parentheses-newline-inside: never-multi-line 167 + stylistic/function-parentheses-space-inside: null 168 + stylistic/function-whitespace-after: null 169 + stylistic/indentation: 2 170 + stylistic/linebreaks: null 171 + stylistic/max-empty-lines: 1 172 + stylistic/max-line-length: null 173 + stylistic/media-feature-colon-space-after: null 174 + stylistic/media-feature-colon-space-before: never 175 + stylistic/media-feature-name-case: null 176 + stylistic/media-feature-parentheses-space-inside: null 177 + stylistic/media-feature-range-operator-space-after: always 178 + stylistic/media-feature-range-operator-space-before: always 179 + stylistic/media-query-list-comma-newline-after: null 180 + stylistic/media-query-list-comma-newline-before: null 181 + stylistic/media-query-list-comma-space-after: null 182 + stylistic/media-query-list-comma-space-before: null 183 + stylistic/no-empty-first-line: null 184 + stylistic/no-eol-whitespace: true 185 + stylistic/no-extra-semicolons: true 186 + stylistic/no-missing-end-of-source-newline: null 187 + stylistic/number-leading-zero: null 188 + stylistic/number-no-trailing-zeros: null 189 + stylistic/property-case: lower 190 + stylistic/selector-attribute-brackets-space-inside: null 191 + stylistic/selector-attribute-operator-space-after: null 192 + stylistic/selector-attribute-operator-space-before: null 193 + stylistic/selector-combinator-space-after: null 194 + stylistic/selector-combinator-space-before: null 195 + stylistic/selector-descendant-combinator-no-non-space: null 196 + stylistic/selector-list-comma-newline-after: null 197 + stylistic/selector-list-comma-newline-before: null 198 + stylistic/selector-list-comma-space-after: always-single-line 199 + stylistic/selector-list-comma-space-before: never-single-line 200 + stylistic/selector-max-empty-lines: 0 201 + stylistic/selector-pseudo-class-case: lower 202 + stylistic/selector-pseudo-class-parentheses-space-inside: never 203 + stylistic/selector-pseudo-element-case: lower 204 + stylistic/string-quotes: double 205 + stylistic/unicode-bom: null 206 + stylistic/unit-case: lower 207 + stylistic/value-list-comma-newline-after: null 208 + stylistic/value-list-comma-newline-before: null 209 + stylistic/value-list-comma-space-after: null 210 + stylistic/value-list-comma-space-before: null 211 + stylistic/value-list-max-empty-lines: 0 135 212 time-min-milliseconds: null 136 213 unit-allowed-list: null 137 214 unit-disallowed-list: null
+16
package-lock.json
··· 76 76 "postcss-html": "1.5.0", 77 77 "stylelint": "15.7.0", 78 78 "stylelint-declaration-strict-value": "1.9.2", 79 + "stylelint-stylistic": "0.4.2", 79 80 "svgo": "3.0.2", 80 81 "updates": "14.1.1", 81 82 "vitest": "0.32.0" ··· 9787 9788 }, 9788 9789 "peerDependencies": { 9789 9790 "stylelint": ">=7 <=15" 9791 + } 9792 + }, 9793 + "node_modules/stylelint-stylistic": { 9794 + "version": "0.4.2", 9795 + "resolved": "https://registry.npmjs.org/stylelint-stylistic/-/stylelint-stylistic-0.4.2.tgz", 9796 + "integrity": "sha512-WF/fLvotTklG8LZ+fO0nxhu5swVENHhSat2l5ckrmtXpij1P9ybYa56XivOg/E02CH+Ygui5pd2hQrlli3NCDQ==", 9797 + "dev": true, 9798 + "dependencies": { 9799 + "postcss": "^8.4.21", 9800 + "postcss-media-query-parser": "^0.2.3", 9801 + "postcss-value-parser": "^4.2.0", 9802 + "style-search": "^0.1.0" 9803 + }, 9804 + "peerDependencies": { 9805 + "stylelint": "^15.0.0" 9790 9806 } 9791 9807 }, 9792 9808 "node_modules/stylelint/node_modules/balanced-match": {
+1
package.json
··· 76 76 "postcss-html": "1.5.0", 77 77 "stylelint": "15.7.0", 78 78 "stylelint-declaration-strict-value": "1.9.2", 79 + "stylelint-stylistic": "0.4.2", 79 80 "svgo": "3.0.2", 80 81 "updates": "14.1.1", 81 82 "vitest": "0.32.0"
+1 -2
web_src/css/base.css
··· 1573 1573 position: absolute; 1574 1574 display: block; 1575 1575 background: linear-gradient(to right, var(--color-header-wrapper-transparent), var(--color-header-wrapper) 100%); 1576 - content: ''; 1576 + content: ""; 1577 1577 right: 0; 1578 1578 height: 39px; 1579 1579 width: 60px; ··· 2167 2167 .minicolors-panel { 2168 2168 background: var(--color-secondary-dark-1) !important; 2169 2169 } 2170 - 2171 2170 2172 2171 /* https://github.com/go-gitea/gitea/pull/11486 */ 2173 2172 .ui.sub.header {
+1 -5
web_src/css/features/imagediff.css
··· 50 50 overflow: hidden; 51 51 } 52 52 53 - .image-diff-container 54 - .diff-swipe 55 - .swipe-frame 56 - .swipe-container 57 - .after-container { 53 + .image-diff-container .diff-swipe .swipe-frame .swipe-container .after-container { 58 54 position: absolute; 59 55 right: 0; 60 56 }
-1
web_src/css/helpers.css
··· 40 40 text-overflow: ellipsis !important; 41 41 } 42 42 43 - 44 43 .g-table-auto-ellipsis td.auto-ellipsis { 45 44 position: relative; 46 45 }
-1
web_src/css/modules/button.css
··· 95 95 background: var(--color-hover); 96 96 } 97 97 98 - 99 98 .ui.basic.buttons .button:active, 100 99 .ui.basic.button:active, 101 100 .ui.basic.buttons .active.button,
+4 -4
web_src/css/modules/normalize.css
··· 144 144 */ 145 145 146 146 button, 147 - [type='button'], 148 - [type='reset'], 149 - [type='submit'] { 147 + [type="button"], 148 + [type="reset"], 149 + [type="submit"] { 150 150 -webkit-appearance: button; 151 151 } 152 152 ··· 206 206 2. Correct the outline style in Safari. 207 207 */ 208 208 209 - [type='search'] { 209 + [type="search"] { 210 210 -webkit-appearance: textfield; /* 1 */ 211 211 outline-offset: -2px; /* 2 */ 212 212 }
+1 -1
web_src/css/modules/select.css
··· 13 13 top: 12px; 14 14 right: 8px; 15 15 pointer-events: none; 16 - content: ''; 16 + content: ""; 17 17 width: 14px; 18 18 height: 14px; 19 19 mask-size: cover;
+3 -5
web_src/css/repo.css
··· 1844 1844 border: none; 1845 1845 } 1846 1846 1847 - 1848 1847 @media (max-width: 991.98px) { 1849 1848 .diff-file-box { 1850 1849 scroll-margin-top: 77px; /* match .repository .diff-detail-box */ ··· 1854 1853 /* TODO: this can potentially be made "global" by removing the class prefix */ 1855 1854 .diff-file-box .ui.attached.header, 1856 1855 .diff-file-box .ui.attached.table { 1857 - margin: 0; /* remove fomantic negative margins */; 1858 - width: initial; /* remove fomantic over 100% width */; 1859 - max-width: initial; /* remove fomantic over 100% width */; 1856 + margin: 0; /* remove fomantic negative margins */ 1857 + width: initial; /* remove fomantic over 100% width */ 1858 + max-width: initial; /* remove fomantic over 100% width */ 1860 1859 } 1861 1860 1862 1861 .repository .diff-stats { ··· 1907 1906 line-height: 1.4; 1908 1907 flex: 1 1909 1908 } 1910 - 1911 1909 1912 1910 .repository.packages .empty { 1913 1911 padding-top: 70px;
+1 -5
web_src/css/review.css
··· 95 95 .comment-code-cloud .comments .comment { 96 96 display: flex; 97 97 } 98 - .comment-code-cloud 99 - .comments 100 - .comment 101 - .comment-header-right.actions 102 - .ui.basic.label { 98 + .comment-code-cloud .comments .comment .comment-header-right.actions .ui.basic.label { 103 99 display: none; 104 100 } 105 101 .comment-code-cloud .comments .comment .avatar {
+1 -1
web_src/css/shared/settings.css
··· 21 21 22 22 details.toggleable-item summary::after { 23 23 transition: transform 0.25s ease; 24 - content: ''; 24 + content: ""; 25 25 width: 14px; 26 26 height: 14px; 27 27 mask-size: cover;
+2 -2
web_src/css/standalone/swagger.css
··· 34 34 background: #1e1e1e; 35 35 } 36 36 .swagger-ui, .swagger-back-link { 37 - filter: invert(88%) hue-rotate(180deg); 37 + filter: invert(88%) hue-rotate(180deg); 38 38 } 39 39 .swagger-ui .microlight { 40 - filter: invert(100%) hue-rotate(180deg); 40 + filter: invert(100%) hue-rotate(180deg); 41 41 } 42 42 }