Skip to content

Commit

Permalink
chore(deps): update dependency eslint-config-standard to v15 (#375)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint-config-standard to v15

* style: fix lint error

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: wxsm <wxsms@foxmail.com>
  • Loading branch information
3 people committed Oct 22, 2020
1 parent de2abb4 commit 719c6b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"cross-env": "7.0.2",
"es6-object-assign": "1.1.0",
"eslint": "7.11.0",
"eslint-config-standard": "14.1.1",
"eslint-config-standard": "15.0.0",
"eslint-plugin-html": "6.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
Expand Down
12 changes: 8 additions & 4 deletions src/components/datepicker/DateView.js
Expand Up @@ -89,10 +89,14 @@ export default {
beforeTo = dateObj < this.limit.to
}
date.disabled = !afterFrom || !beforeTo
date.classes = isFunction(this.dateClass) ? this.dateClass(dateObj, {
currentMonth: this.month,
currentYear: this.year
}) : ''
if (isFunction(this.dateClass)) {
date.classes = this.dateClass(dateObj, {
currentMonth: this.month,
currentYear: this.year
})
} else {
date.classes = ''
}
rows[i].push(date)
}
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -1639,10 +1639,10 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
resolved "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=

eslint-config-standard@14.1.1:
version "14.1.1"
resolved "https://registry.npm.taobao.org/eslint-config-standard/download/eslint-config-standard-14.1.1.tgz#830a8e44e7aef7de67464979ad06b406026c56ea"
integrity sha1-gwqOROeu995nRkl5rQa0BgJsVuo=
eslint-config-standard@15.0.0:
version "15.0.0"
resolved "https://registry.npm.taobao.org/eslint-config-standard/download/eslint-config-standard-15.0.0.tgz?cache=0&sync_timestamp=1603330564670&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-config-standard%2Fdownload%2Feslint-config-standard-15.0.0.tgz#459f823b47ac0541b0a22b1d0a161a9da543f687"
integrity sha1-RZ+CO0esBUGwoisdChYanaVD9oc=

eslint-import-resolver-node@^0.3.4:
version "0.3.4"
Expand Down

0 comments on commit 719c6b0

Please sign in to comment.