Skip to content

rule lowercase id with hyphen

Hanxing Yang edited this page Jul 10, 2016 · 1 revision

name

lowercase-id-with-hyphen

description

Id (value of attribute id) should be lowercased words connected with hyphens (- instead of _). If found not, it reports.

sample

<!-- Bad -->
<div id="testId"></div>
<div id="test_id"></div>

<!-- Good -->
<div id="test-id"></div>

code

  • 020

    Id found not lowercased.

  • 021

    Id found connected with _.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

No.

Clone this wiki locally