webhook-action/node_modules/eslint-plugin-github/lib/rules/no-dataset.js
2020-08-26 09:57:08 +10:00

17 lines
317 B
JavaScript

module.exports = {
meta: {
docs: {},
schema: []
},
create(context) {
return {
MemberExpression(node) {
if (node.property && node.property.name === 'dataset') {
context.report(node, "Use getAttribute('data-your-attribute') instead of dataset.")
}
}
}
}
}