style: add missing semicolon, fix codestyle in `.stylelintrc.cjs` and `types.d.ts`

This commit is contained in:
Thomas Rupprecht 2023-09-28 12:33:44 +02:00
parent 2e1fde4715
commit 460020f6cf
4 changed files with 32 additions and 24 deletions

View File

@ -1,26 +1,26 @@
module.exports = {
extends: ["stylelint-config-standard"],
plugins: ["stylelint-plugin-defensive-css", "stylelint-plugin-logical-css"],
extends: ['stylelint-config-standard'],
plugins: ['stylelint-plugin-defensive-css', 'stylelint-plugin-logical-css'],
rules: {
"custom-property-empty-line-before": null,
"color-hex-length": "long",
"plugin/use-defensive-css": [true, {
"accidental-hover": false,
"background-repeat": true,
"custom-property-fallbacks": false,
"flex-wrapping": false,
"scroll-chaining": false,
"vendor-prefix-grouping": true
'custom-property-empty-line-before': null,
'color-hex-length': 'long',
'plugin/use-defensive-css': [true, {
'accidental-hover': false,
'background-repeat': true,
'custom-property-fallbacks': false,
'flex-wrapping': false,
'scroll-chaining': false,
'vendor-prefix-grouping': true,
}],
"plugin/use-logical-properties-and-values": [true, {
"severity": "warning",
"disable-auto-fix": true,
"ignore": ["overflow-y", "overflow-x"]
'plugin/use-logical-properties-and-values': [true, {
'severity': 'warning',
'disable-auto-fix': true,
'ignore': ['overflow-y', 'overflow-x'],
}],
"plugin/use-logical-units": [true, {
"severity": "warning",
"disable-auto-fix": true,
"ignore": ["dvh", "dvw"]
}]
}
'plugin/use-logical-units': [true, {
'severity': 'warning',
'disable-auto-fix': true,
'ignore': ['dvh', 'dvw'],
}],
},
};

View File

@ -12,6 +12,14 @@ All notable changes to this project will be documented in this file.
- Improve init of popup script and simplify `setLinks`
### 🎨 Styling
- Add missing semicolon, fix codestyle in `.stylelintrc.cjs` and `types.d.ts`
### ⚙️ Miscellaneous Tasks
- Update `@types/firefox-webext-browser`, `eslint`, `eslint-plugin-jsdoc`
## \[[0.9.5](https://git.usrspace.at/XimeX/usrspace-browser-addon/releases/tag/v0.9.5)] - 2023-09-13
### 🐛 Bug Fixes

View File

@ -48,7 +48,7 @@ function setLinks() {
for (const quickLink of QUICK_LINKS) {
const template = getCleanTemplateById('template-link-item');
const linkElement = template.querySelector('.link')
const linkElement = template.querySelector('.link');
linkElement.dataset.url = quickLink.url;
linkElement.addEventListener('click', linkElementClickListener);

4
types.d.ts vendored
View File

@ -219,7 +219,7 @@ export interface SpaceApi {
*/
matrix?: string;
[k: string]: unknown;
}[]
}[],
];
/**
* URL of the IRC channel
@ -833,7 +833,7 @@ export interface SpaceApi {
*/
description?: string;
[k: string]: unknown;
}[]
}[],
];
[k: string]: unknown;
};