Files
Desktop/ts/util/lint/sort_exceptions.ts
2025-09-16 17:39:03 -07:00

13 lines
395 B
TypeScript

// Copyright 2018 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { join } from 'node:path';
import type { ExceptionType } from './types.js';
import { loadJSON, writeExceptions } from './util.js';
const exceptionsPath = join(__dirname, 'exceptions.json');
const exceptions: Array<ExceptionType> = loadJSON(exceptionsPath);
writeExceptions(exceptionsPath, exceptions);