Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhu committed Jun 13, 2024
1 parent d3179af commit a6ab656
Show file tree
Hide file tree
Showing 8 changed files with 3,844 additions and 3,802 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
env: {
es2021: true,
node: true,
browser: true,
},
extends: "eslint:recommended",
Expand Down
1,700 changes: 841 additions & 859 deletions extensions/DilemmaGX/Animator/Animator.js

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions extensions/YUEN/FeishuExtension/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
const path = require("path");
const webpack = require("webpack");
const path = require('path');
const webpack = require('webpack');

module.exports = {
mode: "production",
mode: 'production',
entry: {
index: "./src/index.js",
extension: "./src/extension.js",
index: './src/index.js',
extension: './src/extension.js',
},
output: {
filename: "[name].js",
chunkFilename: "[name].[contenthash:8].js",
publicPath: "/",
path: path.resolve("./dist"),
globalObject: "this",
libraryTarget: "umd",
filename: '[name].js',
chunkFilename: '[name].[contenthash:8].js',
publicPath: '/',
path: path.resolve('./dist'),
globalObject: 'this',
libraryTarget: 'umd',
},
module: {
rules: [
{
test: /\.(js)$/,
exclude: /node_modules/,
use: ["babel-loader"],
use: ['babel-loader'],
},
{
test: /\.css/,
use: ["style-loader", "css-loader"],
use: ['style-loader', 'css-loader'],
},
{
test: /\.(woff2?|eot|ttf|otf|bin|png|svg|gif|jpe?g)(\?.*)?$/i,
loader: "url-loader",
loader: 'url-loader',
options: {
name: "[name].[hash:8].[ext]",
name: '[name].[hash:8].[ext]',
limit: 250000,
},
},
],
},
resolve: {
extensions: [".js", ".png", ".svg", ".gif", ".jpg", ".jpeg", ".css"],
extensions: ['.js', '.png', '.svg', '.gif', '.jpg', '.jpeg', '.css'],
},
plugins: [
new webpack.DefinePlugin({
DEPLOY_ENV: `"${process.env.DEPLOY_ENV || "prd"}"`,
DEPLOY_ENV: `"${process.env.DEPLOY_ENV || 'prd'}"`,
}),
],
};
79 changes: 39 additions & 40 deletions extensions/kukemc/I18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,42 @@ import KukeMCI18n from "./extension.js";
import { kukemcI18nIcon, kukemcI18nCover, kukemcI18nExtensionId } from "./assets";

window.tempExt = {
Extension: KukeMCI18n,
info: {
name: "kukeMCI18n.name",
description: "kukeMCI18n.description",
doc: "https://learn.ccw.site/article/99e0432c-98f2-4394-8a32-e501beee1e27",
extensionId: kukemcI18nExtensionId,
iconURL: kukemcI18nCover,
insetIconURL: kukemcI18nIcon,
featured: true,
disabled: false,
collaborator: "酷可mc @ CCW",
collaboratorURL: "https://www.ccw.site/student/203910367",
collaboratorList: [
{
collaborator: "酷可mc @ CCW",
collaboratorURL: "https://www.ccw.site/student/203910367",
},
{
collaborator: "YUEN @ CCW",
collaboratorURL: "https://www.ccw.site/student/236217560",
},
{
collaborator: "FurryR @ GitHub",
collaboratorURL: "https://github.com/FurryR"
}
],
},
l10n: {
"zh-cn": {
"kukeMCI18n.name": "I18n",
"kukeMCI18n.description":
"你的首款游戏多语言扩展,助你轻松实现游戏内容的国际化支持。",
},
en: {
"kukeMCI18n.name": "I18n",
"kukeMCI18n.description":
"Your first game's multilingual extension, helping you effortlessly implement internationalization support for your game content.",
},
},
};
Extension: KukeMCI18n,
info: {
name: "kukeMCI18n.name",
description: "kukeMCI18n.description",
doc: "https://learn.ccw.site/article/99e0432c-98f2-4394-8a32-e501beee1e27",
extensionId: kukemcI18nExtensionId,
iconURL: kukemcI18nCover,
insetIconURL: kukemcI18nIcon,
featured: true,
disabled: false,
collaborator: "酷可mc @ CCW",
collaboratorURL: "https://www.ccw.site/student/203910367",
collaboratorList: [
{
collaborator: "酷可mc @ CCW",
collaboratorURL: "https://www.ccw.site/student/203910367",
},
{
collaborator: "YUEN @ CCW",
collaboratorURL: "https://www.ccw.site/student/236217560",
},
{
collaborator: "FurryR @ GitHub",
collaboratorURL: "https://github.com/FurryR",
},
],
},
l10n: {
"zh-cn": {
"kukeMCI18n.name": "I18n",
"kukeMCI18n.description": "你的首款游戏多语言扩展,助你轻松实现游戏内容的国际化支持。",
},
en: {
"kukeMCI18n.name": "I18n",
"kukeMCI18n.description":
"Your first game's multilingual extension, helping you effortlessly implement internationalization support for your game content.",
},
},
};
422 changes: 202 additions & 220 deletions extensions/sipc.ink/Consoles/Consoles.js

Large diffs are not rendered by default.

Loading

0 comments on commit a6ab656

Please sign in to comment.