From 099f5d11f8ca4fa5add201802e7e2957174ba6cc Mon Sep 17 00:00:00 2001 From: Nicolas Long Date: Thu, 27 Aug 2020 14:41:03 +0100 Subject: [PATCH 1/5] Add editor config --- .editorconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..79da246 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +; This file is for unifying the coding style for different editors and IDEs +; See editorconfig.org + +; top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[package.json] +indent_size = 2 \ No newline at end of file From 7e3a683bc20dcbce08e176a6d2546bfd8d16d011 Mon Sep 17 00:00:00 2001 From: Nicolas Long Date: Thu, 27 Aug 2020 14:41:30 +0100 Subject: [PATCH 2/5] Export Format as type This avoids errors with the -isolatedModules TS config flag. --- Format.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Format.ts b/Format.ts index 8e9caff..ddfa2c2 100644 --- a/Format.ts +++ b/Format.ts @@ -45,6 +45,7 @@ interface Format { export { Pillar, Design, - Display, - Format, -} + Display +}; + +export type { Format }; From 6c5ba9c72d758e76a98c9bc4ce6f4622a7143c09 Mon Sep 17 00:00:00 2001 From: Nicolas Long Date: Thu, 27 Aug 2020 14:44:51 +0100 Subject: [PATCH 3/5] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f6b4078..1fabf7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@guardian/types", - "version": "0.4.3", + "version": "0.4.4", "description": "A place for types", "main": "index.js", "scripts": { From ae656e98d159dcccb1e993731befefa7925581b0 Mon Sep 17 00:00:00 2001 From: "nic.long" Date: Thu, 27 Aug 2020 15:35:18 +0100 Subject: [PATCH 4/5] Format fix Co-authored-by: Jamie B <53781962+JamieB-gu@users.noreply.github.com> --- Format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Format.ts b/Format.ts index ddfa2c2..96bb682 100644 --- a/Format.ts +++ b/Format.ts @@ -45,7 +45,7 @@ interface Format { export { Pillar, Design, - Display + Display, }; export type { Format }; From 61cf137cd1fcbc4481e90bc3125dcf20c4927c3d Mon Sep 17 00:00:00 2001 From: Nicolas Long Date: Mon, 7 Sep 2020 11:51:47 +0100 Subject: [PATCH 5/5] Bump package lock version --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 80e94bd..17f7ba6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@guardian/types", - "version": "0.4.3", + "version": "0.4.4", "lockfileVersion": 1, "requires": true, "dependencies": {