Skip to content

Commit

Permalink
chore: Fix formatting, update Pretter and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Nov 5, 2020
1 parent 559da33 commit 1261891
Show file tree
Hide file tree
Showing 8 changed files with 767 additions and 822 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Expand Up @@ -11,7 +11,9 @@
"printWidth": 70,
"useTabs": false,
"semi": false,
"trailingComma": "none"
"trailingComma": "none",
"arrowParens": "avoid",
"proseWrap": "never"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/Configuration.md
Expand Up @@ -181,7 +181,7 @@ Function that returns functions used to process the discovered components and ge
```javascript
module.exports = {
handlers: (componentPath) =>
handlers: componentPath =>
require('react-docgen').defaultHandlers.concat(
(documentation, path) => {
// Calculate a display name for components based upon the declared class name.
Expand Down Expand Up @@ -235,7 +235,7 @@ module.exports = {
// Suppress messages
info: () => {},
// Override display function
warn: (message) => console.warn(`NOOOOOO: ${message}`)
warn: message => console.warn(`NOOOOOO: ${message}`)
}
}
```
Expand Down Expand Up @@ -513,7 +513,7 @@ To disable sorting, use the identity function:

```javascript
module.exports = {
sortProps: (props) => props
sortProps: props => props
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/Cookbook.md
Expand Up @@ -13,8 +13,8 @@ let textarea
</Button>
<Textarea
value={value}
onChange={(e) => setValue(e.target.value)}
ref={(ref) => (textarea = ref)}
onChange={e => setValue(e.target.value)}
ref={ref => (textarea = ref)}
/>
</div>
```
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/src/components/CounterButton/Readme.md
Expand Up @@ -2,7 +2,7 @@
import Button from '../Button'
let ref
;<div>
<CounterButton ref={(r) => (ref = r)} />
<CounterButton ref={r => (ref = r)} />
<Button size="small" onClick={() => ref.set(0)}>
Reset
</Button>
Expand Down
2 changes: 1 addition & 1 deletion examples/sections/docs/One.md
Expand Up @@ -58,7 +58,7 @@ function eatFood(food) {
return ['No food']
}

return food.map((dish) => `No ${dish.toLowerCase()}`)
return food.map(dish => `No ${dish.toLowerCase()}`)
}

const food = ['Pizza', 'Buger', 'Coffee']
Expand Down
2 changes: 1 addition & 1 deletion examples/themed/src/Components/CounterButton/Readme.md
Expand Up @@ -2,7 +2,7 @@
import Button from '../Button'
let ref
;<div>
<CounterButton ref={(r) => (ref = r)} />
<CounterButton ref={r => (ref = r)} />
<Button size="small" onClick={() => ref.set(0)}>
Reset
</Button>
Expand Down

0 comments on commit 1261891

Please sign in to comment.