Extracting prettier config (#10847)

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
This commit is contained in:
Rafi 2020-10-15 07:58:31 +05:30 committed by GitHub
parent 54cb0ecefe
commit 906811ef3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

5
.prettierrc.json Normal file
View file

@ -0,0 +1,5 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
}

View file

@ -2,6 +2,8 @@ const path = require('path');
const marked = require('marked');
const renderer = new marked.Renderer();
const prettierConfig = require('../../../.prettierrc.json');
module.exports = {
stories: ['../**/__stories__/*.stories.jsx'],
addons: [
@ -13,11 +15,7 @@ module.exports = {
{
name: '@storybook/addon-storysource',
loaderOptions: {
prettierConfig: {
singleQuote: true,
trailingComma: 'all',
printWidth: 80,
},
prettierConfig,
},
},
],

View file

@ -73,11 +73,6 @@
"svgo --disable=removeViewBox --pretty"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
},
"repository": {
"type": "git",
"url": "git+https://github.com/thepracticaldev/dev.to.git"