Compare commits

...

9 Commits

Author SHA1 Message Date
Alyxia Sother 73140035ee
[common/hc] domOptimizer: fix linting errors 2023-05-23 15:17:49 +02:00
Alyxia Sother 1d8a922c4e
[common/hc] Add editor configs 2023-05-23 15:17:28 +02:00
Alyxia Sother fc24e728e9
[common/hc] removeChannelIcons: add categories 2023-05-23 13:04:31 +02:00
Alyxia Sother 1623d7332e
[common/hc] noSpotifyAutoPause: deprecate 2023-05-23 13:03:27 +02:00
Alyxia Sother cb84fe3784
[common/hc] domOptimizer: format 2023-05-23 12:57:05 +02:00
Alyxia Sother f3729bd028
[common/hc] domOptimizer: TSify 2023-05-23 12:56:31 +02:00
Alyxia Sother 619af54678
[common/hc] noSpotifyAutoPause: TSify 2023-05-23 12:26:34 +02:00
Alyxia Sother ea8f95383b
[common/hc] removeChannelIcons: TSify 2023-05-23 12:23:36 +02:00
Alyxia Sother 7b7ccf4156
[common/hc] domOptimizer: add 2023-05-23 11:58:10 +02:00
12 changed files with 1192 additions and 1 deletions

2
.gitattributes vendored
View File

@ -1,3 +1,3 @@
/script-resources/markdown2htmldoc/themes-out/**/* linguist-generated
common/hellcooling/config/ext/** filter=git-crypt diff=git-crypt
common/hellcooling/config/*.json filter=git-crypt diff=git-crypt
common/hellcooling/config/discord*.json filter=git-crypt diff=git-crypt

View File

@ -0,0 +1,41 @@
extends: eslint-config-dmitmel/presets/node
env:
browser: true
plugins: ['prettier']
settings:
node:
tryExtensions: ['.tsx', '.ts', '.jsx', '.js', '.json', '.node']
globals:
hh: writable
magicrequire: writable
DiscordNative: writable
rules:
prettier/prettier:
- error
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
# the only reason this is allowed is because there's no easy way to make it shut up about the custom imports
'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

View File

@ -0,0 +1,3 @@
module.exports = {
...require('eslint-config-dmitmel/prettier.config.js'),
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

7
common/hellcooling/config/global.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
export {};
declare global {
const hh: {
constants: Record<string, string> & { categories: Record<string, string> };
};
}

View File

@ -0,0 +1,24 @@
{
"name": "-",
"description": "blblbl, blbl, wawawawa",
"engines": {
"node": ">=19.9.0"
},
"scripts": {
"lint": "eslint ext --ext .js,.jsx,.ts,.tsx --ignore-path ../../../.gitignore",
"format": "prettier --write **/*"
},
"dependencies": {
"typescript": "^5.0.4"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"eslint": "^8.41.0",
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.8.8"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"allowJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noEmit": true,
"jsx": "react",
"paths": {
"@hh/*": ["/Users/alyxia/Documents/gitrepos/hh3/types/*"],
"@hh/ext/*": ["/Users/alyxia/Documents/gitrepos/hh3/ext/*"]
},
"typeRoots": ["/Users/alyxia/Documents/gitrepos/hh3/types"]
},
"include": ["./ext/**/*", "./global.d.ts"]
}