Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e94bd21

Browse files
author
Damian Sznajder
committed
Lint README.md
1 parent 1edd3ed commit e94bd21

File tree

3 files changed

+56
-67
lines changed

3 files changed

+56
-67
lines changed

‎CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All info about changes
44

55
# Released
66

7+
[2.7.0] - 2020年03月11日
8+
9+
- Add few snippets for react-router
10+
711
[2.6.0] - 2020年02月23日
812

913
- Add `rnfs`.

‎README.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -60,48 +60,48 @@ I.E. `tsrcc`
6060

6161
## React
6262

63-
| Prefix | Method |
64-
| ----------: | --------------------------------------------------------------------------------------|
65-
| `imr→` | `import React from 'react'` |
66-
| `imrd→` | `import ReactDOM from 'react-dom'` |
67-
| `imrc→` | `import React, { Component } from 'react'` |
68-
| `imrcp→` | `import React, { Component } from 'react' & import PropTypes from 'prop-types'` |
69-
| `imrpc→` | `import React, { PureComponent } from 'react'` |
70-
| `imrpcp→` | `import React, { PureComponent } from 'react' & import PropTypes from 'prop-types'` |
71-
| `imrm→` | `import React, { memo } from 'react'` |
72-
| `imrmp→` | `import React, { memo } from 'react' & import PropTypes from 'prop-types'` |
73-
| `impt→` | `import PropTypes from 'prop-types'` |
74-
| `imrr→` | `import { BrowserRouter as Router, Route, NavLink} from 'react-router-dom'` |
75-
| `imbr→` | `import { BrowserRouter as Router} from 'react-router-dom'` |
76-
| `imbrc→` | `import { Route, Switch, NavLink, Link } from react-router-dom'` |
77-
| `imbrr→` | `import { Route } from 'react-router-dom'` |
78-
| `imbrs→` | `import { Switch } from 'react-router-dom'` |
79-
| `imbrl→` | `import { Link } from 'react-router-dom'` |
80-
| `imbrnl→` | `import { NavLink } from 'react-router-dom'` |
81-
| `imrs→` | `import React, { useState } from 'react'` |
82-
| `imrse→` | `import React, { useState, useEffect } from 'react'` |
83-
| `redux→` | `import { connect } from 'react-redux'` |
84-
| `rconst→` | `constructor(props) with this.state` |
85-
| `rconc→` | `constructor(props, context) with this.state` |
86-
| `est→` | `this.state = { }` |
87-
| `cwm→` | `componentWillMount = () => { }` DEPRECATED!!! |
88-
| `cdm→` | `componentDidMount = () => { }` |
89-
| `cwr→` | `componentWillReceiveProps = (nextProps) => { }` DEPRECATED!!! |
90-
| `scu→` | `shouldComponentUpdate = (nextProps, nextState) => { }` |
91-
| `cwup→` | `componentWillUpdate = (nextProps, nextState) => { }` DEPRECATED!!! |
92-
| `cdup→` | `componentDidUpdate = (prevProps, prevState) => { }` |
93-
| `cwun→` | `componentWillUnmount = () => { }` |
94-
| `gdsfp→` | `static getDerivedStateFromProps(nextProps, prevState) { }` |
95-
| `gsbu→` | `getSnapshotBeforeUpdate = (prevProps, prevState) => { }` |
96-
| `ren→` | `render() { return( ) }` |
97-
| `sst→` | `this.setState({ })` |
98-
| `ssf→` | `this.setState((state, props) => return { })` |
99-
| `props→` | `this.props.propName` |
100-
| `state→` | `this.state.stateName` |
101-
| `rcontext→` | `const ${1:contextName} = React.createContext()` |
102-
| `cref→` | `this.${1:refName}Ref = React.createRef()` |
103-
| `fref→` | `const ref = React.createRef()` |
104-
| `bnd→` | `this.methodName = this.methodName.bind(this)` |
63+
| Prefix | Method |
64+
| ----------: | -----------------------------------------------------------------------------------|
65+
| `imr→` | `import React from 'react'` |
66+
| `imrd→` | `import ReactDOM from 'react-dom'` |
67+
| `imrc→` | `import React, { Component } from 'react'` |
68+
| `imrcp→` | `import React, { Component } from 'react' & import PropTypes from 'prop-types'` |
69+
| `imrpc→` | `import React, { PureComponent } from 'react'` |
70+
| `imrpcp→` | `import React, { PureComponent } from 'react' & import PropTypes from 'prop-types'` |
71+
| `imrm→` | `import React, { memo } from 'react'` |
72+
| `imrmp→` | `import React, { memo } from 'react' & import PropTypes from 'prop-types'` |
73+
| `impt→` | `import PropTypes from 'prop-types'` |
74+
| `imrr→` | `import { BrowserRouter as Router, Route, NavLink} from 'react-router-dom'` |
75+
| `imbr→` | `import { BrowserRouter as Router} from 'react-router-dom'` |
76+
| `imbrc→` | `import { Route, Switch, NavLink, Link } from react-router-dom'` |
77+
| `imbrr→` | `import { Route } from 'react-router-dom'` |
78+
| `imbrs→` | `import { Switch } from 'react-router-dom'` |
79+
| `imbrl→` | `import { Link } from 'react-router-dom'` |
80+
| `imbrnl→` | `import { NavLink } from 'react-router-dom'` |
81+
| `imrs→` | `import React, { useState } from 'react'` |
82+
| `imrse→` | `import React, { useState, useEffect } from 'react'` |
83+
| `redux→` | `import { connect } from 'react-redux'` |
84+
| `rconst→` | `constructor(props) with this.state` |
85+
| `rconc→` | `constructor(props, context) with this.state` |
86+
| `est→` | `this.state = { }` |
87+
| `cwm→` | `componentWillMount = () => { }` DEPRECATED!!! |
88+
| `cdm→` | `componentDidMount = () => { }` |
89+
| `cwr→` | `componentWillReceiveProps = (nextProps) => { }` DEPRECATED!!! |
90+
| `scu→` | `shouldComponentUpdate = (nextProps, nextState) => { }` |
91+
| `cwup→` | `componentWillUpdate = (nextProps, nextState) => { }` DEPRECATED!!! |
92+
| `cdup→` | `componentDidUpdate = (prevProps, prevState) => { }` |
93+
| `cwun→` | `componentWillUnmount = () => { }` |
94+
| `gdsfp→` | `static getDerivedStateFromProps(nextProps, prevState) { }` |
95+
| `gsbu→` | `getSnapshotBeforeUpdate = (prevProps, prevState) => { }` |
96+
| `ren→` | `render() { return( ) }` |
97+
| `sst→` | `this.setState({ })` |
98+
| `ssf→` | `this.setState((state, props) => return { })` |
99+
| `props→` | `this.props.propName` |
100+
| `state→` | `this.state.stateName` |
101+
| `rcontext→` | `const ${1:contextName} = React.createContext()` |
102+
| `cref→` | `this.${1:refName}Ref = React.createRef()` |
103+
| `fref→` | `const ref = React.createRef()` |
104+
| `bnd→` | `this.methodName = this.methodName.bind(this)` |
105105

