From 0b3da72b934173ba16ac2db1ffd0cd84864d316b Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Tue, 28 Nov 2017 20:25:44 +0100 Subject: [PATCH] revert breaking change introduced in #3433 (#3477) Restores the removed export `CONFIG_FILENAME` to avoid breaking API users. Ref: https://github.com/palantir/tslint/pull/3433#discussion_r150042495 [no-log] --- src/configuration.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/configuration.ts b/src/configuration.ts index e85c933a23f..e2b49d75efa 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -68,6 +68,8 @@ export interface IConfigurationLoadResult { // Note: eslint prefers yaml over json, while tslint prefers json over yaml // for backward-compatibility. export const JSON_CONFIG_FILENAME = "tslint.json"; +/** @deprecated use `JSON_CONFIG_FILENAME` or `CONFIG_FILENAMES` instead. */ +export const CONFIG_FILENAME = JSON_CONFIG_FILENAME; export const CONFIG_FILENAMES = [JSON_CONFIG_FILENAME, "tslint.yaml", "tslint.yml"]; export const DEFAULT_CONFIG: IConfigurationFile = {