Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyab authored and kof committed Dec 8, 2021
1 parent 22c6efd commit 2e22fe0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs/jss-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ import jss from 'jss'
const styles = {
container: {
height: 200,
width: data => data.width
width: (data) => data.width
},
button: {
color: data => data.button.color,
padding: data => data.button.padding
color: (data) => data.button.color,
padding: (data) => data.button.padding
}
}

Expand Down Expand Up @@ -457,7 +457,7 @@ import {getDynamicStyles} from 'jss'
const dynamicStyles = getDynamicStyles({
button: {
fontSize: 12,
color: data => data.color
color: (data) => data.color
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {getCss, getStyle, removeWhitespace, resetSheets} from '../../../tests/ut
import pluginNested from '../../jss-plugin-nested'
import pluginFunction from '.'

const settings = {createGenerateId: () => rule => `${rule.key}-id`}
const settings = {createGenerateId: () => (rule) => `${rule.key}-id`}

describe('jss-plugin-rule-value-function: plugin-nested', () => {
let jss
Expand All @@ -21,7 +21,7 @@ describe('jss-plugin-rule-value-function: plugin-nested', () => {
sheet = jss
.createStyleSheet(
{
a: data => ({
a: (data) => ({
color: data.color,
'@media all': {
color: 'green'
Expand Down Expand Up @@ -61,7 +61,7 @@ describe('jss-plugin-rule-value-function: plugin-nested', () => {
{
a: {
color: 'red',
'@media all': data => ({
'@media all': (data) => ({
color: data.color
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/jss/src/DomRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import toCssValue from './utils/toCssValue'
/**
* Cache the value from the first time a function is called.
*/
const memoize = fn => {
const memoize = (fn) => {
let value
return () => {
if (!value) value = fn()
Expand Down
6 changes: 3 additions & 3 deletions packages/react-jss/src/createUseStyles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('React-JSS: createUseStyles', () => {
it('should pass theme from props priority', () => {
const registry = new SheetsRegistry()

const styles = theme => ({
const styles = (theme) => ({
button: {color: theme.exampleColor || 'green'}
})

Expand All @@ -48,7 +48,7 @@ describe('React-JSS: createUseStyles', () => {

describe('multiple components that share same hook', () => {
const useStyles = createUseStyles({
item: props => ({
item: (props) => ({
color: props.active ? 'red' : 'blue',
'&:hover': {
fontSize: 60
Expand Down Expand Up @@ -139,7 +139,7 @@ describe('React-JSS: createUseStyles', () => {

const classes = []

const getClasses = currentClasses => {
const getClasses = (currentClasses) => {
classes.push(currentClasses)
}

Expand Down

0 comments on commit 2e22fe0

Please sign in to comment.