Update prettier to 1.13.0
This commit is contained in:
parent
21b6740e8b
commit
9529af55c7
@ -1,32 +0,0 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"modules": false,
|
||||
"loose": true
|
||||
}
|
||||
],
|
||||
"@babel/preset-react",
|
||||
[
|
||||
"@babel/preset-stage-0",
|
||||
{
|
||||
"decoratorsLegacy": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": ["react-hot-loader/babel"]
|
||||
},
|
||||
"test": {
|
||||
"plugins": ["@babel/plugin-transform-modules-commonjs"]
|
||||
},
|
||||
"production": {
|
||||
"plugins": [
|
||||
"@babel/plugin-transform-react-inline-elements",
|
||||
"@babel/plugin-transform-react-constant-elements"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
32
client/.babelrc.js
Normal file
32
client/.babelrc.js
Normal file
@ -0,0 +1,32 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
modules: false,
|
||||
loose: true
|
||||
}
|
||||
],
|
||||
'@babel/preset-react',
|
||||
[
|
||||
'@babel/preset-stage-0',
|
||||
{
|
||||
decoratorsLegacy: true
|
||||
}
|
||||
]
|
||||
],
|
||||
env: {
|
||||
development: {
|
||||
plugins: ['react-hot-loader/babel']
|
||||
},
|
||||
test: {
|
||||
plugins: ['@babel/plugin-transform-modules-commonjs']
|
||||
},
|
||||
production: {
|
||||
plugins: [
|
||||
'@babel/plugin-transform-react-inline-elements',
|
||||
'@babel/plugin-transform-react-constant-elements'
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
@ -41,7 +41,7 @@
|
||||
"mini-css-extract-plugin": "^0.4.0",
|
||||
"postcss-flexbugs-fixes": "^3.3.1",
|
||||
"postcss-loader": "^2.1.3",
|
||||
"prettier": "1.12.1",
|
||||
"prettier": "1.13.0",
|
||||
"style-loader": "^0.21.0",
|
||||
"through2": "^2.0.3",
|
||||
"webpack": "^4.9.1",
|
||||
|
@ -20,4 +20,7 @@ const mapState = createStructuredSelector({
|
||||
|
||||
const mapDispatch = { push, select, hideMenu };
|
||||
|
||||
export default connect(mapState, mapDispatch)(App);
|
||||
export default connect(
|
||||
mapState,
|
||||
mapDispatch
|
||||
)(App);
|
||||
|
@ -81,4 +81,7 @@ const mapDispatch = dispatch => ({
|
||||
)
|
||||
});
|
||||
|
||||
export default connect(mapState, mapDispatch)(Chat);
|
||||
export default connect(
|
||||
mapState,
|
||||
mapDispatch
|
||||
)(Chat);
|
||||
|
@ -16,4 +16,7 @@ const mapDispatch = {
|
||||
select
|
||||
};
|
||||
|
||||
export default connect(mapState, mapDispatch)(Connect);
|
||||
export default connect(
|
||||
mapState,
|
||||
mapDispatch
|
||||
)(Connect);
|
||||
|
@ -6,4 +6,7 @@ const mapDispatch = {
|
||||
onClick: toggleMenu
|
||||
};
|
||||
|
||||
export default connect(null, mapDispatch)(Navicon);
|
||||
export default connect(
|
||||
null,
|
||||
mapDispatch
|
||||
)(Navicon);
|
||||
|
@ -13,4 +13,7 @@ const mapDispatch = {
|
||||
uploadCert
|
||||
};
|
||||
|
||||
export default connect(mapState, mapDispatch)(Settings);
|
||||
export default connect(
|
||||
mapState,
|
||||
mapDispatch
|
||||
)(Settings);
|
||||
|
@ -6318,9 +6318,9 @@ preserve@^0.2.0:
|
||||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||
|
||||
prettier@1.12.1:
|
||||
version "1.12.1"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"
|
||||
prettier@1.13.0:
|
||||
version "1.13.0"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.0.tgz#054de8d5fb1a4405c845d16183f58a2c301f6f16"
|
||||
|
||||
pretty-format@^23.0.0:
|
||||
version "23.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user