Skip to content

Commit 78f3240

Browse files
committed
chore: Configure ESLint and Prettier for code consistency and add card reminders table migration.
1 parent fbd273c commit 78f3240

File tree

96 files changed

+2900
-848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+2900
-848
lines changed

api/.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": false,
5+
"printWidth": 80,
6+
"tabWidth": 2
7+
}

api/eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const js = require("@eslint/js");
2+
const tseslint = require("typescript-eslint");
3+
const prettierPlugin = require("eslint-plugin-prettier");
4+
const prettierConfig = require("eslint-config-prettier");
5+
6+
module.exports = tseslint.config(
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
plugins: {
11+
prettier: prettierPlugin,
12+
},
13+
rules: {
14+
...prettierConfig.rules,
15+
"prettier/prettier": "error",
16+
"@typescript-eslint/no-explicit-any": "error",
17+
eqeqeq: ["error", "always", { null: "ignore" }],
18+
},
19+
},
20+
{
21+
ignores: ["dist/**", "node_modules/**"],
22+
}
23+
);

0 commit comments

Comments
 (0)