diff --git a/.vscode/settings.json b/.vscode/settings.json
index a72c3381d..8090fa64a 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -4,16 +4,27 @@
"eslint.options": {
"extensions": [
".js",
+ ".jsx",
".vue"
],
"configFile": ".eslintrc"
},
"eslint.validate": [
- "javascript",
- "javascriptreact",
+ {
+ "language": "html",
+ "autoFix": true
+ },
{
"language": "vue",
"autoFix": true
+ },
+ {
+ "language": "javascript",
+ "autoFix": true
+ },
+ {
+ "language": "javascriptreact",
+ "autoFix": true
}
],
"emmet.syntaxProfiles": {
diff --git a/components/_util/ContainerRender.jsx b/components/_util/ContainerRender.jsx
index d668f4cc3..9540e6db4 100644
--- a/components/_util/ContainerRender.jsx
+++ b/components/_util/ContainerRender.jsx
@@ -85,4 +85,3 @@ export default {
},
}
-
diff --git a/components/affix/index.jsx b/components/affix/index.jsx
index 65b11d6d2..4b1beb6f1 100644
--- a/components/affix/index.jsx
+++ b/components/affix/index.jsx
@@ -242,4 +242,3 @@ export default {
},
}
-
diff --git a/components/alert/index.jsx b/components/alert/index.jsx
index 089e6576b..289d328cd 100644
--- a/components/alert/index.jsx
+++ b/components/alert/index.jsx
@@ -130,4 +130,3 @@ export default {
},
}
-
diff --git a/components/align/Align.jsx b/components/align/Align.jsx
index af19e5377..d8ae29801 100644
--- a/components/align/Align.jsx
+++ b/components/align/Align.jsx
@@ -125,4 +125,3 @@ export default {
},
}
-
diff --git a/components/auto-complete/InputElement.jsx b/components/auto-complete/InputElement.jsx
index f7592eb2f..0e7d23bbd 100644
--- a/components/auto-complete/InputElement.jsx
+++ b/components/auto-complete/InputElement.jsx
@@ -52,4 +52,3 @@ export default {
},
}
-
diff --git a/components/auto-complete/index.jsx b/components/auto-complete/index.jsx
index 16e116671..0a371c29a 100644
--- a/components/auto-complete/index.jsx
+++ b/components/auto-complete/index.jsx
@@ -134,4 +134,3 @@ export default {
},
}
-
diff --git a/components/back-top/index.jsx b/components/back-top/index.jsx
index 90373b81b..895dbc387 100644
--- a/components/back-top/index.jsx
+++ b/components/back-top/index.jsx
@@ -131,4 +131,3 @@ export default {
},
}
-
diff --git a/components/badge/Badge.jsx b/components/badge/Badge.jsx
index 187214e5b..ab7a6deec 100644
--- a/components/badge/Badge.jsx
+++ b/components/badge/Badge.jsx
@@ -111,4 +111,3 @@ export default {
},
}
-
diff --git a/components/badge/ScrollNumber.jsx b/components/badge/ScrollNumber.jsx
index 66a8d8cc9..779a1392e 100644
--- a/components/badge/ScrollNumber.jsx
+++ b/components/badge/ScrollNumber.jsx
@@ -135,4 +135,3 @@ export default {
},
}
-
diff --git a/components/breadcrumb/Breadcrumb.jsx b/components/breadcrumb/Breadcrumb.jsx
index e82c5cb74..463e033a8 100644
--- a/components/breadcrumb/Breadcrumb.jsx
+++ b/components/breadcrumb/Breadcrumb.jsx
@@ -87,4 +87,3 @@ export default {
},
}
-
diff --git a/components/breadcrumb/BreadcrumbItem.jsx b/components/breadcrumb/BreadcrumbItem.jsx
index e273e9e94..c6a0a5627 100644
--- a/components/breadcrumb/BreadcrumbItem.jsx
+++ b/components/breadcrumb/BreadcrumbItem.jsx
@@ -1,33 +1,33 @@
- import PropTypes from '../_util/vue-types'
- import { hasProp, getComponentFromProp } from '../_util/props-util'
+import PropTypes from '../_util/vue-types'
+import { hasProp, getComponentFromProp } from '../_util/props-util'
- export default {
- name: 'BreadcrumbItem',
- __ANT_BREADCRUMB_ITEM: true,
- props: {
- prefixCls: PropTypes.string.def('ant-breadcrumb'),
- href: PropTypes.string,
- separator: PropTypes.any,
- },
- render () {
- const { prefixCls, $slots } = this
- const children = $slots.default
- let link
- if (hasProp(this, 'href')) {
- link = {children}
- } else {
- link = {children}
- }
- if (children) {
- return (
-
- {link}
- {getComponentFromProp(this, 'separator') || '/'}
-
- )
- }
- return null
- },
- }
+export default {
+ name: 'BreadcrumbItem',
+ __ANT_BREADCRUMB_ITEM: true,
+ props: {
+ prefixCls: PropTypes.string.def('ant-breadcrumb'),
+ href: PropTypes.string,
+ separator: PropTypes.any,
+ },
+ render () {
+ const { prefixCls, $slots } = this
+ const children = $slots.default
+ let link
+ if (hasProp(this, 'href')) {
+ link = {children}
+ } else {
+ link = {children}
+ }
+ if (children) {
+ return (
+
+ {link}
+ {getComponentFromProp(this, 'separator') || '/'}
+
+ )
+ }
+ return null
+ },
+}
diff --git a/components/card/Card.jsx b/components/card/Card.jsx
index b05d9762d..12d64e521 100644
--- a/components/card/Card.jsx
+++ b/components/card/Card.jsx
@@ -1,164 +1,164 @@
- import Tabs from '../tabs'
- import PropTypes from '../_util/vue-types'
- import addEventListener from '../_util/Dom/addEventListener'
- import { getComponentFromProp, getComponentName } from '../_util/props-util'
- import throttleByAnimationFrame from '../_util/throttleByAnimationFrame'
- import BaseMixin from '../_util/BaseMixin'
+import Tabs from '../tabs'
+import PropTypes from '../_util/vue-types'
+import addEventListener from '../_util/Dom/addEventListener'
+import { getComponentFromProp, getComponentName } from '../_util/props-util'
+import throttleByAnimationFrame from '../_util/throttleByAnimationFrame'
+import BaseMixin from '../_util/BaseMixin'
- const { TabPane } = Tabs
- export default {
- name: 'Card',
- mixins: [BaseMixin],
- props: {
- prefixCls: PropTypes.string.def('ant-card'),
- title: PropTypes.string,
- extra: PropTypes.any,
- bordered: PropTypes.bool.def(true),
- bodyStyle: PropTypes.object,
- loading: PropTypes.bool.def(false),
- hoverable: PropTypes.bool.def(false),
- type: PropTypes.string,
- actions: PropTypes.any,
- tabList: PropTypes.array,
- },
- data () {
- this.updateWiderPaddingCalled = false
- return {
- widerPadding: false,
+const { TabPane } = Tabs
+export default {
+ name: 'Card',
+ mixins: [BaseMixin],
+ props: {
+ prefixCls: PropTypes.string.def('ant-card'),
+ title: PropTypes.string,
+ extra: PropTypes.any,
+ bordered: PropTypes.bool.def(true),
+ bodyStyle: PropTypes.object,
+ loading: PropTypes.bool.def(false),
+ hoverable: PropTypes.bool.def(false),
+ type: PropTypes.string,
+ actions: PropTypes.any,
+ tabList: PropTypes.array,
+ },
+ data () {
+ this.updateWiderPaddingCalled = false
+ return {
+ widerPadding: false,
+ }
+ },
+ beforeMount () {
+ this.updateWiderPadding = throttleByAnimationFrame(this.updateWiderPadding)
+ },
+ mounted () {
+ this.updateWiderPadding()
+ this.resizeEvent = addEventListener(window, 'resize', this.updateWiderPadding)
+ },
+ beforeDestroy () {
+ if (this.resizeEvent) {
+ this.resizeEvent.remove()
+ }
+ this.updateWiderPadding.cancel && this.updateWiderPadding.cancel()
+ },
+ methods: {
+ updateWiderPadding () {
+ const cardContainerRef = this.$refs.cardContainerRef
+ if (!cardContainerRef) {
+ return
+ }
+ // 936 is a magic card width pixer number indicated by designer
+ const WIDTH_BOUDARY_PX = 936
+ if (cardContainerRef.offsetWidth >= WIDTH_BOUDARY_PX && !this.widerPadding) {
+ this.setState({ widerPadding: true }, () => {
+ this.updateWiderPaddingCalled = true // first render without css transition
+ })
+ }
+ if (cardContainerRef.offsetWidth < WIDTH_BOUDARY_PX && this.widerPadding) {
+ this.setState({ widerPadding: false }, () => {
+ this.updateWiderPaddingCalled = true // first render without css transition
+ })
}
},
- beforeMount () {
- this.updateWiderPadding = throttleByAnimationFrame(this.updateWiderPadding)
+ onHandleTabChange (key) {
+ this.$emit('tabChange', key)
},
- mounted () {
- this.updateWiderPadding()
- this.resizeEvent = addEventListener(window, 'resize', this.updateWiderPadding)
- },
- beforeDestroy () {
- if (this.resizeEvent) {
- this.resizeEvent.remove()
- }
- this.updateWiderPadding.cancel && this.updateWiderPadding.cancel()
- },
- methods: {
- updateWiderPadding () {
- const cardContainerRef = this.$refs.cardContainerRef
- if (!cardContainerRef) {
- return
- }
- // 936 is a magic card width pixer number indicated by designer
- const WIDTH_BOUDARY_PX = 936
- if (cardContainerRef.offsetWidth >= WIDTH_BOUDARY_PX && !this.widerPadding) {
- this.setState({ widerPadding: true }, () => {
- this.updateWiderPaddingCalled = true // first render without css transition
- })
- }
- if (cardContainerRef.offsetWidth < WIDTH_BOUDARY_PX && this.widerPadding) {
- this.setState({ widerPadding: false }, () => {
- this.updateWiderPaddingCalled = true // first render without css transition
- })
- }
- },
- onHandleTabChange (key) {
- this.$emit('tabChange', key)
- },
- isContainGrid (obj = []) {
- let containGrid
- obj.forEach((element) => {
- if (
- element &&
+ isContainGrid (obj = []) {
+ let containGrid
+ obj.forEach((element) => {
+ if (
+ element &&
element.componentOptions &&
getComponentName(element.componentOptions) === 'Grid'
- ) {
- containGrid = true
- }
- })
- return containGrid
- },
+ ) {
+ containGrid = true
+ }
+ })
+ return containGrid
},
- render () {
- const {
- prefixCls = 'ant-card', extra, bodyStyle, title, loading,
- bordered = true, type, tabList, hoverable,
- } = this.$props
+ },
+ render () {
+ const {
+ prefixCls = 'ant-card', extra, bodyStyle, title, loading,
+ bordered = true, type, tabList, hoverable,
+ } = this.$props
- const { $slots } = this
+ const { $slots } = this
- const classString = {
- [`${prefixCls}`]: true,
- [`${prefixCls}-loading`]: loading,
- [`${prefixCls}-bordered`]: bordered,
- [`${prefixCls}-hoverable`]: !!hoverable,
- [`${prefixCls}-wider-padding`]: this.widerPadding,
- [`${prefixCls}-padding-transition`]: this.updateWiderPaddingCalled,
- [`${prefixCls}-contain-grid`]: this.isContainGrid($slots.default),
- [`${prefixCls}-contain-tabs`]: tabList && tabList.length,
- [`${prefixCls}-type-${type}`]: !!type,
- }
+ const classString = {
+ [`${prefixCls}`]: true,
+ [`${prefixCls}-loading`]: loading,
+ [`${prefixCls}-bordered`]: bordered,
+ [`${prefixCls}-hoverable`]: !!hoverable,
+ [`${prefixCls}-wider-padding`]: this.widerPadding,
+ [`${prefixCls}-padding-transition`]: this.updateWiderPaddingCalled,
+ [`${prefixCls}-contain-grid`]: this.isContainGrid($slots.default),
+ [`${prefixCls}-contain-tabs`]: tabList && tabList.length,
+ [`${prefixCls}-type-${type}`]: !!type,
+ }
- const loadingBlock = (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )
+ const loadingBlock = (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
- let head
- const tabs = tabList && tabList.length ? (
-
- {tabList.map(item => )}
-
- ) : null
- const titleDom = title || getComponentFromProp(this, 'title')
- const extraDom = extra || getComponentFromProp(this, 'extra')
- if (titleDom || extraDom || tabs) {
- head = (
-
-
- {titleDom &&
{titleDom}
}
- {extraDom && }
-
- {tabs}
+ let head
+ const tabs = tabList && tabList.length ? (
+
+ {tabList.map(item => )}
+
+ ) : null
+ const titleDom = title || getComponentFromProp(this, 'title')
+ const extraDom = extra || getComponentFromProp(this, 'extra')
+ if (titleDom || extraDom || tabs) {
+ head = (
+
+
+ {titleDom &&
{titleDom}
}
+ {extraDom && }
- )
- }
-
- const children = $slots.default
- const cover = getComponentFromProp(this, 'cover')
- const coverDom = cover ?
{cover}
: null
- const body = (
-
- {loading ? loadingBlock : children}
+ {tabs}
)
- const actions = getComponentFromProp(this, 'actions')
- const actionDom = actions || null
+ }
- return (
-
- {head}
- {coverDom}
- {children ? body : null}
- {actionDom}
-
- )
- },
- }
+ const children = $slots.default
+ const cover = getComponentFromProp(this, 'cover')
+ const coverDom = cover ?
{cover}
: null
+ const body = (
+
+ {loading ? loadingBlock : children}
+
+ )
+ const actions = getComponentFromProp(this, 'actions')
+ const actionDom = actions || null
+
+ return (
+
+ {head}
+ {coverDom}
+ {children ? body : null}
+ {actionDom}
+
+ )
+ },
+}
diff --git a/components/cascader/index.jsx b/components/cascader/index.jsx
index 6cc86ea43..48d05ec3b 100644
--- a/components/cascader/index.jsx
+++ b/components/cascader/index.jsx
@@ -382,4 +382,3 @@ export default {
},
}
-
diff --git a/components/dropdown/dropdown-button.jsx b/components/dropdown/dropdown-button.jsx
index cb43bfaa2..a1ae10283 100644
--- a/components/dropdown/dropdown-button.jsx
+++ b/components/dropdown/dropdown-button.jsx
@@ -80,4 +80,3 @@ export default {
},
}
-
diff --git a/components/dropdown/dropdown.jsx b/components/dropdown/dropdown.jsx
index 60cf681ea..5149f67ea 100644
--- a/components/dropdown/dropdown.jsx
+++ b/components/dropdown/dropdown.jsx
@@ -74,4 +74,3 @@ Dropdown.Button = DropdownButton
export default Dropdown
export { DropdownProps }
-
diff --git a/components/dropdown/src/Dropdown.jsx b/components/dropdown/src/Dropdown.jsx
index e5be8c86c..262513a6a 100644
--- a/components/dropdown/src/Dropdown.jsx
+++ b/components/dropdown/src/Dropdown.jsx
@@ -147,4 +147,3 @@ export default {
},
}
-
diff --git a/components/grid/Col.jsx b/components/grid/Col.jsx
index c7ab7ad8d..bce19ebf6 100644
--- a/components/grid/Col.jsx
+++ b/components/grid/Col.jsx
@@ -68,5 +68,3 @@ export default {
},
}
-
-
diff --git a/components/grid/Row.jsx b/components/grid/Row.jsx
index d42db6862..2d781e40b 100644
--- a/components/grid/Row.jsx
+++ b/components/grid/Row.jsx
@@ -148,4 +148,3 @@ export default {
},
}
-
diff --git a/components/input/Group.jsx b/components/input/Group.jsx
index d7dcd5416..cd5f5d6cd 100644
--- a/components/input/Group.jsx
+++ b/components/input/Group.jsx
@@ -1,5 +1,4 @@
-
export default {
name: 'InputGruop',
props: {
diff --git a/components/locale-provider/LocaleReceiver.jsx b/components/locale-provider/LocaleReceiver.jsx
index 40dd4a8d0..b65196ae7 100644
--- a/components/locale-provider/LocaleReceiver.jsx
+++ b/components/locale-provider/LocaleReceiver.jsx
@@ -42,4 +42,3 @@ export default {
},
}
-
diff --git a/components/locale-provider/index.jsx b/components/locale-provider/index.jsx
index 517aa1a8f..52c4c8428 100644
--- a/components/locale-provider/index.jsx
+++ b/components/locale-provider/index.jsx
@@ -69,4 +69,3 @@ export default {
},
}
-
diff --git a/components/menu/MenuItem.jsx b/components/menu/MenuItem.jsx
index 1cb6161d4..67ddedae2 100644
--- a/components/menu/MenuItem.jsx
+++ b/components/menu/MenuItem.jsx
@@ -50,4 +50,3 @@ export default {
},
}
-
diff --git a/components/menu/index.jsx b/components/menu/index.jsx
index 6cc8c8982..47d0058b4 100644
--- a/components/menu/index.jsx
+++ b/components/menu/index.jsx
@@ -251,4 +251,3 @@ export default {
},
}
-
diff --git a/components/modal/ActionButton.jsx b/components/modal/ActionButton.jsx
index be68118be..85df6731a 100644
--- a/components/modal/ActionButton.jsx
+++ b/components/modal/ActionButton.jsx
@@ -67,4 +67,3 @@ export default {
},
}
-
diff --git a/components/modal/ConfirmDialog.jsx b/components/modal/ConfirmDialog.jsx
index 38a014a34..884aa4651 100644
--- a/components/modal/ConfirmDialog.jsx
+++ b/components/modal/ConfirmDialog.jsx
@@ -68,4 +68,3 @@ export default {
},
}
-
diff --git a/components/modal/Modal.jsx b/components/modal/Modal.jsx
index 6127e84f6..62b69694c 100644
--- a/components/modal/Modal.jsx
+++ b/components/modal/Modal.jsx
@@ -155,4 +155,3 @@ export default {
},
}
-
diff --git a/components/popconfirm/index.jsx b/components/popconfirm/index.jsx
index 0bcd45a85..537ce3a01 100644
--- a/components/popconfirm/index.jsx
+++ b/components/popconfirm/index.jsx
@@ -114,4 +114,3 @@ export default {
},
}
-
diff --git a/components/popover/index.jsx b/components/popover/index.jsx
index 4d4a181a3..71d5f1891 100644
--- a/components/popover/index.jsx
+++ b/components/popover/index.jsx
@@ -58,4 +58,3 @@ export default {
},
}
-
diff --git a/components/select/index.jsx b/components/select/index.jsx
index 9bd1fcbe7..ad136ebe1 100644
--- a/components/select/index.jsx
+++ b/components/select/index.jsx
@@ -171,4 +171,3 @@ export default {
},
}
-
diff --git a/components/tabs/src/ScrollableInkTabBar.jsx b/components/tabs/src/ScrollableInkTabBar.jsx
index 0b57795b3..5b597e828 100644
--- a/components/tabs/src/ScrollableInkTabBar.jsx
+++ b/components/tabs/src/ScrollableInkTabBar.jsx
@@ -15,4 +15,3 @@ export default {
},
}
-
diff --git a/components/tabs/src/ScrollableTabBar.jsx b/components/tabs/src/ScrollableTabBar.jsx
index 3cb143c9b..aa3b0d335 100644
--- a/components/tabs/src/ScrollableTabBar.jsx
+++ b/components/tabs/src/ScrollableTabBar.jsx
@@ -14,4 +14,3 @@ export default {
},
}
-
diff --git a/components/tag/CheckableTag.jsx b/components/tag/CheckableTag.jsx
index 9b5f2d201..c9f799bcf 100644
--- a/components/tag/CheckableTag.jsx
+++ b/components/tag/CheckableTag.jsx
@@ -1,5 +1,4 @@
-
export default {
name: 'CheckableTag',
model: {
diff --git a/components/trigger/LazyRenderBox.jsx b/components/trigger/LazyRenderBox.jsx
index a28909307..a37d9f531 100644
--- a/components/trigger/LazyRenderBox.jsx
+++ b/components/trigger/LazyRenderBox.jsx
@@ -25,4 +25,3 @@ export default {
},
}
-
diff --git a/components/trigger/Popup.jsx b/components/trigger/Popup.jsx
index 241051835..63535c6a1 100644
--- a/components/trigger/Popup.jsx
+++ b/components/trigger/Popup.jsx
@@ -228,5 +228,3 @@ export default {
},
}
-
-
diff --git a/components/trigger/PopupInner.jsx b/components/trigger/PopupInner.jsx
index 0cfa7d129..fd7290b45 100644
--- a/components/trigger/PopupInner.jsx
+++ b/components/trigger/PopupInner.jsx
@@ -25,4 +25,3 @@ export default {
},
}
-
diff --git a/components/trigger/Trigger.jsx b/components/trigger/Trigger.jsx
index 69075c98c..547411e7f 100644
--- a/components/trigger/Trigger.jsx
+++ b/components/trigger/Trigger.jsx
@@ -548,4 +548,3 @@ export default {
},
}
-
diff --git a/components/vc-cascader/Cascader.jsx b/components/vc-cascader/Cascader.jsx
index ac61adb2e..bb122b32e 100644
--- a/components/vc-cascader/Cascader.jsx
+++ b/components/vc-cascader/Cascader.jsx
@@ -320,4 +320,3 @@ export default {
},
}
-
diff --git a/components/vc-dialog/Dialog.jsx b/components/vc-dialog/Dialog.jsx
index c06439ad3..bc16771fa 100644
--- a/components/vc-dialog/Dialog.jsx
+++ b/components/vc-dialog/Dialog.jsx
@@ -414,4 +414,3 @@ export default {
},
}
-
diff --git a/components/vc-dialog/DialogWrap.jsx b/components/vc-dialog/DialogWrap.jsx
index 22e3eb205..cfb0301a3 100644
--- a/components/vc-dialog/DialogWrap.jsx
+++ b/components/vc-dialog/DialogWrap.jsx
@@ -84,4 +84,3 @@ const DialogWrap = {
export default DialogWrap
-
diff --git a/components/vc-dialog/LazyRenderBox.jsx b/components/vc-dialog/LazyRenderBox.jsx
index 257eb2f20..6a7560aed 100644
--- a/components/vc-dialog/LazyRenderBox.jsx
+++ b/components/vc-dialog/LazyRenderBox.jsx
@@ -17,5 +17,3 @@ export default {
},
}
-
-
diff --git a/components/vc-menu/DOMWrap.jsx b/components/vc-menu/DOMWrap.jsx
index 9e62956f8..d792427c2 100644
--- a/components/vc-menu/DOMWrap.jsx
+++ b/components/vc-menu/DOMWrap.jsx
@@ -39,4 +39,3 @@ export default {
},
}
-
diff --git a/components/vc-notification/Notice.jsx b/components/vc-notification/Notice.jsx
index 36e5561fe..90f94f692 100644
--- a/components/vc-notification/Notice.jsx
+++ b/components/vc-notification/Notice.jsx
@@ -65,4 +65,3 @@ export default {
},
}
-
diff --git a/components/vc-notification/Notification.jsx b/components/vc-notification/Notification.jsx
index d9e0ab6dd..81088375f 100644
--- a/components/vc-notification/Notification.jsx
+++ b/components/vc-notification/Notification.jsx
@@ -146,4 +146,3 @@ Notification.newInstance = function newNotificationInstance (properties, callbac
export default Notification
-
diff --git a/components/vc-select/DropdownMenu.jsx b/components/vc-select/DropdownMenu.jsx
index ec1d58211..f3a51685c 100644
--- a/components/vc-select/DropdownMenu.jsx
+++ b/components/vc-select/DropdownMenu.jsx
@@ -179,4 +179,3 @@ export default {
},
}
-
diff --git a/components/vc-select/Select.jsx b/components/vc-select/Select.jsx
index 8b7974cca..30cd39736 100644
--- a/components/vc-select/Select.jsx
+++ b/components/vc-select/Select.jsx
@@ -1567,4 +1567,3 @@ export default {
},
}
-
diff --git a/components/vc-select/SelectTrigger.jsx b/components/vc-select/SelectTrigger.jsx
index 117fb6349..8d1fc5f94 100644
--- a/components/vc-select/SelectTrigger.jsx
+++ b/components/vc-select/SelectTrigger.jsx
@@ -208,4 +208,3 @@ export default {
},
}
-
diff --git a/components/vc-steps/Steps.jsx b/components/vc-steps/Steps.jsx
index 5e64d69b7..00fc03178 100644
--- a/components/vc-steps/Steps.jsx
+++ b/components/vc-steps/Steps.jsx
@@ -4,7 +4,6 @@ import BaseMixin from '../_util/BaseMixin'
import debounce from 'lodash/debounce'
import isFlexSupported from '../_util/isFlexSupported'
import {
- getOptionProps,
filterEmpty,
getEvents,
getPropsData,
diff --git a/components/vc-time-picker/Combobox.jsx b/components/vc-time-picker/Combobox.jsx
index 68455c272..bc9f2b220 100644
--- a/components/vc-time-picker/Combobox.jsx
+++ b/components/vc-time-picker/Combobox.jsx
@@ -191,4 +191,3 @@ const Combobox = {
export default Combobox
-
diff --git a/components/vc-tooltip/Tooltip.jsx b/components/vc-tooltip/Tooltip.jsx
index 0a2f5c650..81208bb61 100644
--- a/components/vc-tooltip/Tooltip.jsx
+++ b/components/vc-tooltip/Tooltip.jsx
@@ -96,4 +96,3 @@ export default {
},
}
-
diff --git a/package.json b/package.json
index e96c0ab81..eff0327e6 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,7 @@
"test": "karma start test/karma.conf.js --single-run",
"build": "sh build.sh",
"dist": "node antd-tools/cli/run.js dist",
- "lint": "eslint -c ./.eslintrc --fix --ext .js ./components/time-picker/locale",
+ "lint": "eslint -c ./.eslintrc --fix --ext .jsx ./components",
"lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less"
},
"repository": {
@@ -38,7 +38,6 @@
},
"homepage": "https://github.com/vueComponent/ant-design",
"pre-commit": [
- "lint",
"lint:style"
],
"devDependencies": {
@@ -144,4 +143,4 @@
"vue-types": "^1.0.2",
"warning": "^3.0.0"
}
-}
\ No newline at end of file
+}