Skip to content

Commit

Permalink
chore: Don't allow string literals in IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Sep 30, 2018
1 parent 0fe7d08 commit 346788c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,12 @@ module.exports = {
},
{
selector: 'CallExpression[callee.object.name="page"][callee.property.name="waitFor"]',
message: 'Prefer page.waitForSelector instead.'
}
message: 'Prefer page.waitForSelector instead.',
},
{
selector: 'JSXAttribute[name.name="id"][value.type="Literal"]',
message: 'Do not use string literals for IDs; use withInstanceId instead.',
},
],
},
overrides: [
Expand Down

0 comments on commit 346788c

Please sign in to comment.