github-pages-deploy-action/node_modules/eslint-plugin-github/lib/rules/no-dataset.js

17 lines
317 B
JavaScript
Raw Normal View History

2020-03-31 20:42:07 +08:00
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.")
}
}
}
}
}