fileoverview import { HintContext , IHint } from 'hint' ; import { debug as d } from '@hint/utils-debug' ; import { Severity } from '@hint/utils-types' ; import { WebpackConfigEvents } from '@hint/parser-webpack-config' ; import meta from './meta/is-installed' ; import { getMessage } from './i18n.import' ; const debug = d ( __filename ) ; export default class WebpackConfigIsInstalled implements IHint { public static readonly meta = meta ; public constructor ( context ) { const notInstall = ( ) => { debug ( `'parse::error::webpack-config::not-install' received` ) ; context . report ( '' , getMessage ( 'isInstalled' , context . language ) , { severity : Severity . warning } ) ; } ; context . on ( 'parse::error::webpack-config::not-install' , notInstall ) ; } }