这是indexloc提供的服务,不要输入任何密码
Skip to content

[FEATURE] Add no-ineffective-attrs rule #346

@yeonjuan

Description

@yeonjuan

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

This rule reports HTML attributes that are either redundant, ineffective, or invalid in their context.

Additional context

<!-- ❌ "defer" has no effect on inline scripts -->
<script defer>console.log('inline');</script>

<!-- ❌ Invalid context -->
<div autocomplete="off"></div>
<select readonly></select>
<input type="text" multiple>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions