Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 4b50dd6

Browse files
committed
svelte: ignore a11y-no-onchange warnings
as there is a growing consensus that this rule should be removed see sveltejs/svelte#4946 (comment)
1 parent 58fbf91 commit 4b50dd6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bundle/rules/svelte.cjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module.exports = mode => {
1919
style: sass({
2020
includePaths: [ 'node_modules' ]
2121
})
22-
}
22+
},
23+
onwarn: (warning, handleWarning) => {
24+
if (!ignoredWarnings.includes(warning.code)) handleWarning(warning)
25+
},
2326
},
2427
}
2528
],
@@ -34,3 +37,7 @@ module.exports = mode => {
3437
}
3538
]
3639
}
40+
41+
const ignoredWarnings = [
42+
'a11y-no-onchange'
43+
]

0 commit comments

Comments
 (0)