-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from samchon/features/esm
Adjust prettier
- Loading branch information
Showing
244 changed files
with
20,802 additions
and
21,266 deletions.
There are no files selected for viewing
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,31 +1,32 @@ | ||
{ | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "TypeScript Test using TS-NODE", | ||
"runtimeArgs": [ | ||
"-r", | ||
"ts-node/register" | ||
], | ||
"args": [ | ||
"${workspaceRoot}/src/test/index.ts" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "JavaScript Test using SourceMap", | ||
"program": "${workspaceRoot}/test/index.js", | ||
"cwd": "${workspaceRoot}", | ||
|
||
// TypeScript | ||
"sourceMaps": true, | ||
"outFiles": ["${workspaceRot}/**.js"] | ||
} | ||
] | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "TypeScript Test using TS-NODE", | ||
"runtimeArgs": [ | ||
"-r", | ||
"ts-node/register" | ||
], | ||
"args": [ | ||
"${workspaceRoot}/src/test/index.ts" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "JavaScript Test using SourceMap", | ||
"program": "${workspaceRoot}/test/index.js", | ||
"cwd": "${workspaceRoot}", | ||
// TypeScript | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRot}/**.js" | ||
] | ||
} | ||
] | ||
} |
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,10 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.formatOnSave": true, | ||
"[typescript][javascript][json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
} | ||
} |
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 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,12 @@ | ||
module.exports = { | ||
parser: "typescript", | ||
printWidth: 80, | ||
semi: true, | ||
tabWidth: 2, | ||
trailingComma: "all", | ||
plugins: [require.resolve("@trivago/prettier-plugin-sort-imports")], | ||
importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"], | ||
importOrderSeparation: true, | ||
importOrderSortSpecifiers: true, | ||
importOrderParserPlugins: ["decorators-legacy", "typescript"], | ||
}; |
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,29 +1,29 @@ | ||
const typescript = require('@rollup/plugin-typescript'); | ||
const terser = require('@rollup/plugin-terser'); | ||
const typescript = require("@rollup/plugin-typescript"); | ||
const terser = require("@rollup/plugin-terser"); | ||
|
||
module.exports = { | ||
input: './src/index.ts', | ||
output: { | ||
dir: 'lib', | ||
format: 'esm', | ||
entryFileNames: '[name].mjs', | ||
sourcemap: true, | ||
}, | ||
plugins: [ | ||
typescript({ | ||
tsconfig: "tsconfig.json", | ||
module: "ES2020", | ||
target: "ES2020", | ||
}), | ||
terser({ | ||
format: { | ||
comments: 'some', | ||
beautify: true, | ||
ecma: '2020', | ||
}, | ||
compress: false, | ||
mangle: false, | ||
module: true, | ||
}), | ||
] | ||
}; | ||
input: "./src/index.ts", | ||
output: { | ||
dir: "lib", | ||
format: "esm", | ||
entryFileNames: "[name].mjs", | ||
sourcemap: true, | ||
}, | ||
plugins: [ | ||
typescript({ | ||
tsconfig: "tsconfig.json", | ||
module: "ES2020", | ||
target: "ES2020", | ||
}), | ||
terser({ | ||
format: { | ||
comments: "some", | ||
beautify: true, | ||
ecma: "2020", | ||
}, | ||
compress: false, | ||
mangle: false, | ||
module: true, | ||
}), | ||
], | ||
}; |
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.