mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 21:53:18 +00:00
Rename files
This commit is contained in:
17
build/intl-linter/rules/noLegacyVariables.std.ts
Normal file
17
build/intl-linter/rules/noLegacyVariables.std.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { rule } from '../utils/rule.std.js';
|
||||
|
||||
export default rule('noLegacyVariables', context => {
|
||||
return {
|
||||
enterLiteral(element) {
|
||||
if (/(\$.+?\$)/.test(element.value)) {
|
||||
context.report(
|
||||
'String must not contain legacy $variables$',
|
||||
element.location
|
||||
);
|
||||
}
|
||||
},
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user