github-pages-deploy-action/node_modules/eslint-plugin-github/lib/rules/no-dataset.js
2020-03-31 08:42:07 -04: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.")
}
}
}
}
}