Catch test.only and suite.only with linter
Change-Id: I7f5e493bc3df034757e01f15b8503523de896879
This commit is contained in:
@@ -43,6 +43,17 @@
|
|||||||
],
|
],
|
||||||
"new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }],
|
"new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }],
|
||||||
"no-console": "off",
|
"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-undef": "off",
|
||||||
"no-useless-escape": "off",
|
"no-useless-escape": "off",
|
||||||
"no-var": "error",
|
"no-var": "error",
|
||||||
|
Reference in New Issue
Block a user