diff --git a/.stylelintrc.cjs b/.stylelintrc.cjs index b353fc0..ea733a9 100644 --- a/.stylelintrc.cjs +++ b/.stylelintrc.cjs @@ -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'], + }], + }, }; diff --git a/CHANGELOG.md b/CHANGELOG.md index 10f5bc3..1b09024 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/popup.js b/src/popup.js index 4dac619..5932d43 100644 --- a/src/popup.js +++ b/src/popup.js @@ -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); diff --git a/types.d.ts b/types.d.ts index f0c5d41..abda762 100644 --- a/types.d.ts +++ b/types.d.ts @@ -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; };