Catch test.only and suite.only with linter
Change-Id: I7f5e493bc3df034757e01f15b8503523de896879
This commit is contained in:
parent
cf830b86b0
commit
0c04562e3f
@ -43,6 +43,17 @@
|
||||
],
|
||||
"new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }],
|
||||
"no-console": "off",
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "ExpressionStatement > CallExpression > MemberExpression[object.name='test'][property.name='only']",
|
||||
"message": "Remove test.only."
|
||||
},
|
||||
{
|
||||
"selector": "ExpressionStatement > CallExpression > MemberExpression[object.name='suite'][property.name='only']",
|
||||
"message": "Remove suite.only."
|
||||
}
|
||||
],
|
||||
"no-undef": "off",
|
||||
"no-useless-escape": "off",
|
||||
"no-var": "error",
|
||||
|
Loading…
Reference in New Issue
Block a user