mirror of
https://github.com/github/codeql-action.git
synced 2025-12-23 07:40:10 +08:00
Regenerating node_modules
This commit is contained in:
23
node_modules/eslint-plugin-github/lib/rules/no-d-none.js
generated
vendored
Normal file
23
node_modules/eslint-plugin-github/lib/rules/no-d-none.js
generated
vendored
Normal 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'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user