Skip to content

Commit 1c17bae

Browse files
authoredDec 6, 2022
fix(xo): linting problems (#183)
* refactor: added further necessary declarations * fix(xo): linting problems * Restore .editorconfig
1 parent 0f7ce79 commit 1c17bae

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed
 

‎scripts/tailwind-config-generator.mjs

+10-14
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
import * as process from 'node:process';
66
import * as fs from 'node:fs';
77

8-
const run = async () => {
9-
const defaultConfig = process.argv[2];
8+
const defaultConfig = process.argv[2];
109

11-
const internal = process.argv[3];
10+
const internal = process.argv[3];
1211

13-
let configFile = `
12+
let configFile = `
1413
const tokens = require('${
1514
internal ? './' : '@db-ui/base/build/tailwind/'
1615
}tailwind-tokens.json')
@@ -35,14 +34,11 @@ const run = async () => {
3534
};
3635
`;
3736

38-
if (defaultConfig === 'default') {
39-
configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')`;
40-
}
37+
if (defaultConfig === 'default') {
38+
configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')`;
39+
}
4140

42-
fs.writeFileSync(
43-
`${internal ? './build/tailwind' : '.'}/tailwind.config.js`,
44-
configFile
45-
);
46-
};
47-
48-
run();
41+
await fs.writeFileSync(
42+
`${internal ? './build/tailwind' : '.'}/tailwind.config.js`,
43+
configFile
44+
);

0 commit comments

Comments
 (0)
Please sign in to comment.