Skip to content

Commit

Permalink
svelte: ignore a11y-no-onchange warnings
Browse files Browse the repository at this point in the history
as there is a growing consensus that this rule should be removed
see sveltejs/svelte#4946 (comment)
  • Loading branch information
maxlath committed Aug 10, 2021
1 parent 58fbf91 commit 4b50dd6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bundle/rules/svelte.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ module.exports = mode => {
style: sass({
includePaths: [ 'node_modules' ]
})
}
},
onwarn: (warning, handleWarning) => {
if (!ignoredWarnings.includes(warning.code)) handleWarning(warning)
},
},
}
],
Expand All @@ -34,3 +37,7 @@ module.exports = mode => {
}
]
}

const ignoredWarnings = [
'a11y-no-onchange'
]

0 comments on commit 4b50dd6

Please sign in to comment.