Skip to content

Commit a353353

Browse files
committed
feat: some formatters
1 parent 1a062b2 commit a353353

File tree

34 files changed

+970
-417
lines changed

34 files changed

+970
-417
lines changed

.devcontainer/devcontainer.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7-
"features": {
8-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
9-
"ghcr.io/devcontainers/features/git-lfs:1": {},
10-
"ghcr.io/devcontainers/features/github-cli:1": {},
11-
"ghcr.io/devcontainers/features/node:1": {}
12-
}
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
9+
"ghcr.io/devcontainers/features/git-lfs:1": {},
10+
"ghcr.io/devcontainers/features/github-cli:1": {},
11+
"ghcr.io/devcontainers/features/node:1": {}
12+
}
1313

14-
// Features to add to the dev container. More info: https://containers.dev/features.
15-
// "features": {},
14+
// Features to add to the dev container. More info: https://containers.dev/features.
15+
// "features": {},
1616

17-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18-
// "forwardPorts": [],
17+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18+
// "forwardPorts": [],
1919

20-
// Use 'postCreateCommand' to run commands after the container is created.
21-
// "postCreateCommand": "yarn install",
20+
// Use 'postCreateCommand' to run commands after the container is created.
21+
// "postCreateCommand": "yarn install",
2222

23-
// Configure tool-specific properties.
24-
// "customizations": {},
23+
// Configure tool-specific properties.
24+
// "customizations": {},
2525

26-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
27-
// "remoteUser": "root"
26+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
27+
// "remoteUser": "root"
2828
}

.oxfmtrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"ignorePatterns": [".next/**", "archive/**", "public/**"]
4+
}

