Skip to content

Commit

Permalink
Maintenance: Updated stylelint to version 14 and added prettier as a …
Browse files Browse the repository at this point in the history
…better preparation for future steps.
  • Loading branch information
Bola Ahmed Buari authored and dominikklein committed Oct 26, 2021
1 parent d61932d commit 5c33343
Show file tree
Hide file tree
Showing 14 changed files with 1,095 additions and 868 deletions.
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
29 changes: 23 additions & 6 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-scss"],
"extends": [
"stylelint-config-standard",
"stylelint-config-standard-scss",
"stylelint-prettier/recommended"
],
"rules": {
"at-rule-no-unknown": null,
"alpha-value-notation": null,
"block-no-empty": null,
"color-function-notation": "legacy",
"declaration-block-no-duplicate-properties": null,
"declaration-block-no-shorthand-property-overrides":null,
"declaration-block-no-redundant-longhand-properties": null,
"declaration-block-no-shorthand-property-overrides": null,
"declaration-block-single-line-max-declarations": null,
"font-family-no-missing-generic-family-keyword": null,
"function-calc-no-unspaced-operator":null,
"function-calc-no-unspaced-operator": null,
"function-comma-space-after": null,
"hue-degree-notation": null,
"keyframes-name-pattern": null,
"max-empty-lines": null,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"number-max-precision": null,
"selector-class-pattern": null,
"selector-list-comma-newline-after": null,
"selector-no-vendor-prefix": null,
"selector-pseudo-element-no-unknown": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/at-rule-no-unknown": null,
"property-no-unknown": [true, { "ignoreProperties": ["scroll-snap-mode"] }]
"scss/dollar-variable-pattern": null,
"scss/double-slash-comment-whitespace-inside": null,
"scss/no-global-function-names": null,
"value-no-vendor-prefix": null,
"property-no-unknown": [true, { "ignoreProperties": ["scroll-snap-mode"] }],
"property-no-vendor-prefix": null
},
"ignoreFiles": [
"public/assets/*.css",
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/custom/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
}

#chat .well-chat {
padding: 8px 15px 0 15px;
padding: 8px 15px 0;
margin: 0;
}
12 changes: 4 additions & 8 deletions app/assets/stylesheets/font.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@font-face {
font-family: 'Fira Sans';
src: url('fonts/FiraSans-Bold.eot');
src:
url('fonts/FiraSans-Bold.woff2') format('woff2'),
src: url('fonts/FiraSans-Bold.woff2') format('woff2'),
url('fonts/FiraSans-Bold.woff') format('woff'),
url('fonts/FiraSans-Bold.ttf') format('truetype');
font-weight: bold;
Expand All @@ -12,8 +11,7 @@
@font-face {
font-family: 'Fira Sans';
src: url('fonts/FiraSans-Regular.eot');
src:
url('fonts/FiraSans-Regular.woff2') format('woff2'),
src: url('fonts/FiraSans-Regular.woff2') format('woff2'),
url('fonts/FiraSans-Regular.woff') format('woff'),
url('fonts/FiraSans-Regular.ttf') format('truetype');
font-weight: normal;
Expand All @@ -23,8 +21,7 @@
@font-face {
font-family: 'Fira Sans';
src: url('fonts/FiraSans-Medium.eot');
src:
url('fonts/FiraSans-Medium.woff2') format('woff2'),
src: url('fonts/FiraSans-Medium.woff2') format('woff2'),
url('fonts/FiraSans-Medium.woff') format('woff'),
url('fonts/FiraSans-Medium.ttf') format('truetype');
font-weight: 500;
Expand All @@ -34,8 +31,7 @@
@font-face {
font-family: 'Fira Sans';
src: url('fonts/FiraSans-Light.eot');
src:
url('fonts/FiraSans-Light.woff2') format('woff2'),
src: url('fonts/FiraSans-Light.woff2') format('woff2'),
url('fonts/FiraSans-Light.woff') format('woff'),
url('fonts/FiraSans-Light.ttf') format('truetype');
font-weight: 300;
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/highlighter-github.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ github.com style (c) Vasily Polovnyov <[email protected]>
padding: 0.5em;
color: #333;
background: #f8f8f8;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}

.hljs-comment,
Expand Down
Loading

0 comments on commit 5c33343

Please sign in to comment.