Skip to content

Commit d38cac4

Browse files
committed
refactor(core): Recreate project scaffolding
1 parent d6d7a36 commit d38cac4

Some content is hidden

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

73 files changed

+10727
-4616
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
**/dist
3+
**/node_modules
4+
**/db-data
5+
.vscode
6+
docs

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true

.env.development.local.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ENABLE_ESLINT=true
2+
ENABLE_TYPESCRIPT=true
File renamed without changes.
File renamed without changes.

.eslintrc.js

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
const { resolve } = require("node:path");
2+
3+
const project = resolve(process.cwd(), "tsconfig.json");
4+
5+
/** @type {import("eslint").Linter.Config} */
6+
module.exports = {
7+
root: true,
8+
extends: [
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:prettier/recommended",
11+
"prettier",
12+
require.resolve("@vercel/style-guide/eslint/next"),
13+
"next/core-web-vitals",
14+
],
15+
plugins: ["@typescript-eslint/eslint-plugin"],
16+
parser: "@typescript-eslint/parser",
17+
ignorePatterns: [
18+
".*.js",
19+
"*.setup.js",
20+
"*.config.js",
21+
"dist/",
22+
"coverage/",
23+
"node_modules/",
24+
],
25+
rules: {
26+
"@typescript-eslint/interface-name-prefix": "off",
27+
"@typescript-eslint/explicit-function-return-type": "off",
28+
"@typescript-eslint/explicit-module-boundary-types": "off",
29+
"@typescript-eslint/no-explicit-any": "off",
30+
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
31+
"@typescript-eslint/no-require-imports": "off",
32+
"@typescript-eslint/ban-ts-comment": "off",
33+
"@typescript-eslint/no-unused-vars": [
34+
"warn",
35+
{
36+
argsIgnorePattern: "^_",
37+
varsIgnorePattern: "^_",
38+
caughtErrorsIgnorePattern: "^_",
39+
},
40+
],
41+
"prettier/prettier": ["error", { singleQuote: false }],
42+
},
43+
globals: {
44+
React: true,
45+
JSX: true,
46+
},
47+
env: {
48+
node: true,
49+
browser: true,
50+
},
51+
plugins: ["only-warn"],
52+
settings: {
53+
"import/resolver": {
54+
typescript: {
55+
project,
56+
},
57+
},
58+
},
59+
overrides: [{ files: ["*.js?(x)", "*.ts?(x)"] }],
60+
};

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.husky/commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
pnpm exec commitlint --edit $1

.husky/post-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm run lint && pnpx lint-staged

.lintst

Whitespace-only changes.

0 commit comments

Comments
 (0)