import * as axe from 'axe-core' ; import { exceptionListFilter } from '@sa11y/format' ; import { defaultRuleset } from '@sa11y/preset-rules' ; export { base , extended , full } from '@sa11y/preset-rules' ; export const namespace = 'sa11y' ; param scope - Scope of the analysis as  A11yCheckableContext param rules - preset sa11y rules defaulting to  base param exceptionList - mapping of rule to css selectors to be filtered out using  exceptionListFilter export async function checkAccessibility ( scope = document , rules = defaultRuleset , exceptionList = { } ) { const results = await axe . run ( scope || document , rules ) ; const filteredResults = exceptionListFilter ( results . violations , exceptionList ) ; return JSON . stringify ( filteredResults ) ; }