aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-03-26 19:04:51 +0300
committerValentin Popov <info@valentineus.link>2020-03-26 19:04:51 +0300
commita40468c437f05bb9d974250de2d433611037d588 (patch)
tree732f3cdf0636878d1dcc7aee6e2d15963f8db3e0
parentd604a6f373397e4dae70cb38e1183cad6f90a162 (diff)
downloadeslint-config-a40468c437f05bb9d974250de2d433611037d588.tar.xz
eslint-config-a40468c437f05bb9d974250de2d433611037d588.zip
Updated Unicorn to v18.0.0
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md3
-rw-r--r--package.json4
-rw-r--r--src/rules/unicorn/default.json9
-rw-r--r--yarn.lock53
4 files changed, 27 insertions, 42 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 6e21048..4ab6b9c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -507,9 +507,11 @@
- [ ] "prefer-negative-index"
- [ ] "prefer-node-append"
- [ ] "prefer-node-remove"
+- [X] "prefer-number-properties"
- [ ] "prefer-query-selector"
- [ ] "prefer-reflect-apply"
- [ ] "prefer-replace-all"
+- [X] "prefer-set-has"
- [ ] "prefer-spread"
- [ ] "prefer-starts-ends-with"
- [ ] "prefer-string-slice"
@@ -517,7 +519,6 @@
- [ ] "prefer-trim-start-end"
- [ ] "prefer-type-error"
- [X] "prevent-abbreviations"
-- [ ] "regex-shorthand"
- [ ] "throw-new-error"
## Vue
diff --git a/package.json b/package.json
index 1ecdd14..37b6584 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
- "eslint-plugin-unicorn": "^16.1.1",
+ "eslint-plugin-unicorn": "^18.0.0",
"eslint-plugin-vue": "^6.2.1",
"rollup": "^1.31.1",
"rollup-plugin-terser": "^5.2.0",
@@ -35,7 +35,7 @@
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
- "eslint-plugin-unicorn": "^16.1.1",
+ "eslint-plugin-unicorn": "^18.0.0",
"eslint-plugin-vue": "^6.1.2"
},
"dependencies": {}
diff --git a/src/rules/unicorn/default.json b/src/rules/unicorn/default.json
index 7a7dc1b..bb3abab 100644
--- a/src/rules/unicorn/default.json
+++ b/src/rules/unicorn/default.json
@@ -11,6 +11,12 @@
"unicorn/no-console-spaces": [
"error"
],
+ "unicorn/prefer-number-properties": [
+ "error"
+ ],
+ "unicorn/prefer-set-has": [
+ "error"
+ ],
"unicorn/prevent-abbreviations": [
"error",
{
@@ -25,5 +31,8 @@
"replacements": {},
"whitelist": {}
}
+ ],
+ "unicorn/string-content": [
+ "error"
]
}
diff --git a/yarn.lock b/yarn.lock
index 5a3a87a..eb928f7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -431,27 +431,22 @@ eslint-plugin-sonarjs@^0.5.0:
resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz#ce17b2daba65a874c2862213a9e38e8986ad7d7d"
integrity sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==
-eslint-plugin-unicorn@^16.1.1:
- version "16.1.1"
- resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-16.1.1.tgz#012c598d71914ef30f5d386dd85110e59f2ef999"
- integrity sha512-IMxCsntb0T8s660Irc40gtzXtxuXHcOn36G9G8OYKfiseBD/kNrA1cNJhsJ0xQteDASGrFwqdzBsYEkUvczhOA==
+eslint-plugin-unicorn@^18.0.0:
+ version "18.0.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-18.0.0.tgz#94a8477d47f4d25fc931a27658dff44c0fcbc192"
+ integrity sha512-2mk3Cz6H2LCsKSEmJ7Wmqm/XbMAQ55+PjSBFM2Yh1/A7uk2gryNNhdfbFDycsjs/ylqk0m7LJ4qPpK9OlP8f9A==
dependencies:
ci-info "^2.0.0"
clean-regexp "^1.0.0"
eslint-ast-utils "^1.1.0"
eslint-template-visitor "^1.1.0"
import-modules "^2.0.0"
- lodash.camelcase "^4.3.0"
- lodash.defaultsdeep "^4.6.1"
- lodash.kebabcase "^4.1.1"
- lodash.snakecase "^4.1.1"
- lodash.upperfirst "^4.3.1"
+ lodash "^4.17.15"
read-pkg-up "^7.0.1"
- regexp-tree "^0.1.17"
- regexpp "^3.0.0"
+ regexp-tree "^0.1.21"
reserved-words "^0.1.2"
safe-regex "^2.1.1"
- semver "^7.1.2"
+ semver "^7.1.3"
eslint-plugin-vue@^6.2.1:
version "6.2.1"
@@ -929,36 +924,11 @@ locate-path@^5.0.0:
dependencies:
p-locate "^4.1.0"
-lodash.camelcase@^4.3.0:
- version "4.3.0"
- resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
- integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY=
-
-lodash.defaultsdeep@^4.6.1:
- version "4.6.1"
- resolved "https://registry.yarnpkg.com/lodash.defaultsdeep/-/lodash.defaultsdeep-4.6.1.tgz#512e9bd721d272d94e3d3a63653fa17516741ca6"
- integrity sha512-3j8wdDzYuWO3lM3Reg03MuQR957t287Rpcxp1njpEa8oDrikb+FwGdW3n+FELh/A6qib6yPit0j/pv9G/yeAqA==
-
lodash.get@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=
-lodash.kebabcase@^4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"
- integrity sha1-hImxyw0p/4gZXM7KRI/21swpXDY=
-
-lodash.snakecase@^4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d"
- integrity sha1-OdcUo1NXFHg3rv1ktdy7Fr7Nj40=
-
-lodash.upperfirst@^4.3.1:
- version "4.3.1"
- resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce"
- integrity sha1-E2Xt9DFIBIHvDRxolXpe2Z1J984=
-
lodash.zip@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020"
@@ -1256,7 +1226,12 @@ read-pkg@^5.2.0:
parse-json "^5.0.0"
type-fest "^0.6.0"
-regexp-tree@^0.1.17, regexp-tree@~0.1.1:
+regexp-tree@^0.1.21:
+ version "0.1.21"
+ resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.21.tgz#55e2246b7f7d36f1b461490942fa780299c400d7"
+ integrity sha512-kUUXjX4AnqnR8KRTCrayAo9PzYMRKmVoGgaz2tBuz0MF3g1ZbGebmtW0yFHfFK9CmBjQKeYIgoL22pFLBJY7sw==
+
+regexp-tree@~0.1.1:
version "0.1.19"
resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.19.tgz#9326e91d8d1d23298dd33a78cf5e788f57cdc359"
integrity sha512-mVeVLF/qg5qFbZSW0f7pXbuVX73dKIjuhOyC2JLKxzmpya75O4qLcvI9j0jp31Iz7IAkEVHa1UErDCAqaLKo5A==
@@ -1378,7 +1353,7 @@ semver@^6.1.2, semver@^6.3.0:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
-semver@^7.1.2:
+semver@^7.1.3:
version "7.1.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.1.3.tgz#e4345ce73071c53f336445cfc19efb1c311df2a6"
integrity sha512-ekM0zfiA9SCBlsKa2X1hxyxiI4L3B6EbVJkkdgQXnSEEaHlGdvyodMruTiulSRWMMB4NeIuYNMC9rTKTz97GxA==