Compare commits

...

2 Commits

6 changed files with 57 additions and 49 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

46
package-lock.json generated
View File

@ -26,9 +26,9 @@
"husky": "^8.0.3",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^34.0.0",
"stylelint-plugin-defensive-css": "^0.8.1",
"stylelint-plugin-defensive-css": "^0.9.1",
"stylelint-plugin-logical-css": "^0.13.2",
"web-ext": "^7.7.0"
"web-ext": "^7.8.0"
}
},
"node_modules/@aashutoshrathi/word-wrap": {
@ -664,9 +664,9 @@
}
},
"node_modules/@eslint-community/regexpp": {
"version": "4.8.1",
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.8.1.tgz",
"integrity": "sha512-PWiOzLIUAjN/w5K17PoF4n6sKBw0gqLHPhywmYHP4t1VFQQVYeb1yWsJwnMVEMl3tUHME7X/SJPZLmtG7XBDxQ==",
"version": "4.9.0",
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.0.tgz",
"integrity": "sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ==",
"dev": true,
"engines": {
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
@ -1049,9 +1049,9 @@
"dev": true
},
"node_modules/@types/minimist": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz",
"integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==",
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.3.tgz",
"integrity": "sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==",
"dev": true
},
"node_modules/@types/node": {
@ -4986,9 +4986,9 @@
"dev": true
},
"node_modules/jackspeak": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.3.tgz",
"integrity": "sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==",
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz",
"integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
"dev": true,
"dependencies": {
"@isaacs/cliui": "^8.0.2"
@ -7354,9 +7354,9 @@
"dev": true
},
"node_modules/sax": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz",
"integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==",
"dev": true
},
"node_modules/semver": {
@ -7492,9 +7492,9 @@
}
},
"node_modules/sonic-boom": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.3.0.tgz",
"integrity": "sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g==",
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.4.0.tgz",
"integrity": "sha512-zSe9QQW30nPzjkSJ0glFQO5T9lHsk39tz+2bAAwCj8CNgEG8ItZiX7Wb2ZgA8I04dwRGCcf1m3ABJa8AYm12Fw==",
"dev": true,
"dependencies": {
"atomic-sleep": "^1.0.0"
@ -7862,9 +7862,9 @@
}
},
"node_modules/stylelint-plugin-defensive-css": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/stylelint-plugin-defensive-css/-/stylelint-plugin-defensive-css-0.8.1.tgz",
"integrity": "sha512-M/OjNz4Jc+V1VhU/iYa3l1f8nUawnnNxbf9/SR6VkWuLVdZWn7ONmSBGc7Kv0QIXRGbE0pLz1BzecsNy/LjOrQ==",
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/stylelint-plugin-defensive-css/-/stylelint-plugin-defensive-css-0.9.1.tgz",
"integrity": "sha512-zVucZ1pVTpRX/7MCWp3MEMJ2K5hzhP/FlCptPPvspaoG+cwnofMR9TZBAbk7LT96oQyLCpqVunTP0qltfRl7fg==",
"dev": true,
"engines": {
"node": ">=16.0.0"
@ -8572,9 +8572,9 @@
}
},
"node_modules/web-ext": {
"version": "7.7.0",
"resolved": "https://registry.npmjs.org/web-ext/-/web-ext-7.7.0.tgz",
"integrity": "sha512-/jc0kbSLfw/ANra6v70I6QADrVYL0Wo98T0Cigt39EjVpXbiwES8zww/9QL7aE0L1tK0ISWYq45KNisDV+GKVA==",
"version": "7.8.0",
"resolved": "https://registry.npmjs.org/web-ext/-/web-ext-7.8.0.tgz",
"integrity": "sha512-ta+VjbNfK5q0pqRmrlH/DQMdJ89sAJFfgcvpqoUoe2gPxLu18zZ5mIakGvyjmfjrkJLOZ2NCNF7suj/qd6xaEQ==",
"dev": true,
"dependencies": {
"@babel/runtime": "7.21.0",

View File

@ -19,9 +19,9 @@
"husky": "^8.0.3",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^34.0.0",
"stylelint-plugin-defensive-css": "^0.8.1",
"stylelint-plugin-defensive-css": "^0.9.1",
"stylelint-plugin-logical-css": "^0.13.2",
"web-ext": "^7.7.0"
"web-ext": "^7.8.0"
},
"scripts": {
"copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js src/browser-polyfill.js",

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;
};