refactor: migrate environment to BUILD_CONFIG (#8206)

This commit is contained in:
forehalo committed 2024-09-13 07:58:20 +00:00
1 parent 561f96bb71
commit a387e4ac07
90 files changed
+297 -260

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ const createPattern = packageName => [
{
group: ['@affine/env/constant'],
message:
'Do not import from @affine/env/constant. Use `environment.isElectron` instead',
'Do not import from @affine/env/constant. Use `BUILD_CONFIG.isElectron` instead',
importNames: ['isElectron'],
},
];