Skip to content

Commit 5a22b77

Browse files
authoredMar 11, 2020
Add unicorn/string-content rule (#439)
1 parent ba4efc9 commit 5a22b77

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

Diff for: ‎config/plugins.js

+8
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ module.exports = {
113113
}
114114
}
115115
],
116+
'unicorn/string-content': [
117+
'error',
118+
{
119+
patterns: {
120+
[/\.\.\./.source]: '…'
121+
}
122+
}
123+
],
116124

117125
// The character class sorting is a bit buggy at the moment.
118126
'unicorn/better-regex': [

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"eslint-plugin-node": "^11.0.0",
6969
"eslint-plugin-prettier": "^3.1.2",
7070
"eslint-plugin-promise": "^4.2.1",
71-
"eslint-plugin-unicorn": "^17.0.1",
71+
"eslint-plugin-unicorn": "^17.2.0",
7272
"find-cache-dir": "^3.0.0",
7373
"fs-extra": "^8.1.0",
7474
"get-stdin": "^7.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.