Skip to content

rule style disabled

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

name

style-disabled

description

<style> should not be used, while using individual CSS file (<link rel="stylesheet">) instead will improve maintainability. If <style> found, it reports.

sample

<!-- Bad -->
<style>
    body {
        color: #333;
    }
</style>

<!-- Good -->
<link rel="stylesheet" src="./main.css">

code

  • 034

    <style> found.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

No.

Clone this wiki locally