Catch test.only and suite.only with linter

Change-Id: I7f5e493bc3df034757e01f15b8503523de896879
This commit is contained in:
Kasper Nilsson 2017-08-18 15:53:43 -07:00
parent cf830b86b0
commit 0c04562e3f

View File

@ -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",