Skip to content

Commit be8a0ab

Browse files
committed
Removed trailing commas with prettier
1 parent 3b27643 commit be8a0ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+76
-76
lines changed

asyncValidation/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

asyncValidation/src/AsyncValidationForm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const renderField = ({
77
input,
88
label,
99
type,
10-
meta: {asyncValidating, touched, error},
10+
meta: {asyncValidating, touched, error}
1111
}) => (
1212
<div>
1313
<label>{label}</label>
@@ -48,5 +48,5 @@ export default reduxForm({
4848
form: 'asyncValidation', // a unique identifier for this form
4949
validate,
5050
asyncValidate,
51-
asyncBlurFields: ['username'],
51+
asyncBlurFields: ['username']
5252
})(AsyncValidationForm)

asyncValidation/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
Code,
99
Markdown,
1010
Values,
11-
generateExampleBreadcrumbs,
11+
generateExampleBreadcrumbs
1212
} from 'redux-form-website-template'
1313

1414
const dest = document.getElementById('content')
1515
const reducer = combineReducers({
16-
form: reduxFormReducer, // mounted under "form"
16+
form: reduxFormReducer // mounted under "form"
1717
})
1818
const store = (window.devToolsExtension
1919
? window.devToolsExtension()(createStore)

asyncValidation/src/reducer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import validate from './validate'
44

55
const reducer = combineReducers({
66
form: formReducer.validation({
7-
asyncValidation: validate, // "asyncValidation" is the form name given to reduxForm() decorator
8-
}),
7+
asyncValidation: validate // "asyncValidation" is the form name given to reduxForm() decorator
8+
})
99
})
1010

1111
export default reducer

fieldArrays/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

fieldArrays/src/FieldArraysForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ const FieldArraysForm = props => {
9191

9292
export default reduxForm({
9393
form: 'fieldArrays', // a unique identifier for this form
94-
validate,
94+
validate
9595
})(FieldArraysForm)

fieldArrays/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
Code,
99
Markdown,
1010
Values,
11-
generateExampleBreadcrumbs,
11+
generateExampleBreadcrumbs
1212
} from 'redux-form-website-template'
1313

1414
const dest = document.getElementById('content')
1515
const reducer = combineReducers({
16-
form: reduxFormReducer, // mounted under "form"
16+
form: reduxFormReducer // mounted under "form"
1717
})
1818
const store = (window.devToolsExtension
1919
? window.devToolsExtension()(createStore)

fieldLevelValidation/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

fieldLevelValidation/src/FieldLevelValidationForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ const FieldLevelValidationForm = props => {
7171
}
7272

7373
export default reduxForm({
74-
form: 'fieldLevelValidation', // a unique identifier for this form
74+
form: 'fieldLevelValidation' // a unique identifier for this form
7575
})(FieldLevelValidationForm)

fieldLevelValidation/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
Code,
99
Markdown,
1010
Values,
11-
generateExampleBreadcrumbs,
11+
generateExampleBreadcrumbs
1212
} from 'redux-form-website-template'
1313

