From e5a50b92e3bd12e6e67b83eeca19ef03bee9cb3a Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 5 Dec 2022 14:32:32 +0100 Subject: [PATCH 1/3] refactor: added further necessary declarations --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 84653c799..0e0572b75 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true -[*.js] +[*.{js,jsx,ts,tsx,mjs}] quote_type = single [package.json] @@ -21,6 +21,6 @@ quote_type = single indent_size = 2 indent_style = space -[{*.yaml,*.yml}] +[*.{yaml,yml,md}] indent_style = space indent_size = 2 From 2d546d1d74113fa3cd73a9e6850ea48ae9b7a376 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Mon, 5 Dec 2022 17:44:21 +0100 Subject: [PATCH 2/3] fix(xo): linting problems --- scripts/tailwind-config-generator.mjs | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/scripts/tailwind-config-generator.mjs b/scripts/tailwind-config-generator.mjs index 6b272e73e..a89e43e2d 100644 --- a/scripts/tailwind-config-generator.mjs +++ b/scripts/tailwind-config-generator.mjs @@ -5,12 +5,11 @@ import * as process from 'node:process'; import * as fs from 'node:fs'; -const run = async () => { - const defaultConfig = process.argv[2]; +const defaultConfig = process.argv[2]; - const internal = process.argv[3]; +const internal = process.argv[3]; - let configFile = ` +let configFile = ` const tokens = require('${ internal ? './' : '@db-ui/base/build/tailwind/' }tailwind-tokens.json') @@ -35,14 +34,11 @@ const run = async () => { }; `; - if (defaultConfig === 'default') { - configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')`; - } +if (defaultConfig === 'default') { + configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')`; +} - fs.writeFileSync( - `${internal ? './build/tailwind' : '.'}/tailwind.config.js`, - configFile - ); -}; - -run(); +await fs.writeFileSync( + `${internal ? './build/tailwind' : '.'}/tailwind.config.js`, + configFile +); From 0227f2a0fd6823d60f836251f6b816fc310062b3 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 5 Dec 2022 17:48:05 +0100 Subject: [PATCH 3/3] Restore .editorconfig --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0e0572b75..84653c799 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true -[*.{js,jsx,ts,tsx,mjs}] +[*.js] quote_type = single [package.json] @@ -21,6 +21,6 @@ quote_type = single indent_size = 2 indent_style = space -[*.{yaml,yml,md}] +[{*.yaml,*.yml}] indent_style = space indent_size = 2