style: 🎨 fix some eslint issues

这个提交包含在:
alistair3149 2022-11-09 17:40:31 -05:00
父节点 31c43fa33b
当前提交 9c871764c3
找不到此签名对应的密钥
共有 4 个文件被更改,包括 19 次插入12 次删除

查看文件

@ -4,7 +4,7 @@
* Recommended options from:
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
*/
module.exports = {
module.exports = {
plugins: [
{
// Set of built-in plugins enabled by default.
@ -37,4 +37,4 @@
pretty: true
},
multipass: true
};
};

17
package-lock.json 自动生成的
查看文件

@ -1,6 +1,11 @@
{
<<<<<<< HEAD
"name": "mediawiki-skins-Citizen",
"version": "2.0.0-beta.4",
=======
"name": "Citizen",
"version": "2.0.0-beta.3",
>>>>>>> 13722ed (style: 🎨 fix some eslint issues)
"lockfileVersion": 2,
"requires": true,
"packages": {
@ -942,9 +947,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001332",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001332.tgz",
"integrity": "sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw==",
"version": "1.0.30001431",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz",
"integrity": "sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==",
"dev": true,
"funding": [
{
@ -6694,9 +6699,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001332",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001332.tgz",
"integrity": "sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw==",
"version": "1.0.30001431",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz",
"integrity": "sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==",
"dev": true
},
"catharsis": {

查看文件

@ -92,7 +92,8 @@ function registerServiceWorker() {
const scriptPath = mw.config.get( 'wgScriptPath' );
// Only allow serviceWorker when the scriptPath is at root because of its scope
// I can't figure out how to add the Service-Worker-Allowed HTTP header to change the default scope
// I can't figure out how to add the Service-Worker-Allowed HTTP header
// to change the default scope
if ( scriptPath === '' ) {
if ( 'serviceWorker' in navigator ) {
const SW_MODULE_NAME = 'skins.citizen.serviceWorker',

查看文件

@ -1,13 +1,14 @@
// TODO: Make it actually do something
// See https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/273388/
/* eslint-disable no-unused-vars */
self.addEventListener( 'install', ( event ) => {
console.log( 'Service worker installed' );
// console.log( 'Service worker installed' );
} );
self.addEventListener( 'activate', ( event ) => {
console.log( 'Service worker activated' );
// console.log( 'Service worker activated' );
} );
self.addEventListener( 'fetch', ( event ) => {
console.log( 'Service worker fetch' );
// console.log( 'Service worker fetch' );
} );