Skip to content

Commit

Permalink
tools: eslint rule to disallow Unicode quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
SirR4T committed Jan 4, 2018
1 parent f89ee06 commit 92d18fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ rules:
}, {
selector: "ThrowStatement > CallExpression[callee.name=/Error$/]",
message: "Use new keyword when throwing an Error."
}, {
selector: "Literal[value=/\u2019/]",
message: "use an ASCII single quote (`'`) instead of a Unicode quote (`\u2019`)"
}, {
selector: "Literal[value=/[“”«»]/]",
message: "use an ASCII double quote (`\"`) instead of a Unicode double quote (`“`, `”`, `«`, `»`)"
}]
no-tabs: error
no-trailing-spaces: error
Expand Down

0 comments on commit 92d18fe

Please sign in to comment.