Extracting prettier config (#10847)
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
This commit is contained in:
parent
54cb0ecefe
commit
906811ef3c
3 changed files with 8 additions and 10 deletions
5
.prettierrc.json
Normal file
5
.prettierrc.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"printWidth": 80
|
||||
}
|
||||
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue