From 52cb1767dff7ad383278bf7858b6b619ca16fd76 Mon Sep 17 00:00:00 2001 From: Thomas Lindner <5178550+tclindner@users.noreply.github.com> Date: Sat, 12 Mar 2022 20:36:44 -0600 Subject: [PATCH] Export rules class and rule interface (#598) * Export rules class and rule interface * Update api.ts * Update api.test.ts --- src/api.ts | 2 ++ test/unit/api.test.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/api.ts b/src/api.ts index c6265413..5b17df85 100644 --- a/src/api.ts +++ b/src/api.ts @@ -9,3 +9,5 @@ export {LinterResult} from './linter/linter'; export {PackageJsonFileLintingResult} from './types/package-json-linting-result'; export {PackageJsonFileAggregatedResultCounts, OverallAggregatedResultCounts} from './linter/results-helper'; + +export {Rules, Rule} from './native-rules'; diff --git a/test/unit/api.test.ts b/test/unit/api.test.ts index 8ff505c8..a8fd95dc 100644 --- a/test/unit/api.test.ts +++ b/test/unit/api.test.ts @@ -34,4 +34,8 @@ describe('api Unit Tests', () => { test('OverallAggregatedResultCounts should be exported', () => { expect(api).not.toHaveProperty('OverallAggregatedResultCounts'); }); + + test('Rules should be exported', () => { + expect(api).toHaveProperty('Rules'); + }); });