1414
const dest = document.getElementById('content')
1515
const reducer = combineReducers({
16-
form: reduxFormReducer, // mounted under "form"
16+
form: reduxFormReducer // mounted under "form"
1717
})
1818
const store = (window.devToolsExtension
1919
? window.devToolsExtension()(createStore)

immutable/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

immutable/src/ImmutableForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ const ImmutableForm = props => {
3636

3737
export default reduxForm({
3838
form: 'immutableExample', // a unique identifier for this form
39-
validate,
39+
validate
4040
})(ImmutableForm)

immutable/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
App,
77
Code,
88
Markdown,
9-
generateExampleBreadcrumbs,
9+
generateExampleBreadcrumbs
1010
} from 'redux-form-website-template'
1111
import Values from './ImmutableValues'
1212
import reducer from './reducer'

initializeFromState/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

initializeFromState/src/InitializeFromStateForm.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const data = {
1010
sex: 'female',
1111
employed: true,
1212
favoriteColor: 'Blue',
13-
bio: 'Born to write amazing Redux code.',
13+
bio: 'Born to write amazing Redux code.'
1414
}
1515
const colors = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet']
1616

@@ -106,13 +106,13 @@ let InitializeFromStateForm = props => {
106106

107107
// Decorate with reduxForm(). It will read the initialValues prop provided by connect()
108108
InitializeFromStateForm = reduxForm({
109-
form: 'initializeFromState', // a unique identifier for this form
109+
form: 'initializeFromState' // a unique identifier for this form
110110
})(InitializeFromStateForm)
111111

112112
// You have to connect() to any reducers that you wish to connect to yourself
113113
InitializeFromStateForm = connect(
114114
state => ({
115-
initialValues: state.account.data, // pull initial values from account reducer
115+
initialValues: state.account.data // pull initial values from account reducer
116116
}),
117117
{load: loadAccount} // bind account loading action creator
118118
)(InitializeFromStateForm)

initializeFromState/src/account.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const reducer = (state = {}, action) => {
55
switch (action.type) {
66
case LOAD:
77
return {
8-
data: action.data,
8+
data: action.data
99
}
1010
default:
1111
return state

initializeFromState/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import {
88
Code,
99
Markdown,
1010
Values,
11-
generateExampleBreadcrumbs,
11+
generateExampleBreadcrumbs
1212
} from 'redux-form-website-template'
1313
import account from './account'
1414

1515
const dest = document.getElementById('content')
1616

1717
const reducer = combineReducers({
1818
account,
19-
form: reduxFormReducer, // mounted under "form"
19+
form: reduxFormReducer // mounted under "form"
2020
})
2121
const store = (window.devToolsExtension
2222
? window.devToolsExtension()(createStore)

material-ui/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

material-ui/src/MaterialUiForm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const validate = values => {
1414
'lastName',
1515
'email',
1616
'favoriteColor',
17-
'notes',
17+
'notes'
1818
]
1919
requiredFields.forEach(field => {
2020
if (!values[field]) {
@@ -133,5 +133,5 @@ const MaterialUiForm = props => {
133133
export default reduxForm({
134134
form: 'MaterialUiForm', // a unique identifier for this form
135135
validate,
136-
asyncValidate,
136+
asyncValidate
137137
})(MaterialUiForm)

material-ui/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import {
1111
Code,
1212
Markdown,
1313
Values,
14-
generateExampleBreadcrumbs,
14+
generateExampleBreadcrumbs
1515
} from 'redux-form-website-template'
1616
injectTapEventPlugin()
1717
const dest = document.getElementById('content')
1818
const reducer = combineReducers({
19-
form: reduxFormReducer, // mounted under "form"
19+
form: reduxFormReducer // mounted under "form"
2020
})
2121
const store = (window.devToolsExtension
2222
? window.devToolsExtension()(createStore)

normalizing/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

normalizing/src/FieldNormalizingForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ const FieldNormalizingForm = props => {
8383

8484
export default reduxForm({
8585
form: 'normalizing', // a unique identifier for this form
86-
initialValues: {min: '1', max: '10'},
86+
initialValues: {min: '1', max: '10'}
8787
})(FieldNormalizingForm)

normalizing/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
Code,
99
Markdown,
1010
Values,
11-
generateExampleBreadcrumbs,
11+
generateExampleBreadcrumbs
1212
} from 'redux-form-website-template'
1313

1414
const dest = document.getElementById('content')
1515
const reducer = combineReducers({
16-
form: reduxFormReducer, // mounted under "form"
16+
form: reduxFormReducer // mounted under "form"
1717
})
1818
const store = (window.devToolsExtension
1919
? window.devToolsExtension()(createStore)

react-widgets/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

react-widgets/src/ReactWidgetsForm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ momentLocaliser(moment)
1414
const colors = [
1515
{color: 'Red', value: 'ff0000'},
1616
{color: 'Green', value: '00ff00'},
17-
{color: 'Blue', value: '0000ff'},
17+
{color: 'Blue', value: '0000ff'}
1818
]
1919

2020
const renderDropdownList = ({input, data, valueField, textField}) => (
@@ -96,7 +96,7 @@ let ReactWidgetsForm = props => {
9696
}
9797

9898
ReactWidgetsForm = reduxForm({
99-
form: 'reactWidgets', // a unique identifier for this form
99+
form: 'reactWidgets' // a unique identifier for this form
100100
})(ReactWidgetsForm)
101101

102102
export default ReactWidgetsForm

react-widgets/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import {
99
Code,
1010
Markdown,
1111
Values,
12-
generateExampleBreadcrumbs,
12+
generateExampleBreadcrumbs
1313
} from 'redux-form-website-template'
1414

1515
const dest = document.getElementById('content')
1616
const reducer = combineReducers({
17-
form: reduxFormReducer, // mounted under "form"
17+
form: reduxFormReducer // mounted under "form"
1818
})
1919
const store = (window.devToolsExtension
2020
? window.devToolsExtension()(createStore)

remoteSubmit/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

remoteSubmit/src/RemoteSubmitButton.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const style = {
77
width: 140,
88
display: 'block',
99
margin: '20px auto',
10-
fontSize: '16px',
10+
fontSize: '16px'
1111
}
1212

1313
const RemoteSubmitButton = ({dispatch}) => (

remoteSubmit/src/RemoteSubmitForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ const RemoteSubmitForm = props => {
3838

3939
export default reduxForm({
4040
form: 'remoteSubmit', // a unique identifier for this form
41-
onSubmit: submit, // submit function must be passed to onSubmit
41+
onSubmit: submit // submit function must be passed to onSubmit
4242
})(RemoteSubmitForm)

remoteSubmit/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
Code,
99
Markdown,
1010
Values,
11-
generateExampleBreadcrumbs,
11+
generateExampleBreadcrumbs
1212
} from 'redux-form-website-template'
1313

1414
const dest = document.getElementById('content')
1515
const reducer = combineReducers({
16-
form: reduxFormReducer, // mounted under "form"
16+
form: reduxFormReducer // mounted under "form"
1717
})
1818
const store = (window.devToolsExtension
1919
? window.devToolsExtension()(createStore)

remoteSubmit/src/submit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ function submit(values) {
88
if (!['john', 'paul', 'george', 'ringo'].includes(values.username)) {
99
throw new SubmissionError({
1010
username: 'User does not exist',
11-
_error: 'Login failed!',
11+
_error: 'Login failed!'
1212
})
1313
} else if (values.password !== 'redux-form') {
1414
throw new SubmissionError({
1515
password: 'Wrong password',
16-
_error: 'Login failed!',
16+
_error: 'Login failed!'
1717
})
1818
} else {
1919
window.alert(`You submitted:\n\n${JSON.stringify(values, null, 2)}`)

selectingFormValues/devServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var compiler = webpack(config)
99
app.use(
1010
require('webpack-dev-middleware')(compiler, {
1111
noInfo: true,
12-
publicPath: config.output.publicPath,
12+
publicPath: config.output.publicPath
1313
})
1414
)
1515

0 commit comments

Comments
 (0)