import { defineRule } from '../rule'
export default defineRule({
  meta: {
    id: 'no-hidden-layers',
    category: 'structure',
    description: 'Hidden layers may indicate unused elements'
  },
  check(node, context) {
    if (!node.visible)
      context.report({
        node,
        message: 'Hidden layer detected',
        suggest: 'Delete if unused or keep only if required for component states'
      })
  }
})
