-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3040 from storybooks/storysource-adjustments
Addon Storysource improvements
- Loading branch information
Showing
14 changed files
with
341 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* global window */ | ||
/* eslint-disable global-require, import/no-dynamic-require */ | ||
|
||
import React from 'react'; | ||
|
||
/* | ||
eslint-disable some kind | ||
of multi line ignore, though | ||
I'm not sure it's possible. | ||
*/ | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
|
||
/* eslint-disable-line */ const x = 0; | ||
|
||
// eslint-disable-line | ||
storiesOf('Foo', module) | ||
.add('bar', () => <div>baz</div>); | ||
|
||
/* | ||
This is actually a good comment that will help | ||
users to understand what's going on here. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const defaultOptions = { | ||
prettierConfig: { | ||
printWidth: 120, | ||
tabWidth: 2, | ||
bracketSpacing: true, | ||
trailingComma: 'es5', | ||
singleQuote: true, | ||
}, | ||
uglyCommentsRegex: [/^eslint-.*/, /^global.*/], | ||
}; | ||
|
||
export default defaultOptions; |
Oops, something went wrong.