How to exclude specific rules from the default presets?
I didn't find a way to exclude specific rules, so I tried to configure the plugin to use only the standard preset, following what is shown here:
const htmlvalidate = require('cypress-html-validate/dist/plugin');
module.exports = (on, config) => {
const htmlConfig = { extends: ['html-validate:standard'] }
const htmlOptions = { include: ['body'] }
htmlvalidate.install(on, htmlConfig, htmlOptions);
...
}
It does not seem to have any effect: in particular the prefer-native-element
rule (which is excluded from that preset) is still applied.
Is the html-validate:standard
just added to the extends
array instead of being used in place of it?
Bottom line, how can I configure the plugin in order to exclude certain rules?
Thanks