<commit_before>eslint-plugin-html
==================

[![Build Status](https://travis-ci.org/BenoitZugmeyer/eslint-plugin-html.svg?branch=master)](https://travis-ci.org/BenoitZugmeyer/eslint-plugin-html)

This [`ESLint`](http://eslint.org) plugin extracts and lints scripts from HTML files.

Supported HTML extensions:

* .erb
* .handelbars
* .hbs
* .htm
* .html
* .mustache
* .php
* .tag
* .twig
* .vue
* .we

Supported XHTML extensions:

* .xhtml
* .xml

Only script tags with no type attribute or a type attribute containing a MIME type known to
represent JavaScript such as `text/javascript` or `application/javascript`, or `text/babel` will be
linted.


Usage
-----

Simply install via npm `npm install eslint-plugin-html --save` add the plugin to your ESLint<commit_msg>add nunjucks extension to the README<commit_after>eslint-plugin-html
==================

[![Build Status](https://travis-ci.org/BenoitZugmeyer/eslint-plugin-html.svg?branch=master)](https://travis-ci.org/BenoitZugmeyer/eslint-plugin-html)

This [`ESLint`](http://eslint.org) plugin extracts and lints scripts from HTML files.

Supported HTML extensions:

* .erb
* .handelbars
* .hbs
* .htm
* .html
* .mustache
* .nunjucks
* .php
* .tag
* .twig
* .vue
* .we

Supported XHTML extensions:

* .xhtml
* .xml

Only script tags with no type attribute or a type attribute containing a MIME type known to
represent JavaScript such as `text/javascript` or `application/javascript`, or `text/babel` will be
linted.


Usage
-----

Simply install via npm `npm install eslint-plugin-html --save` add the plugin to your ESLint
{'fraction_non_alphanumeric': 0.14492753623188406, 'fraction_numerical': 0.0, 'mean_word_length': 4.172638436482084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1809013', 'n_tokens_mistral': 550, 'n_tokens_neox': 531, 'n_words': 157}