-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6a8c96
commit fde6885
Showing
8 changed files
with
2,133 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
root: true | ||
extends: eslint-config-dmitmel/presets/node | ||
env: | ||
browser: true | ||
parser: "@typescript-eslint/parser" | ||
parserOptions: | ||
sourceType: module | ||
plugins: | ||
- "@typescript-eslint" | ||
|
||
settings: | ||
node: | ||
tryExtensions: ['.tsx', '.ts', '.jsx', '.js', '.json', '.node'] | ||
|
||
rules: | ||
node/no-unsupported-features/es-syntax: | ||
- error | ||
- ignores: | ||
- modules | ||
|
||
overrides: | ||
- files: '**/*.ts*' | ||
extends: | ||
- eslint-config-dmitmel/presets/typescript-addon | ||
parserOptions: | ||
project: 'tsconfig.json' | ||
sourceType: module | ||
rules: | ||
eqeqeq: 0 | ||
require-await: 0 | ||
no-undefined: 0 | ||
# May the Gods smite me for these two. | ||
'node/no-unpublished-import': 0 | ||
'node/no-missing-import': 0 | ||
'@typescript-eslint/no-dynamic-delete': 0 | ||
'@typescript-eslint/no-explicit-any': 0 | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 0 | ||
'@typescript-eslint/naming-convention': 0 | ||
|
||
# root: true | ||
# extends: | ||
# - eslint-config-dmitmel/presets/node | ||
# env: | ||
# browser: true | ||
# parser: "@typescript-eslint/parser" | ||
# parserOptions: | ||
# sourceType: module | ||
# plugins: | ||
# - "@typescript-eslint" | ||
# rules: | ||
# func-names: off | ||
# node/no-unsupported-features/es-syntax: | ||
# - error | ||
# - ignores: | ||
# - modules | ||
# - dynamicImport | ||
# node/no-unsupported-features/es-builtins: | ||
# - error | ||
# - ignores: | ||
# - globalThis | ||
# node/no-unsupported-features/node-builtins: | ||
# - error | ||
# - ignores: | ||
# - fs.promises | ||
# | ||
# node/no-missing-require: off | ||
# node/no-missing-import: off | ||
# node/no-unpublished-import: off | ||
# node/no-unpublished-require: off | ||
# node/shebang: off | ||
# no-process-exit: off | ||
# no-undef: off | ||
# no-unused-vars: off | ||
# no-undefined: off | ||
# "@typescript-eslint/no-unused-vars": error | ||
# camelcase: off | ||
# | ||
# overrides: | ||
# - files: "**/*.{ts,tsx}" | ||
# extends: eslint-config-dmitmel/presets/typescript-addon | ||
# rules: | ||
# node/no-missing-import: off | ||
# eqeqeq: off | ||
# \@typescript-eslint/no-dynamic-delete: off | ||
# no-return-assign: off | ||
# no-void: off | ||
# consistent-return: off | ||
# | ||
# - files: "**/plugins/**/*.{ts,tsx}" | ||
# extends: eslint-config-dmitmel/rules/typescript/with-type-checking | ||
# rules: | ||
# "@typescript-eslint/explicit-function-return-type": off | ||
# "@typescript-eslint/naming-convention": off | ||
# | ||
# - files: "**/*.d.ts" | ||
# rules: | ||
# no-var: off | ||
# | ||
# - files: "plugins/**/*.{ts,tsx}" | ||
# parserOptions: | ||
# project: tsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": false, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"bracketSameLine": true, | ||
"arrowParens": "always", | ||
"proseWrap": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,47 @@ | ||
{ | ||
"name": "plugins", | ||
"version": "1.0.0", | ||
"description": "what?", | ||
"private": true, | ||
"engines": { | ||
"node": ">=19.7.0" | ||
}, | ||
"scripts": { | ||
"build": "tsx scripts/build.ts", | ||
"watch": "pnpm build --watch", | ||
"dev": "pnpm watch", | ||
"bundle": "tsx scripts/bundle.ts", | ||
"build-and-bundle": "pnpm run build --no-install && pnpm run bundle" | ||
"build-and-bundle": "pnpm run build --no-install && pnpm run bundle", | ||
"check": "tsc --noEmit", | ||
"prettier:check": "prettier ./plugins ./scripts --check", | ||
"eslint:check": "eslint ./plugins/**/*.ts* ./scripts/*.ts", | ||
"prettier:fix": "prettier ./plugins ./scripts --write", | ||
"eslint:fix": "eslint ./plugins/**/*.ts* ./scripts/*.ts --fix", | ||
"lint": "pnpm run prettier:check && pnpm run eslint:check && pnpm run check", | ||
"lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix" | ||
}, | ||
"author": "Alyxia Sother", | ||
"devDependencies": { | ||
"@electron/asar": "^3.2.1", | ||
"esbuild": "^0.15.11", | ||
"esbuild-sass-plugin": "^2.4.4", | ||
"replugged": "v4.0.0-rc.3", | ||
"tsx": "^3.10.3", | ||
"typescript": "^4.8.4" | ||
"@electron/asar": "^3.2.3", | ||
"@types/lodash": "^4.14.191", | ||
"@types/node": "^18.15.7", | ||
"@types/react": "^18.0.28", | ||
"@typescript-eslint/eslint-plugin": "^5.56.0", | ||
"@typescript-eslint/parser": "^5.56.0", | ||
"esbuild": "^0.15.18", | ||
"esbuild-sass-plugin": "^2.8.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"prettier": "^2.8.7", | ||
"replugged": "4.2.2", | ||
"tsx": "^3.12.6", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"deepmerge": "^4.3.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { injector, webpack } from "replugged"; | ||
const { getByProps } = webpack; | ||
const { Injector } = injector; | ||
|
||
const ChannelNameEmojisStore = getByProps("getGuildChannelEmojis"); | ||
const patcher = new Injector(); | ||
|
||
patcher.before(ChannelNameEmojisStore, "getGuildChannelEmojis", () => {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"id": "dev.alyxia.removeChannelEmojis", | ||
"name": "Remove Channel Emojis", | ||
"description": "Gets rid of those godawful emojis next to channel names.", | ||
"author": { | ||
"name": "Alyxia", | ||
"discordID": "952185386350829688", | ||
"github": "lexisother" | ||
}, | ||
"version": "1.0.0", | ||
"updater": { | ||
"type": "github", | ||
"id": "lexisother/replugged-plugins" | ||
}, | ||
"license": "Apache-2.0", | ||
"type": "replugged-plugin", | ||
"plaintextPatches": "plaintextPatches.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { PlaintextPatch } from "replugged/dist/types"; | ||
|
||
export default [ | ||
{ | ||
find: /.{1,2}\.getGuildChannelEmojis/, | ||
replacements: [ | ||
{ | ||
match: /(.{1,2}\.getGuildChannelEmojis)=function\(.\){.*?}/, | ||
replace: (_, def) => `${def}=function() {}`, | ||
}, | ||
], | ||
}, | ||
] as PlaintextPatch[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports.patches = [ | ||
{ | ||
find: { | ||
match: 'channelEmojis:', | ||
}, | ||
replace: { | ||
match: /channelEmojis:.{1,2}/, | ||
replacement: 'owo$&', | ||
}, | ||
}, | ||
]; | ||
|
||
module.exports.meta = { | ||
name: 'Remove Channel Icons', | ||
description: 'Get rid of those godawful channel icons', | ||
authors: ['952185386350829688'], | ||
applications: ['discord'], | ||
}; |
Oops, something went wrong.