Skip to content

Commit c6a578e

Browse files
committed
fix: relative path bug for license header file
1 parent 24d1a59 commit c6a578e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

eslint.config.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ const gitignorePath = fileURLToPath(
3737
),
3838
);
3939

40+
const licenseHeaderPath = fileURLToPath(
41+
new URL(
42+
'licenseHeader.js',
43+
import.meta.url,
44+
),
45+
);
46+
4047
export default defineConfig(
4148
includeIgnoreFile(gitignorePath, 'Imported .gitignore patterns'),
4249
{
@@ -186,7 +193,7 @@ export default defineConfig(
186193
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
187194
plugins: { 'license-header': licenseHeader },
188195
rules: {
189-
'license-header/header': ['error', './licenseHeader.js'],
196+
'license-header/header': ['error', licenseHeaderPath],
190197
},
191198
ignores: ['**/licenseHeader.js'],
192199
},

0 commit comments

Comments
 (0)