# inline-script-disabled

> Disallows the use of inline JavaScript in HTML elements for improved security and maintainability.

Inline script cannot be used.

Level: Warning

## Config value

[Section titled “Config value”](#config-value)

* `true`: enable rule
* `false`: disable rule

### The following patterns are considered violations

[Section titled “The following patterns are considered violations”](#the-following-patterns-are-considered-violations)

```html
<img src="test.gif" onclick="alert(1);">
<img src="javascript:alert(1)">
<a href="javascript:alert(1)">test1</a>
```