collapse newlines
This commit is contained in:
parent
f0a92cad67
commit
9caaaea067
|
@ -7,6 +7,4 @@
|
|||
|
||||
(${1:params}) => {
|
||||
${2}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -5,5 +5,4 @@
|
|||
# key: bnd
|
||||
# --
|
||||
|
||||
this.${1:methodName} = this.${1:methodName}.bind(this)$0
|
||||
|
||||
this.${1:methodName} = this.${1:methodName}.bind(this)$0
|
|
@ -9,5 +9,4 @@
|
|||
|--------------------------------------------------
|
||||
| $1
|
||||
|--------------------------------------------------
|
||||
*/
|
||||
|
||||
*/
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.assert(${1:expression}, ${2:object})
|
||||
|
||||
console.assert(${1:expression}, ${2:object})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.clear()
|
||||
|
||||
console.clear()
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.count(${1:label})
|
||||
|
||||
console.count(${1:label})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.dir(${1:object})
|
||||
|
||||
console.dir(${1:object})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.error(${1:object})
|
||||
|
||||
console.error(${1:object})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.groupEnd()
|
||||
|
||||
console.groupEnd()
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.group("${1:label}")
|
||||
|
||||
console.group("${1:label}")
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.info(${1:object})
|
||||
|
||||
console.info(${1:object})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.log(${1:object})
|
||||
|
||||
console.log(${1:object})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.log('${1:object}', ${1:object})
|
||||
|
||||
console.log('${1:object}', ${1:object})
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.timeEnd('${1:object}')
|
||||
|
||||
console.timeEnd('${1:object}')
|
|
@ -6,5 +6,4 @@
|
|||
# group: console
|
||||
# --
|
||||
|
||||
console.warn(${1:object})
|
||||
|
||||
console.warn(${1:object})
|
|
@ -5,5 +5,4 @@
|
|||
# key: dar
|
||||
# --
|
||||
|
||||
const [${1:propertyName}] = ${2:arrayToDestruct}
|
||||
|
||||
const [${1:propertyName}] = ${2:arrayToDestruct}
|
|
@ -5,5 +5,4 @@
|
|||
# key: dob
|
||||
# --
|
||||
|
||||
const {${1:propertyName}} = ${2:objectToDestruct}
|
||||
|
||||
const {${1:propertyName}} = ${2:objectToDestruct}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
export default (${1:params}) => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
export const ${1:functionName} = (${2:params}) => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -5,5 +5,4 @@
|
|||
# key: exa
|
||||
# --
|
||||
|
||||
export { ${2:originalName} as ${3:alias} } from '${1:module}'$0
|
||||
|
||||
export { ${2:originalName} as ${3:alias} } from '${1:module}'$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: exd
|
||||
# --
|
||||
|
||||
export { $2 } from '${1:module}'$0
|
||||
|
||||
export { $2 } from '${1:module}'$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: exp
|
||||
# --
|
||||
|
||||
export default $1$0
|
||||
|
||||
export default $1$0
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
for(let ${1:item} in ${2:object}) {
|
||||
${0}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
for(let ${1:item} of ${2:object}) {
|
||||
${0}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
${1:array}.forEach(${2:currentItem} => {
|
||||
${0}
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -5,5 +5,4 @@
|
|||
# key: ima
|
||||
# --
|
||||
|
||||
import { ${2:originalName} as ${3:alias} } from '${1:module}'$0
|
||||
|
||||
import { ${2:originalName} as ${3:alias} } from '${1:module}'$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: imd
|
||||
# --
|
||||
|
||||
import { $2 } from '${1:module}'$0
|
||||
|
||||
import { $2 } from '${1:module}'$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: ime
|
||||
# --
|
||||
|
||||
import * as ${2:alias} from '${1:module}'$0
|
||||
|
||||
import * as ${2:alias} from '${1:module}'$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: imn
|
||||
# --
|
||||
|
||||
import '${1:module}'$0
|
||||
|
||||
import '${1:module}'$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: imp
|
||||
# --
|
||||
|
||||
import ${2:moduleName} from '${1:module}'$0
|
||||
|
||||
import ${2:moduleName} from '${1:module}'$0
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
${1:methodName} = (${2:params}) => {
|
||||
${0}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
const ${1:name} = (${2:params}) => {
|
||||
${3}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
get ${1:propertyName}() {
|
||||
return this.${0}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
return new Promise((resolve, reject) => {
|
||||
${1}
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
set ${1:propertyName}(${2:value}) {
|
||||
${0}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
setInterval(() => {
|
||||
${2}
|
||||
}, ${0:intervalInms})
|
||||
|
||||
|
||||
}, ${0:intervalInms})
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
setTimeout(() => {
|
||||
${2}
|
||||
}, ${1:delayInms})
|
||||
|
||||
|
||||
}, ${1:delayInms})
|
|
@ -7,5 +7,4 @@
|
|||
|
||||
export default compose(
|
||||
graphql(${1:queryOrMutation}, { name: ${2:name} }),
|
||||
)(${1:${TM_FILENAME_BASE}})
|
||||
|
||||
)(${1:${TM_FILENAME_BASE}})
|
|
@ -5,6 +5,4 @@
|
|||
# key: graphql
|
||||
# --
|
||||
|
||||
import { compose, graphql } from 'react-apollo'
|
||||
|
||||
|
||||
import { compose, graphql } from 'react-apollo'
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
describe('$1', () => {
|
||||
$0
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -24,6 +24,4 @@ describe('<${1:${TM_FILENAME_BASE}} />', () => {
|
|||
test('render', () => {
|
||||
expect(wrapper).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -18,6 +18,4 @@ describe('<${1:${TM_FILENAME_BASE}} />', () => {
|
|||
test('render', () => {
|
||||
expect(wrapper).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -23,6 +23,4 @@ describe('<${1:${TM_FILENAME_BASE}} />', () => {
|
|||
test('render', () => {
|
||||
expect(wrapper).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -17,6 +17,4 @@ describe('<${1:${TM_FILENAME_BASE}} />', () => {
|
|||
test('render', () => {
|
||||
expect(wrapper).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
test('should $1', () => {
|
||||
$0
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
it('should $1', () => {
|
||||
$0
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -5,5 +5,4 @@
|
|||
# key: imrn
|
||||
# --
|
||||
|
||||
import { ${1:moduleName} } from 'react-native'
|
||||
|
||||
import { ${1:moduleName} } from 'react-native'
|
|
@ -16,6 +16,4 @@ export default class ${1:${TM_FILENAME_BASE}} extends Component {
|
|||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -18,6 +18,4 @@ export class ${1:${TM_FILENAME_BASE}} extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default ${1:${TM_FILENAME_BASE}}
|
||||
|
||||
|
||||
export default ${1:${TM_FILENAME_BASE}}
|
|
@ -18,6 +18,4 @@ export default class ${1:${TM_FILENAME_BASE}} extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({})
|
||||
|
||||
|
||||
const styles = StyleSheet.create({})
|
|
@ -16,6 +16,4 @@ export default class ${1:${TM_FILENAME_BASE}} extends PureComponent {
|
|||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -18,6 +18,4 @@ export class ${1:${TM_FILENAME_BASE}} extends PureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
export default ${1:${TM_FILENAME_BASE}}
|
||||
|
||||
|
||||
export default ${1:${TM_FILENAME_BASE}}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
const styles = StyleSheet.create({
|
||||
${1:style}
|
||||
})
|
||||
|
||||
|
||||
})
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
componentDidMount = () => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
componentDidUpdate = (prevProps, prevState) => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -5,5 +5,4 @@
|
|||
# key: cp
|
||||
# --
|
||||
|
||||
const { $1 } = this.props
|
||||
|
||||
const { $1 } = this.props
|
|
@ -5,6 +5,4 @@
|
|||
# key: cref
|
||||
# --
|
||||
|
||||
this.${1:refName}Ref = React.createRef()
|
||||
|
||||
|
||||
this.${1:refName}Ref = React.createRef()
|
|
@ -5,5 +5,4 @@
|
|||
# key: cs
|
||||
# --
|
||||
|
||||
const { $1 } = this.state
|
||||
|
||||
const { $1 } = this.state
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
componentWillMount = () => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
componentWillReceiveProps = (nextProps) => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
componentWillUnmount = () => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
componentWillUpdate = (nextProps, nextState) => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
state = {
|
||||
$1
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -5,6 +5,4 @@
|
|||
# key: fref
|
||||
# --
|
||||
|
||||
const ref = React.createRef()
|
||||
|
||||
|
||||
const ref = React.createRef()
|
|
@ -7,5 +7,4 @@
|
|||
|
||||
static getDerivedStateFromProps(props, state) {
|
||||
${1}
|
||||
}
|
||||
|
||||
}
|
|
@ -7,6 +7,4 @@
|
|||
|
||||
getSnapshotBeforeUpdate = (prevProps, prevState) => {
|
||||
$0
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -15,6 +15,4 @@ export default (WrappedComponent) => {
|
|||
}
|
||||
|
||||
return hocComponent
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -5,6 +5,4 @@
|
|||
# key: impt
|
||||
# --
|
||||
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
|
||||
import PropTypes from 'prop-types'
|
|
@ -5,6 +5,4 @@
|
|||
# key: imr
|
||||
# --
|
||||
|
||||
import React from 'react'
|
||||
|
||||
|
||||
import React from 'react'
|
|
@ -5,6 +5,4 @@
|
|||
# key: imrc
|
||||
# --
|
||||
|
||||
import React, { Component } from 'react'
|
||||
|
||||
|
||||
import React, { Component } from 'react'
|
|
@ -6,6 +6,4 @@
|
|||
# --
|
||||
|
||||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
|
||||
import PropTypes from 'prop-types'
|
|
@ -5,6 +5,4 @@
|
|||
# key: imrd
|
||||
# --
|
||||
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
|
||||
import ReactDOM from 'react-dom'
|
|
@ -5,6 +5,4 @@
|
|||
# key: imrm
|
||||
# --
|
||||
|
||||
import React, { memo } from 'react'
|
||||
|
||||
|
||||
import React, { memo } from 'react'
|
|
@ -6,6 +6,4 @@
|
|||
# --
|
||||
|
||||
import React, { memo } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
|
||||
import PropTypes from 'prop-types'
|
|
@ -5,6 +5,4 @@
|
|||
# key: imrpc
|
||||
# --
|
||||
|
||||
import React, { PureComponent } from 'react'
|
||||
|
||||
|
||||
import React, { PureComponent } from 'react'
|
|
@ -6,6 +6,4 @@
|
|||
# --
|
||||
|
||||
import React, { PureComponent } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
|
||||
import PropTypes from 'prop-types'
|
|
@ -5,6 +5,4 @@
|
|||
# key: imrr
|
||||
# --
|
||||
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
|
||||
|
||||
|
||||
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
|
|
@ -5,5 +5,4 @@
|
|||
# key: props
|
||||
# --
|
||||
|
||||
this.props.$0
|
||||
|
||||
this.props.$0
|
|
@ -5,5 +5,4 @@
|
|||
# key: pta
|
||||
# --
|
||||
|
||||
PropTypes.array,
|
||||
|
||||
PropTypes.array,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptany
|
||||
# --
|
||||
|
||||
PropTypes.any,
|
||||
|
||||
PropTypes.any,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptao
|
||||
# --
|
||||
|
||||
PropTypes.arrayOf($0),
|
||||
|
||||
PropTypes.arrayOf($0),
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptaor
|
||||
# --
|
||||
|
||||
PropTypes.arrayOf($0).isRequired,
|
||||
|
||||
PropTypes.arrayOf($0).isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptar
|
||||
# --
|
||||
|
||||
PropTypes.array.isRequired,
|
||||
|
||||
PropTypes.array.isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptb
|
||||
# --
|
||||
|
||||
PropTypes.bool,
|
||||
|
||||
PropTypes.bool,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptbr
|
||||
# --
|
||||
|
||||
PropTypes.bool.isRequired,
|
||||
|
||||
PropTypes.bool.isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: pte
|
||||
# --
|
||||
|
||||
PropTypes.oneOf(['$0']),
|
||||
|
||||
PropTypes.oneOf(['$0']),
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptel
|
||||
# --
|
||||
|
||||
PropTypes.element,
|
||||
|
||||
PropTypes.element,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptelr
|
||||
# --
|
||||
|
||||
PropTypes.element.isRequired,
|
||||
|
||||
PropTypes.element.isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: pter
|
||||
# --
|
||||
|
||||
PropTypes.oneOf(['$0']).isRequired,
|
||||
|
||||
PropTypes.oneOf(['$0']).isRequired,
|
|
@ -7,5 +7,4 @@
|
|||
|
||||
PropTypes.oneOfType([
|
||||
$0
|
||||
]),
|
||||
|
||||
]),
|
|
@ -7,5 +7,4 @@
|
|||
|
||||
PropTypes.oneOfType([
|
||||
$0
|
||||
]).isRequired,
|
||||
|
||||
]).isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptf
|
||||
# --
|
||||
|
||||
PropTypes.func,
|
||||
|
||||
PropTypes.func,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptfr
|
||||
# --
|
||||
|
||||
PropTypes.func.isRequired,
|
||||
|
||||
PropTypes.func.isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: pti
|
||||
# --
|
||||
|
||||
PropTypes.instanceOf($0),
|
||||
|
||||
PropTypes.instanceOf($0),
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptir
|
||||
# --
|
||||
|
||||
PropTypes.instanceOf($0).isRequired,
|
||||
|
||||
PropTypes.instanceOf($0).isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptn
|
||||
# --
|
||||
|
||||
PropTypes.number,
|
||||
|
||||
PropTypes.number,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptnd
|
||||
# --
|
||||
|
||||
PropTypes.node,
|
||||
|
||||
PropTypes.node,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptndr
|
||||
# --
|
||||
|
||||
PropTypes.node.isRequired,
|
||||
|
||||
PropTypes.node.isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: ptnr
|
||||
# --
|
||||
|
||||
PropTypes.number.isRequired,
|
||||
|
||||
PropTypes.number.isRequired,
|
|
@ -5,5 +5,4 @@
|
|||
# key: pto
|
||||
# --
|
||||
|
||||
PropTypes.object,
|
||||
|
||||
PropTypes.object,
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue