From 5cb42fe7659befbdf35a447247ec1c16d7962bc5 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 13 Dec 2022 00:45:02 +0530 Subject: [PATCH 1/3] Add `type: module` --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fb77432..bebc3e4 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "author": "Thibaut Lassalle", "license": "MIT", "main": "src/index.js", + "type": "module", "scripts": { "generate_types": "tsc src/*.js --declaration --allowJs --emitDeclarationOnly", "compile_js_as_ts": "tsc src/index.js --AllowJs --checkJs --outDir dist/" @@ -29,4 +30,4 @@ "src/**/*" ], "types": "./src/index.d.ts" -} +} \ No newline at end of file From adee24d580ed61ecf45e6f7c65996249aa65c9d4 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 13 Dec 2022 09:32:00 +0530 Subject: [PATCH 2/3] fix prettier --- .prettierrc | 4 ++++ .prettierrc.js | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .prettierrc delete mode 100644 .prettierrc.js diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..05f4dc1 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "printWidth": 100 +} \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index ac4ac93..0000000 --- a/.prettierrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - singleQuote: true, - printWidth: 100, -}; From 20e360d6fd28353e6d4ba935071b5bcc05959309 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 13 Dec 2022 09:35:32 +0530 Subject: [PATCH 3/3] fix formatting --- .prettierrc | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.prettierrc b/.prettierrc index 05f4dc1..554f2a3 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,4 @@ { - "singleQuote": true, - "printWidth": 100 -} \ No newline at end of file + "singleQuote": true, + "printWidth": 100 +} diff --git a/package.json b/package.json index d6e471b..32035e7 100644 --- a/package.json +++ b/package.json @@ -32,4 +32,4 @@ "src/**/*" ], "types": "./src/index.d.ts" -} \ No newline at end of file +}