2
0

fix: rename stylelint.config.ts to .mjs for jiti compatibility
All checks were successful
Build and Release / Create Release (push) Successful in 1s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m34s
Build and Release / Lint (push) Successful in 3m54s
Build and Release / Unit Tests (push) Successful in 3m59s
Build and Release / Build Binaries (amd64, darwin, linux-latest) (push) Successful in 3m0s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 3m22s
Build and Release / Build Binaries (arm64, linux, linux-latest) (push) Successful in 3m49s
Build and Release / Build Binaries (arm64, darwin, linux-latest) (push) Successful in 3m57s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h5m11s

This commit is contained in:
2026-01-17 09:39:31 -05:00
parent d612bca9ff
commit 5dce758d37

View File

@@ -1,12 +1,12 @@
import {fileURLToPath} from 'node:url';
import path from 'node:path';
import type {Config} from 'stylelint';
// Use import.meta.dirname for reliable path resolution in ESM context
// This gives us the directory where this config file lives (project root)
// Use fileURLToPath for ESM compatibility
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const cssVarFiles = [
path.join(import.meta.dirname, 'web_src/css/base.css'),
path.join(import.meta.dirname, 'web_src/css/themes/theme-gitea-light.css'),
path.join(import.meta.dirname, 'web_src/css/themes/theme-gitea-dark.css'),
path.join(__dirname, 'web_src/css/base.css'),
path.join(__dirname, 'web_src/css/themes/theme-gitea-light.css'),
path.join(__dirname, 'web_src/css/themes/theme-gitea-dark.css'),
];
export default {
@@ -148,4 +148,4 @@ export default {
'shorthand-property-no-redundant-values': true,
'value-no-vendor-prefix': [true, {ignoreValues: ['box', 'inline-box']}],
},
} satisfies Config;
};