@typescript-eslint/no-unused-vars: 'loadNodeModules' is defined but never used. Allowed unused vars must match /^_/u.
7 | let path: any;
8 |
> 9 | async function loadNodeModules() {
| ^^^^^^^^^^^^^^^
10 | if (typeof window === 'undefined' && !postcss) {
11 | postcss = (await import('postcss')).default;
12 | fs = await import('fs');
ERROR in resources/scripts/blueprint/utility/theme.ts:28:7
prefer-const: 'vars' is never reassigned. Use 'const' instead.
26 | const cssContent = fs.readFileSync(cssFilePath, 'utf8');
27 | const root = postcss.parse(cssContent);
> 28 | let vars: Record<string, string> = {};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 |
30 | root.walkAtRules('import', (rule: any) => {
31 | let importPath = rule.params.replace(/['"]/g, '');
ERROR in resources/scripts/blueprint/utility/theme.ts:104:13
prefer-const: 'value' is never reassigned. Use 'const' instead.
102 |
103 | if (cssVarsCache[cssVarName]) {
> 104 | let value = resolveCssVarValue(cssVarsCache[cssVarName], cssVarsCache);
| ^^^^^
105 |
106 | if (path.startsWith('colors.')) {
107 | return rgbToHex(value);
@typescript-eslint/no-unused-vars: 'loadNodeModules' is defined but never used. Allowed unused vars must match /^_/u.
7 | let path: any;
8 |
> 9 | async function loadNodeModules() {
| ^^^^^^^^^^^^^^^
10 | if (typeof window === 'undefined' && !postcss) {
11 | postcss = (await import('postcss')).default;
12 | fs = await import('fs');
ERROR in resources/scripts/blueprint/utility/theme.ts:28:7
prefer-const: 'vars' is never reassigned. Use 'const' instead.
26 | const cssContent = fs.readFileSync(cssFilePath, 'utf8');
27 | const root = postcss.parse(cssContent);
> 28 | let vars: Record<string, string> = {};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 |
30 | root.walkAtRules('import', (rule: any) => {
31 | let importPath = rule.params.replace(/['"]/g, '');
ERROR in resources/scripts/blueprint/utility/theme.ts:104:13
prefer-const: 'value' is never reassigned. Use 'const' instead.
102 |
103 | if (cssVarsCache[cssVarName]) {
> 104 | let value = resolveCssVarValue(cssVarsCache[cssVarName], cssVarsCache);
| ^^^^^
105 |
106 | if (path.startsWith('colors.')) {
107 | return rgbToHex(value);