Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: eslint rule to disallow Unicode quotes
Fixes: #11209
  • Loading branch information
Sarat Addepalli committed Jan 4, 2018
commit 92d18fe82dafad6e4b0a57e9c61b79b04cabfbe3
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