lit-html support for ESLint.
Note: experimental, may change quite a bit.
$ npm i -D eslint eslint-plugin-lit
Add lit
to the plugins section of your .eslintrc
file:
{
"plugins": ["lit"]
}
Configure your rules like so:
{
"rules": {
"lit/rule-name": "error"
}
}
You may also extend the recommended configuration like so:
{
"extends": ["plugin:lit/recommended"],
"env": {"browser": true}
}
- lit/attribute-value-entities
- lit/binding-positions
- lit/no-duplicate-template-bindings
- lit/no-invalid-escape-sequences
- lit/no-invalid-html
- lit/no-legacy-template-syntax
- lit/no-private-properties
- lit/no-property-change-update
- lit/no-template-arrow
- lit/no-template-bind
- lit/no-template-map
- lit/no-useless-template-literals
- lit/no-value-attribute