Skip to content

Commit 22bc1bf

Browse files
ArthelonCompuIves
authored andcommitted
fix: remove trailing comma all rule from lint-staged, remove trailing comma from scripts and config files (codesandbox#140)
Signed-off-by: Daniel Hsing <[email protected]>
1 parent 3683314 commit 22bc1bf

File tree

9 files changed

+136
-133
lines changed

9 files changed

+136
-133
lines changed

config/babel.dev.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
// Latest stable ECMAScript features
99
['es2015', { modules: false }],
1010
// JSX, Flow
11-
'react',
11+
'react'
1212
],
1313
plugins: [
1414
require.resolve('babel-plugin-transform-async-to-generator'),
@@ -22,9 +22,9 @@ module.exports = {
2222
require.resolve('react-loadable/babel'),
2323
{
2424
server: true,
25-
webpack: true,
26-
},
25+
webpack: true
26+
}
2727
],
28-
require.resolve('react-hot-loader/babel'),
29-
],
28+
require.resolve('react-hot-loader/babel')
29+
]
3030
};

config/babel.prod.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
// Latest stable ECMAScript features
88
['es2015', { modules: false }],
99
// JSX, Flow
10-
'react',
10+
'react'
1111
],
1212
plugins: [
1313
require.resolve('babel-plugin-transform-async-to-generator'),
@@ -21,14 +21,14 @@ module.exports = {
2121
require.resolve('react-loadable/babel'),
2222
{
2323
server: true,
24-
webpack: true,
25-
},
26-
],
24+
webpack: true
25+
}
26+
]
2727
// Optimization: hoist JSX that never changes out of render()
2828
// Disabled because of issues:
2929
// * https://github.com/facebookincubator/create-react-app/issues/525
3030
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
3131
// TODO: Enable again when these issues are resolved.
3232
// require.resolve('babel-plugin-transform-react-constant-elements')
33-
],
33+
]
3434
};

config/env.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ module.exports = Object.keys(process.env)
2525
{
2626
'process.env.NODE_ENV': NODE_ENV,
2727
'process.env.CODESANDBOX_HOST': JSON.stringify(getHost()),
28-
'process.env.LOCAL_SERVER': !!LOCAL_SERVER,
29-
},
28+
'process.env.LOCAL_SERVER': !!LOCAL_SERVER
29+
}
3030
);

config/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ module.exports = {
3838
embedSrc,
3939
appNodeModules: resolveApp('node_modules'),
4040
ownNodeModules: resolveApp('node_modules'),
41-
nodePaths,
41+
nodePaths
4242
};

0 commit comments

Comments
 (0)