106106
## React Hooks
107107

@@ -159,11 +159,11 @@ I.E. `tsrcc`
159159
| `ptypes→` | `static propTypes = {}` |
160160

161161
## GraphQL
162-
| Prefix | Method |
163-
| --------: | ----------------------------------- |
164-
|`graphql→`|`import { compose, graphql } from react-apollo'`|
165-
| `expgql->`|`export default compose(graphql(1,ドル { name: 2ドル }))(3ドル)`|
166162

163+
| Prefix | Method |
164+
| ---------: | ------------------------------------------------------- |
165+
| `graphql→` | `import { compose, graphql } from react-apollo'` |
166+
| `expgql->` | `export default compose(graphql(1,ドル { name: 2ドル }))(3ドル)` |
167167

168168
## Console
169169

‎snippets/snippets.json

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,11 @@
256256
},
257257
"import React Browser Router": {
258258
"prefix": "imbr",
259-
"body": [
260-
"import { BrowserRouter as Router } from 'react-router-dom'",
261-
""
262-
]
259+
"body": ["import { BrowserRouter as Router } from 'react-router-dom'", ""]
263260
},
264261
"import React Browser Router - Route": {
265262
"prefix": "imbrr",
266-
"body": [
267-
"import { Route } from 'react-router-dom'",
268-
""
269-
]
263+
"body": ["import { Route } from 'react-router-dom'", ""]
270264
},
271265
"import React Browser Router - Route Combo": {
272266
"prefix": "imbrc",
@@ -277,24 +271,15 @@
277271
},
278272
"import React Browser Router - Switch": {
279273
"prefix": "imbrs",
280-
"body": [
281-
"import { Switch } from 'react-router-dom'",
282-
""
283-
]
274+
"body": ["import { Switch } from 'react-router-dom'", ""]
284275
},
285276
"import React Browser Router - Link": {
286277
"prefix": "imbrl",
287-
"body": [
288-
"import { Link } from 'react-router-dom'",
289-
""
290-
]
278+
"body": ["import { Link } from 'react-router-dom'", ""]
291279
},
292280
"import React Browser Router - NavLink": {
293281
"prefix": "imbrnl",
294-
"body": [
295-
"import { NavLink } from 'react-router-dom'",
296-
""
297-
]
282+
"body": ["import { NavLink } from 'react-router-dom'", ""]
298283
},
299284
"import redux statement": {
300285
"prefix": "redux",
@@ -1357,7 +1342,7 @@
13571342
"\t${1:effect}",
13581343
"\treturn () => {",
13591344
"\t\t${2:cleanup}",
1360-
"\t};",
1345+
"\t}",
13611346
"}, [${3:input}])"
13621347
]
13631348
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /