12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
|
// Copyright 2022 Signal Messenger, LLC
|
||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
|
import { rule } from '../utils/rule';
|
||
|
|
||
|
export default rule('icuPrefix', context => {
|
||
|
if (!context.messageId.startsWith('icu:')) {
|
||
|
context.report('ICU message IDs must start with "icu:"');
|
||
|
}
|
||
|
return {};
|
||
|
});
|