Regenerating node_modules

This commit is contained in:
Chris Raynor
2020-09-14 10:42:37 +01:00
parent 09b4a82c83
commit c96f84308a
5488 changed files with 487362 additions and 60779 deletions

View File

@@ -0,0 +1,23 @@
module.exports = {
create(context) {
return {
CallExpression(node) {
if (
node.callee.type === 'MemberExpression' &&
node.callee.object.property &&
node.callee.object.property.name === 'classList'
) {
const invalidArgument = node.arguments.some(arg => {
return arg.type === 'Literal' && arg.value === 'd-none'
})
if (invalidArgument) {
context.report({
node,
message: 'Prefer hidden property to d-none class'
})
}
}
}
}
}
}