feat: eslint
This commit is contained in:
parent
177527fcc0
commit
3b7aff314e
91 changed files with 2018 additions and 19 deletions
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"arcanis.vscode-zipfs",
|
"arcanis.vscode-zipfs",
|
||||||
"esbenp.prettier-vscode"
|
"esbenp.prettier-vscode",
|
||||||
|
"dbaeumer.vscode-eslint"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -5,5 +5,6 @@
|
||||||
},
|
},
|
||||||
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
|
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
|
||||||
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
||||||
"typescript.enablePromptUseWorkspaceTsdk": true
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
||||||
|
"eslint.nodePath": ".yarn/sdks"
|
||||||
}
|
}
|
||||||
|
|
BIN
.yarn/cache/@eslint-community-eslint-utils-npm-4.4.0-d1791bd5a3-8d70bcdcd8.zip
vendored
Normal file
BIN
.yarn/cache/@eslint-community-eslint-utils-npm-4.4.0-d1791bd5a3-8d70bcdcd8.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@eslint-community-regexpp-npm-4.10.1-785b16afd9-54f13817ca.zip
vendored
Normal file
BIN
.yarn/cache/@eslint-community-regexpp-npm-4.10.1-785b16afd9-54f13817ca.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@eslint-config-array-npm-0.16.0-3d9e707ee8-6c1716f896.zip
vendored
Normal file
BIN
.yarn/cache/@eslint-config-array-npm-0.16.0-3d9e707ee8-6c1716f896.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@eslint-eslintrc-npm-3.1.0-3837a202e2-02bf892d13.zip
vendored
Normal file
BIN
.yarn/cache/@eslint-eslintrc-npm-3.1.0-3837a202e2-02bf892d13.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@eslint-js-npm-9.5.0-23a7c544a7-206364e3a0.zip
vendored
Normal file
BIN
.yarn/cache/@eslint-js-npm-9.5.0-23a7c544a7-206364e3a0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@eslint-object-schema-npm-2.1.4-0546250476-221e8d9f28.zip
vendored
Normal file
BIN
.yarn/cache/@eslint-object-schema-npm-2.1.4-0546250476-221e8d9f28.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@humanwhocodes-module-importer-npm-1.0.1-9d07ed2e4a-e993950e34.zip
vendored
Normal file
BIN
.yarn/cache/@humanwhocodes-module-importer-npm-1.0.1-9d07ed2e4a-e993950e34.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@humanwhocodes-retry-npm-0.3.0-fd8faa0baa-e574bab586.zip
vendored
Normal file
BIN
.yarn/cache/@humanwhocodes-retry-npm-0.3.0-fd8faa0baa-e574bab586.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@pkgr-core-npm-0.1.1-844d1f59d1-6f25fd2e30.zip
vendored
Normal file
BIN
.yarn/cache/@pkgr-core-npm-0.1.1-844d1f59d1-6f25fd2e30.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-eslint-plugin-npm-7.13.1-b85cb087d4-37fff8c302.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-eslint-plugin-npm-7.13.1-b85cb087d4-37fff8c302.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-parser-npm-7.13.1-0dab4cfa1d-a76cfcf97c.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-parser-npm-7.13.1-0dab4cfa1d-a76cfcf97c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-7.13.1-a210b8d779-fea9ab8f72.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-7.13.1-a210b8d779-fea9ab8f72.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-type-utils-npm-7.13.1-85622f504c-cc03cd44e1.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-type-utils-npm-7.13.1-85622f504c-cc03cd44e1.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-types-npm-7.13.1-7f52a3ee83-006a551860.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-types-npm-7.13.1-7f52a3ee83-006a551860.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-7.13.1-7f6ff9f962-5c68b5faa9.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-7.13.1-7f6ff9f962-5c68b5faa9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-utils-npm-7.13.1-9c091a3a46-e1bc916dcb.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-utils-npm-7.13.1-9c091a3a46-e1bc916dcb.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-7.13.1-91038d7e78-811e964285.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-7.13.1-91038d7e78-811e964285.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-d4371eaef7.zip
vendored
Normal file
BIN
.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-d4371eaef7.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/acorn-npm-8.12.0-10680c055b-550cc50331.zip
vendored
Normal file
BIN
.yarn/cache/acorn-npm-8.12.0-10680c055b-550cc50331.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-48d6ad2113.zip
vendored
Normal file
BIN
.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-48d6ad2113.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/argparse-npm-2.0.1-faff7999e6-18640244e6.zip
vendored
Normal file
BIN
.yarn/cache/argparse-npm-2.0.1-faff7999e6-18640244e6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip
vendored
Normal file
BIN
.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip
vendored
Normal file
BIN
.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-cb3f3e5949.zip
vendored
Normal file
BIN
.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-cb3f3e5949.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-9680699c8e.zip
vendored
Normal file
BIN
.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-9680699c8e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/debug-npm-4.3.5-b5001f59b7-cb6eab424c.zip
vendored
Normal file
BIN
.yarn/cache/debug-npm-4.3.5-b5001f59b7-cb6eab424c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/deep-is-npm-0.1.4-88938b5a67-ec12d074ae.zip
vendored
Normal file
BIN
.yarn/cache/deep-is-npm-0.1.4-88938b5a67-ec12d074ae.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip
vendored
Normal file
BIN
.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-config-prettier-npm-9.1.0-0e1fd42d7d-411e3b3b1c.zip
vendored
Normal file
BIN
.yarn/cache/eslint-config-prettier-npm-9.1.0-0e1fd42d7d-411e3b3b1c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-npm-9.5.0-c1652fa321-47578c2426.zip
vendored
Normal file
BIN
.yarn/cache/eslint-npm-9.5.0-c1652fa321-47578c2426.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-plugin-prettier-npm-5.1.3-496c3b84df-4f26a30444.zip
vendored
Normal file
BIN
.yarn/cache/eslint-plugin-prettier-npm-5.1.3-496c3b84df-4f26a30444.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-scope-npm-8.0.1-20a4626de0-458513863d.zip
vendored
Normal file
BIN
.yarn/cache/eslint-scope-npm-8.0.1-20a4626de0-458513863d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-visitor-keys-npm-3.4.3-a356ac7e46-3f357c554a.zip
vendored
Normal file
BIN
.yarn/cache/eslint-visitor-keys-npm-3.4.3-a356ac7e46-3f357c554a.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/eslint-visitor-keys-npm-4.0.0-9098eefd77-c7617166e6.zip
vendored
Normal file
BIN
.yarn/cache/eslint-visitor-keys-npm-4.0.0-9098eefd77-c7617166e6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/espree-npm-10.1.0-6847541ce4-a673aa39a1.zip
vendored
Normal file
BIN
.yarn/cache/espree-npm-10.1.0-6847541ce4-a673aa39a1.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/esquery-npm-1.5.0-d8f8a06879-e65fcdfc1e.zip
vendored
Normal file
BIN
.yarn/cache/esquery-npm-1.5.0-d8f8a06879-e65fcdfc1e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-44ffcd89e7.zip
vendored
Normal file
BIN
.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-44ffcd89e7.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/estraverse-npm-5.3.0-03284f8f63-37cbe6e9a6.zip
vendored
Normal file
BIN
.yarn/cache/estraverse-npm-5.3.0-03284f8f63-37cbe6e9a6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/esutils-npm-2.0.3-f865beafd5-b23acd2479.zip
vendored
Normal file
BIN
.yarn/cache/esutils-npm-2.0.3-f865beafd5-b23acd2479.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/fast-diff-npm-1.3.0-9f19e3b743-9e57415bc6.zip
vendored
Normal file
BIN
.yarn/cache/fast-diff-npm-1.3.0-9f19e3b743-9e57415bc6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-2c20055c1f.zip
vendored
Normal file
BIN
.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-2c20055c1f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-eb7e220ecf.zip
vendored
Normal file
BIN
.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-eb7e220ecf.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/file-entry-cache-npm-8.0.0-5b09d19a83-afe55c4de4.zip
vendored
Normal file
BIN
.yarn/cache/file-entry-cache-npm-8.0.0-5b09d19a83-afe55c4de4.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/find-up-npm-5.0.0-e03e9b796d-07955e3573.zip
vendored
Normal file
BIN
.yarn/cache/find-up-npm-5.0.0-e03e9b796d-07955e3573.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/flat-cache-npm-4.0.1-12bf2455f7-58ce851d90.zip
vendored
Normal file
BIN
.yarn/cache/flat-cache-npm-4.0.1-12bf2455f7-58ce851d90.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/flatted-npm-3.3.1-458870f59b-7b8376061d.zip
vendored
Normal file
BIN
.yarn/cache/flatted-npm-3.3.1-458870f59b-7b8376061d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip
vendored
Normal file
BIN
.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/globals-npm-14.0.0-5fc3d8d5da-03939c8af9.zip
vendored
Normal file
BIN
.yarn/cache/globals-npm-14.0.0-5fc3d8d5da-03939c8af9.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/globals-npm-15.6.0-a30a5795de-9b522b1eff.zip
vendored
Normal file
BIN
.yarn/cache/globals-npm-15.6.0-a30a5795de-9b522b1eff.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/graphemer-npm-1.4.0-0627732d35-6dd60dba97.zip
vendored
Normal file
BIN
.yarn/cache/graphemer-npm-1.4.0-0627732d35-6dd60dba97.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip
vendored
Normal file
BIN
.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip
vendored
Normal file
BIN
.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/is-path-inside-npm-3.0.3-2ea0ef44fd-abd50f0618.zip
vendored
Normal file
BIN
.yarn/cache/is-path-inside-npm-3.0.3-2ea0ef44fd-abd50f0618.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip
vendored
Normal file
BIN
.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c138a34a3f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/json-buffer-npm-3.0.1-f8f6d20603-8287615452.zip
vendored
Normal file
BIN
.yarn/cache/json-buffer-npm-3.0.1-f8f6d20603-8287615452.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip
vendored
Normal file
BIN
.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-12786c2e2f.zip
vendored
Normal file
BIN
.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-12786c2e2f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/keyv-npm-4.5.4-4c8e2cf7f7-167eb6ef64.zip
vendored
Normal file
BIN
.yarn/cache/keyv-npm-4.5.4-4c8e2cf7f7-167eb6ef64.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/levn-npm-0.4.1-d183b2d7bb-2e4720ff79.zip
vendored
Normal file
BIN
.yarn/cache/levn-npm-0.4.1-d183b2d7bb-2e4720ff79.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-72eb661788.zip
vendored
Normal file
BIN
.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-72eb661788.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-d0ea2dd009.zip
vendored
Normal file
BIN
.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-d0ea2dd009.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/minimatch-npm-3.1.2-9405269906-e0b25b04cd.zip
vendored
Normal file
BIN
.yarn/cache/minimatch-npm-3.1.2-9405269906-e0b25b04cd.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip
vendored
Normal file
BIN
.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/optionator-npm-0.9.4-1f114b00e8-a8398559c6.zip
vendored
Normal file
BIN
.yarn/cache/optionator-npm-0.9.4-1f114b00e8-a8398559c6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-7c3690c4db.zip
vendored
Normal file
BIN
.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-7c3690c4db.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/p-locate-npm-5.0.0-92cc7c7a3e-1623088f36.zip
vendored
Normal file
BIN
.yarn/cache/p-locate-npm-5.0.0-92cc7c7a3e-1623088f36.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip
vendored
Normal file
BIN
.yarn/cache/parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip
vendored
Normal file
BIN
.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-0b9d2c7680.zip
vendored
Normal file
BIN
.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-0b9d2c7680.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip
vendored
Normal file
BIN
.yarn/cache/prettier-linter-helpers-npm-1.0.0-6925131a7e-00ce8011cf.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-91eb76ce83.zip
vendored
Normal file
BIN
.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-91eb76ce83.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip
vendored
Normal file
BIN
.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-c8bb7afd56.zip
vendored
Normal file
BIN
.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-c8bb7afd56.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/synckit-npm-0.8.8-f5ee4a6dac-2864a5c3e6.zip
vendored
Normal file
BIN
.yarn/cache/synckit-npm-0.8.8-f5ee4a6dac-2864a5c3e6.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/text-table-npm-0.2.0-d92a778b59-4383b5baae.zip
vendored
Normal file
BIN
.yarn/cache/text-table-npm-0.2.0-d92a778b59-4383b5baae.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ts-api-utils-npm-1.3.0-33457908f8-3ee44faa24.zip
vendored
Normal file
BIN
.yarn/cache/ts-api-utils-npm-1.3.0-33457908f8-3ee44faa24.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/type-check-npm-0.4.0-60565800ce-1468777647.zip
vendored
Normal file
BIN
.yarn/cache/type-check-npm-0.4.0-60565800ce-1468777647.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-b271ca7e3d.zip
vendored
Normal file
BIN
.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-b271ca7e3d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/word-wrap-npm-1.2.5-42d00c4b09-1ec6f6089f.zip
vendored
Normal file
BIN
.yarn/cache/word-wrap-npm-1.2.5-42d00c4b09-1ec6f6089f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip
vendored
Normal file
BIN
.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip
vendored
Normal file
Binary file not shown.
27
.yarn/sdks/eslint/bin/eslint.js
vendored
Executable file
27
.yarn/sdks/eslint/bin/eslint.js
vendored
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const {existsSync} = require(`fs`);
|
||||||
|
const {createRequire, register} = require(`module`);
|
||||||
|
const {resolve} = require(`path`);
|
||||||
|
const {pathToFileURL} = require(`url`);
|
||||||
|
|
||||||
|
const relPnpApiPath = "../../../../.pnp.cjs";
|
||||||
|
|
||||||
|
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
|
||||||
|
const absRequire = createRequire(absPnpApiPath);
|
||||||
|
|
||||||
|
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
|
||||||
|
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
|
||||||
|
|
||||||
|
if (existsSync(absPnpApiPath)) {
|
||||||
|
if (!process.versions.pnp) {
|
||||||
|
// Setup the environment to be able to require eslint/bin/eslint.js
|
||||||
|
require(absPnpApiPath).setup();
|
||||||
|
if (isPnpLoaderEnabled && register) {
|
||||||
|
register(pathToFileURL(absPnpLoaderPath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Defer to the real eslint/bin/eslint.js your application uses
|
||||||
|
module.exports = absRequire(`eslint/bin/eslint.js`);
|
27
.yarn/sdks/eslint/lib/api.js
vendored
Normal file
27
.yarn/sdks/eslint/lib/api.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const {existsSync} = require(`fs`);
|
||||||
|
const {createRequire, register} = require(`module`);
|
||||||
|
const {resolve} = require(`path`);
|
||||||
|
const {pathToFileURL} = require(`url`);
|
||||||
|
|
||||||
|
const relPnpApiPath = "../../../../.pnp.cjs";
|
||||||
|
|
||||||
|
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
|
||||||
|
const absRequire = createRequire(absPnpApiPath);
|
||||||
|
|
||||||
|
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
|
||||||
|
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
|
||||||
|
|
||||||
|
if (existsSync(absPnpApiPath)) {
|
||||||
|
if (!process.versions.pnp) {
|
||||||
|
// Setup the environment to be able to require eslint
|
||||||
|
require(absPnpApiPath).setup();
|
||||||
|
if (isPnpLoaderEnabled && register) {
|
||||||
|
register(pathToFileURL(absPnpLoaderPath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Defer to the real eslint your application uses
|
||||||
|
module.exports = absRequire(`eslint`);
|
27
.yarn/sdks/eslint/lib/unsupported-api.js
vendored
Normal file
27
.yarn/sdks/eslint/lib/unsupported-api.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const {existsSync} = require(`fs`);
|
||||||
|
const {createRequire, register} = require(`module`);
|
||||||
|
const {resolve} = require(`path`);
|
||||||
|
const {pathToFileURL} = require(`url`);
|
||||||
|
|
||||||
|
const relPnpApiPath = "../../../../.pnp.cjs";
|
||||||
|
|
||||||
|
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
|
||||||
|
const absRequire = createRequire(absPnpApiPath);
|
||||||
|
|
||||||
|
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
|
||||||
|
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
|
||||||
|
|
||||||
|
if (existsSync(absPnpApiPath)) {
|
||||||
|
if (!process.versions.pnp) {
|
||||||
|
// Setup the environment to be able to require eslint/use-at-your-own-risk
|
||||||
|
require(absPnpApiPath).setup();
|
||||||
|
if (isPnpLoaderEnabled && register) {
|
||||||
|
register(pathToFileURL(absPnpLoaderPath));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Defer to the real eslint/use-at-your-own-risk your application uses
|
||||||
|
module.exports = absRequire(`eslint/use-at-your-own-risk`);
|
14
.yarn/sdks/eslint/package.json
vendored
Normal file
14
.yarn/sdks/eslint/package.json
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"name": "eslint",
|
||||||
|
"version": "9.5.0-sdk",
|
||||||
|
"main": "./lib/api.js",
|
||||||
|
"type": "commonjs",
|
||||||
|
"bin": {
|
||||||
|
"eslint": "./bin/eslint.js"
|
||||||
|
},
|
||||||
|
"exports": {
|
||||||
|
"./package.json": "./package.json",
|
||||||
|
".": "./lib/api.js",
|
||||||
|
"./use-at-your-own-risk": "./lib/unsupported-api.js"
|
||||||
|
}
|
||||||
|
}
|
60
eslint.config.mjs
Normal file
60
eslint.config.mjs
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
import typescriptEslint from '@typescript-eslint/eslint-plugin'
|
||||||
|
import prettier from 'eslint-plugin-prettier'
|
||||||
|
import globals from 'globals'
|
||||||
|
import tsParser from '@typescript-eslint/parser'
|
||||||
|
import path from 'node:path'
|
||||||
|
import { fileURLToPath } from 'node:url'
|
||||||
|
import js from '@eslint/js'
|
||||||
|
import { FlatCompat } from '@eslint/eslintrc'
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
|
const __dirname = path.dirname(__filename)
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
recommendedConfig: js.configs.recommended,
|
||||||
|
allConfig: js.configs.all,
|
||||||
|
})
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
'**/.yarn/',
|
||||||
|
'**/.pnp.*',
|
||||||
|
'**/dist/',
|
||||||
|
'**/.vscode/',
|
||||||
|
'**/.idea/',
|
||||||
|
'**/tsup.config.ts',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
...compat.extends('plugin:@typescript-eslint/recommended', 'prettier'),
|
||||||
|
{
|
||||||
|
plugins: {
|
||||||
|
'@typescript-eslint': typescriptEslint,
|
||||||
|
prettier,
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
},
|
||||||
|
|
||||||
|
parser: tsParser,
|
||||||
|
ecmaVersion: 2022,
|
||||||
|
sourceType: 'commonjs',
|
||||||
|
},
|
||||||
|
|
||||||
|
settings: {
|
||||||
|
'import/parsers': {
|
||||||
|
'@typescript-eslint/parser': ['.ts', '.tsx', '.js'],
|
||||||
|
},
|
||||||
|
|
||||||
|
'import/resolver': {
|
||||||
|
typescript: './tsconfig.json',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
|
@ -16,10 +16,18 @@
|
||||||
"ws": "^8.17.1"
|
"ws": "^8.17.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@eslint/eslintrc": "^3.1.0",
|
||||||
|
"@eslint/js": "^9.5.0",
|
||||||
"@migan/prettier-config": "^1.0.0",
|
"@migan/prettier-config": "^1.0.0",
|
||||||
"@types/node": "^20.14.8",
|
"@types/node": "^20.14.8",
|
||||||
"@types/ws": "^8",
|
"@types/ws": "^8",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
||||||
|
"@typescript-eslint/parser": "^7.13.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
"eslint": "^9.5.0",
|
||||||
|
"eslint-config-prettier": "^9.1.0",
|
||||||
|
"eslint-plugin-prettier": "^5.1.3",
|
||||||
|
"globals": "^15.6.0",
|
||||||
"prettier": "^3.3.2",
|
"prettier": "^3.3.2",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"tsup": "^8.1.0",
|
"tsup": "^8.1.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { LearnTable, NSFWContentTable, StatementTable } from './model'
|
import { LearnTable, NSFWContentTable, StatementTable } from './model'
|
||||||
import { createPool, type QueryResult } from 'mysql2/promise'
|
|
||||||
import { container } from '@sapphire/framework'
|
import { container } from '@sapphire/framework'
|
||||||
|
import { createPool } from 'mysql2/promise'
|
||||||
|
|
||||||
export class MaaDatabase {
|
export class MaaDatabase {
|
||||||
public readonly database = createPool({
|
public readonly database = createPool({
|
||||||
|
|
Loading…
Reference in a new issue