Update prettier to 1.13.0

This commit is contained in:
Ken-Håvard Lieng 2018-05-28 03:16:05 +02:00
parent 21b6740e8b
commit 9529af55c7
9 changed files with 56 additions and 41 deletions

View File

@ -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
View 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'
]
}
}
};

View File

@ -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",

View File

@ -20,4 +20,7 @@ const mapState = createStructuredSelector({
const mapDispatch = { push, select, hideMenu };
export default connect(mapState, mapDispatch)(App);
export default connect(
mapState,
mapDispatch
)(App);

View File

@ -81,4 +81,7 @@ const mapDispatch = dispatch => ({
)
});
export default connect(mapState, mapDispatch)(Chat);
export default connect(
mapState,
mapDispatch
)(Chat);

View File

@ -16,4 +16,7 @@ const mapDispatch = {
select
};
export default connect(mapState, mapDispatch)(Connect);
export default connect(
mapState,
mapDispatch
)(Connect);

View File

@ -6,4 +6,7 @@ const mapDispatch = {
onClick: toggleMenu
};
export default connect(null, mapDispatch)(Navicon);
export default connect(
null,
mapDispatch
)(Navicon);

View File

@ -13,4 +13,7 @@ const mapDispatch = {
uploadCert
};
export default connect(mapState, mapDispatch)(Settings);
export default connect(
mapState,
mapDispatch
)(Settings);

View File

@ -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"