.oxlintrc.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["unicorn", "typescript", "oxc"],
4+
"categories": {
5+
"correctness": "error", // 確実なバグはエラーとして扱う
6+
"suspicious": "warn" // 疑わしいコードは警告として扱う
7+
},
8+
"rules": {
9+
"constructor-super": "warn",
10+
"for-direction": "warn",
11+
"no-async-promise-executor": "warn",
12+
"no-caller": "warn",
13+
"no-class-assign": "warn",
14+
"no-compare-neg-zero": "warn",
15+
"no-cond-assign": "warn",
16+
"no-const-assign": "warn",
17+
"no-constant-binary-expression": "warn",
18+
"no-constant-condition": "warn",
19+
"no-control-regex": "warn",
20+
"no-debugger": "warn",
21+
"no-delete-var": "warn",
22+
"no-dupe-class-members": "warn",
23+
"no-dupe-else-if": "warn",
24+
"no-dupe-keys": "warn",
25+
"no-duplicate-case": "warn",
26+
"no-empty-character-class": "warn",
27+
"no-empty-pattern": "warn",
28+
"no-empty-static-block": "warn",
29+
"no-eval": "warn",
30+
"no-ex-assign": "warn",
31+
"no-extra-boolean-cast": "warn",
32+
"no-func-assign": "warn",
33+
"no-global-assign": "warn",
34+
"no-import-assign": "warn",
35+
"no-invalid-regexp": "warn",
36+
"no-irregular-whitespace": "warn",
37+
"no-loss-of-precision": "warn",
38+
"no-new-native-nonconstructor": "warn",
39+
"no-nonoctal-decimal-escape": "warn",
40+
"no-obj-calls": "warn",
41+
"no-self-assign": "warn",
42+
"no-setter-return": "warn",
43+
"no-shadow-restricted-names": "warn",
44+
"no-sparse-arrays": "warn",
45+
"no-this-before-super": "warn",
46+
"no-unassigned-vars": "warn",
47+
"no-unsafe-finally": "warn",
48+
"no-unsafe-negation": "warn",
49+
"no-unsafe-optional-chaining": "warn",
50+
"no-unused-expressions": "warn",
51+
"no-unused-labels": "warn",
52+
"no-unused-private-class-members": "warn",
53+
"no-unused-vars": "warn",
54+
"no-useless-backreference": "warn",
55+
"no-useless-catch": "warn",
56+
"no-useless-escape": "warn",
57+
"no-useless-rename": "warn",
58+
"no-with": "warn",
59+
"require-yield": "warn",
60+
"use-isnan": "warn",
61+
"valid-typeof": "warn",
62+
"oxc/bad-array-method-on-arguments": "warn",
63+
"oxc/bad-char-at-comparison": "warn",
64+
"oxc/bad-comparison-sequence": "warn",
65+
"oxc/bad-min-max-func": "warn",
66+
"oxc/bad-object-literal-comparison": "warn",
67+
"oxc/bad-replace-all-arg": "warn",
68+
"oxc/const-comparisons": "warn",
69+
"oxc/double-comparisons": "warn",
70+
"oxc/erasing-op": "warn",
71+
"oxc/missing-throw": "warn",
72+
"oxc/number-arg-out-of-range": "warn",
73+
"oxc/only-used-in-recursion": "warn",
74+
"oxc/uninvoked-array-callback": "warn",
75+
"typescript/await-thenable": "warn",
76+
"typescript/no-array-delete": "warn",
77+
"typescript/no-base-to-string": "warn",
78+
"typescript/no-duplicate-enum-values": "warn",
79+
"typescript/no-duplicate-type-constituents": "warn",
80+
"typescript/no-extra-non-null-assertion": "warn",
81+
"typescript/no-floating-promises": "warn",
82+
"typescript/no-for-in-array": "warn",
83+
"typescript/no-implied-eval": "warn",
84+
"typescript/no-meaningless-void-operator": "warn",
85+
"typescript/no-misused-new": "warn",
86+
"typescript/no-misused-spread": "warn",
87+
"typescript/no-non-null-asserted-optional-chain": "warn",
88+
"typescript/no-redundant-type-constituents": "warn",
89+
"typescript/no-this-alias": "warn",
90+
"typescript/no-unnecessary-parameter-property-assignment": "warn",
91+
"typescript/no-unsafe-declaration-merging": "warn",
92+
"typescript/no-unsafe-unary-minus": "warn",
93+
"typescript/no-useless-empty-export": "warn",
94+
"typescript/no-wrapper-object-types": "warn",
95+
"typescript/prefer-as-const": "warn",
96+
"typescript/require-array-sort-compare": "warn",
97+
"typescript/restrict-template-expressions": "warn",
98+
"typescript/triple-slash-reference": "warn",
99+
"typescript/unbound-method": "warn",
100+
"unicorn/no-await-in-promise-methods": "warn",
101+
"unicorn/no-empty-file": "warn",
102+
"unicorn/no-invalid-fetch-options": "warn",
103+
"unicorn/no-invalid-remove-event-listener": "warn",
104+
"unicorn/no-new-array": "warn",
105+
"unicorn/no-single-promise-in-promise-methods": "warn",
106+
"unicorn/no-thenable": "warn",
107+
"unicorn/no-unnecessary-await": "warn",
108+
"unicorn/no-useless-fallback-in-spread": "warn",
109+
"unicorn/no-useless-length-check": "warn",
110+
"unicorn/no-useless-spread": "warn",
111+
"unicorn/prefer-set-size": "warn",
112+
"unicorn/prefer-string-starts-ends-with": "warn"
113+
},
114+
"settings": {
115+
"jsx-a11y": {
116+
"polymorphicPropName": null,
117+
"components": {},
118+
"attributes": {}
119+
},
120+
"next": {
121+
"rootDir": []
122+
},
123+
"react": {
124+
"formComponents": [],
125+
"linkComponents": []
126+
},
127+
"jsdoc": {
128+
"ignorePrivate": false,
129+
"ignoreInternal": false,
130+
"ignoreReplacesDocs": true,
131+
"overrideReplacesDocs": true,
132+
"augmentsExtendsReplacesDocs": false,
133+
"implementsReplacesDocs": false,
134+
"exemptDestructuredRootsFromChecks": false,
135+
"tagNamePreference": {}
136+
},
137+
"vitest": {
138+
"typecheck": true
139+
}
140+
},
141+
"env": {
142+
"builtin": true
143+
},
144+
"globals": {},
145+
"ignorePatterns": []
146+
}

biome.json

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

0 commit comments

Comments
 (0)