Jelajahi Sumber

update tsconfig paths

Yuki Takei 5 tahun lalu
induk
melakukan
3a1970f48f
2 mengubah file dengan 5 tambahan dan 7 penghapusan
  1. 4 6
      .vscode/settings.json
  2. 1 1
      packages/growi-bot-proxy/tsconfig.base.json

+ 4 - 6
.vscode/settings.json

@@ -1,10 +1,9 @@
 {
 {
-  // 既定の改行文字。LF の場合には \n を CRLF の場合には \r\n を使用してください。
   "files.eol": "\n",
   "files.eol": "\n",
-  // 指定した構文に対してプロファイルを定義するか、特定の規則がある独自のプロファイルをご使用ください。
-  "emmet.syntaxProfiles": {
-    "javascript": "jsx"
-  },
+
+  "eslint.workingDirectories": [
+    "./packages/growi-bot-proxy"
+  ],
 
 
   // use stylelint-plus
   // use stylelint-plus
   // see https://qiita.com/y-w/items/bd7f11013fe34b69f0df#vs-code%E3%81%A8%E7%B5%84%E3%81%BF%E5%90%88%E3%82%8F%E3%81%9B%E3%82%8B
   // see https://qiita.com/y-w/items/bd7f11013fe34b69f0df#vs-code%E3%81%A8%E7%B5%84%E3%81%BF%E5%90%88%E3%82%8F%E3%81%9B%E3%82%8B
@@ -16,7 +15,6 @@
   "[scss]": {
   "[scss]": {
     "editor.formatOnSave": true
     "editor.formatOnSave": true
   },
   },
-  "stylelint.autoFixOnSave": true,
 
 
   // for vscode-eslint
   // for vscode-eslint
   "[javascript]": {
   "[javascript]": {

+ 1 - 1
packages/growi-bot-proxy/tsconfig.base.json

@@ -23,7 +23,7 @@
     "baseUrl": ".",
     "baseUrl": ".",
     "paths": {
     "paths": {
       "~/*": ["src/*"],
       "~/*": ["src/*"],
-      // "^/*": ["../../*"],
+      "^/*": ["../../*"],
     },
     },
     "typeRoots": [
     "typeRoots": [
       "../../node_modules/@types",
       "../../node_modules/@types",