Skip to content

Commit b9ddd01

Browse files
committed
Maybe works.
0 parents  commit b9ddd01

14 files changed

+3412
-0
lines changed

Diff for: .gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# dependencies
2+
node_modules
3+
4+
# testing
5+
6+
# tooling
7+
.turbo
8+
*.tsbuildinfo
9+
.vscode
10+
11+
# build
12+
dist/
13+
14+
# logs
15+
npm-debug.log*
16+
17+
# secrets
18+
.env*.local
19+
20+
# misc
21+
.DS_Store

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Echobind
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: eslint.config.mjs

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
4+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
5+
import tsParser from "@typescript-eslint/parser";
6+
import noOnlyTests from "eslint-plugin-no-only-tests";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all,
16+
});
17+
18+
export default [
19+
{
20+
ignores: ["**/dist/"],
21+
},
22+
...compat.extends("prettier", "plugin:prettier/recommended"),
23+
{
24+
files: ["**/*.mjs"],
25+
languageOptions: {
26+
sourceType: "module",
27+
ecmaVersion: 2020,
28+
},
29+
},
30+
{
31+
plugins: {
32+
"no-only-tests": noOnlyTests,
33+
},
34+
35+
rules: {
36+
"no-unused-vars": [
37+
"warn",
38+
{
39+
argsIgnorePattern: "^_",
40+
caughtErrorsIgnorePattern: "^_",
41+
},
42+
],
43+
44+
"prefer-const": [
45+
"error",
46+
{
47+
destructuring: "all",
48+
},
49+
],
50+
51+
"no-constant-binary-expression": "error",
52+
"no-cond-assign": "error",
53+
"no-constant-condition": "error",
54+
"no-sequences": "error",
55+
curly: ["error", "all"],
56+
"no-only-tests/no-only-tests": "error",
57+
},
58+
},
59+
{
60+
files: ["**/*.ts", "**/*.tsx"],
61+
62+
plugins: {
63+
"@typescript-eslint": typescriptEslint,
64+
},
65+
66+
languageOptions: {
67+
parser: tsParser,
68+
sourceType: "module",
69+
ecmaVersion: 2020,
70+
},
71+
72+
rules: {
73+
// need to turn off the basic rule so we can use the typescript rule
74+
// instead
75+
"no-unused-vars": "off",
76+
77+
"@typescript-eslint/no-unused-vars": [
78+
"warn",
79+
{
80+
argsIgnorePattern: "^_",
81+
caughtErrorsIgnorePattern: "^_",
82+
},
83+
],
84+
85+
"@typescript-eslint/no-explicit-any": "off",
86+
"@typescript-eslint/no-non-null-assertion": "off",
87+
"@typescript-eslint/no-empty-function": "off",
88+
"@typescript-eslint/no-empty-interface": "off",
89+
},
90+
},
91+
];

0 commit comments

Comments
 (0)