fileoverview import { HintContext , IHint } from 'hint' ; import { Severity } from '@hint/utils-types' ; import { TypeScriptConfigEvents } from '@hint/parser-typescript-config' ; import { configChecker } from './helpers/config-checker' ; import meta from './meta/strict' ; export default class TypeScriptConfigStrict implements IHint { public static readonly meta = meta ; public constructor ( context ) { const validate = configChecker ( 'compilerOptions.strict' , true , 'strict' , context , Severity . error ) ; context . on ( 'parse::end::typescript-config' , validate ) ; } }