In general, customized riot's
tag
files linter with a couple of custom rules.
npm install eslint-plugin-peopleai
Inside of your .eslintrc
{
"plugins": [ "peopleai" ],
"rules" : {
"peopleai/root-context-name-tag" : 2
}
}
root-context-name-tag
- name of the root context assignment should betag
( var tag = this; )
Root scope identifier should be named as tag (peopleai/root-context-name-tag)
- html general checks
- no text inside of a tag
- plugins nesting
MIT (c) Svetlana Linuxenko