This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
forked from aurelia/template-lint
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add detail messages to config options
- Loading branch information
1 parent
afed9a7
commit 164690f
Showing
4 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {Rule} from 'template-lint'; | ||
import {ConflictingAttributesRule} from './conflictingattributes'; | ||
|
||
|
||
export class Config { | ||
obsoleteTags: Array<{ tag: string, msg: string }> = [ | ||
{ | ||
tag: 'content', | ||
msg: 'use slot instead' | ||
} | ||
]; | ||
|
||
obsoleteAttributes: Array<{ name: string, tag: string, msg: string }> = [ | ||
{ | ||
name: "replaceable", | ||
tag: "template", | ||
msg: "'replaceable' on template has been superceded by the slot element" | ||
} | ||
]; | ||
|
||
conflictingAttributes: Array<{ tags: string[], msg: string }> = [ | ||
{ | ||
tags: ["repeat.for", "if.bind", "with.bind"], | ||
msg: "template controllers shouldn't be placed to the same element" | ||
} | ||
]; | ||
|
||
voids: Array<string> = ['area', 'base', 'br', 'col', 'embed', 'hr', | ||
'img', 'input', 'keygen', 'link', 'meta', | ||
'param', 'source', 'track', 'wbr']; | ||
|
||
scopes: Array<string> = ['html', 'body', 'template', 'svg', 'math']; | ||
containers: Array<string> = ['table', 'select']; | ||
customRules: Rule[] = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters