Skip to content

Commit

Permalink
Add unicorn/string-content rule (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 11, 2020
1 parent ba4efc9 commit 5a22b77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ module.exports = {
}
}
],
'unicorn/string-content': [
'error',
{
patterns: {
[/\.\.\./.source]: '…'
}
}
],

// The character class sorting is a bit buggy at the moment.
'unicorn/better-regex': [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-unicorn": "^17.0.1",
"eslint-plugin-unicorn": "^17.2.0",
"find-cache-dir": "^3.0.0",
"fs-extra": "^8.1.0",
"get-stdin": "^7.0.0",
Expand Down

0 comments on commit 5a22b77

Please sign in to comment.