-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#159 TypeScript 마이그레이션
- Loading branch information
Showing
112 changed files
with
3,550 additions
and
1,986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
/node_modules | ||
/dist | ||
.env | ||
.env.test | ||
.env.production | ||
.env.development | ||
.DS_store | ||
*.code-workspace | ||
*.swp | ||
/logs/*.log | ||
.vscode | ||
|
||
# AdminJS 관련 디렉토리 | ||
.adminjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules/ | ||
dist/ | ||
package.json | ||
tsconfig.json | ||
.prettierrc.json | ||
.eslintrc.cjs | ||
nodemon.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"airbnb-base", | ||
"airbnb-typescript/base", | ||
"plugin:mocha/recommended", | ||
"prettier", | ||
], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
mocha: true, | ||
}, | ||
files: [".eslintrc.{js,cjs}"], | ||
parserOptions: { | ||
sourceType: "script", | ||
}, | ||
}, | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
project: "./tsconfig.json", | ||
}, | ||
plugins: ["import", "@typescript-eslint", "mocha"], | ||
rules: { | ||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
js: "never", // temporary fix for #159 | ||
ts: "never", | ||
}, | ||
], | ||
"import/named": "error", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
packageDir: "./", | ||
}, | ||
], | ||
"mocha/no-mocha-arrows": "off", | ||
"no-console": "error", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
patterns: [ | ||
{ | ||
group: ["../*"], | ||
message: | ||
"Usage of relative parent imports is not allowed. Use path alias instead.", | ||
}, | ||
], | ||
}, | ||
], | ||
radix: ["error", "as-needed"], | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ | ||
prefer: "type-imports", | ||
}, | ||
], | ||
}, | ||
settings: { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts"], | ||
}, | ||
"import/resolver": { | ||
typescript: { | ||
project: ["./tsconfig.json"], | ||
}, | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/node_modules | ||
/dist | ||
/dump | ||
.env | ||
.env.test | ||
.env.production | ||
.env.development | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
node_modules | ||
build | ||
node_modules/ | ||
dist/ | ||
package.json | ||
tsconfig.json | ||
nodemon.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"ignore": ["node_modules/*"], | ||
"env": { | ||
"TZ": "Asia/Seoul", | ||
"NODE_ENV": "development" | ||
} | ||
} | ||
"ignore": ["node_modules"], | ||
"watch": ["src", ".env.development"], | ||
"ext": "js,json,ts", | ||
"exec": "ts-node --require tsconfig-paths/register src", | ||
"env": { | ||
"TZ": "Asia/Seoul", | ||
"NODE_ENV": "development" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.