mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:01:05 +08:00
FIX example && linting
This commit is contained in:
parent
1dbfc36750
commit
8c7b889bb4
@ -4,16 +4,14 @@ const include = path.resolve(__dirname, '../');
|
||||
module.exports = {
|
||||
resolve: {
|
||||
// Add `.ts` and `.tsx` as a resolvable extension.
|
||||
extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"]
|
||||
extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js"]
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{ test: /\.css?$/, loaders: ['style', 'raw'], include },
|
||||
{ test: /\.json?$/, loaders: ['json'], include },
|
||||
{ test: /\.ts(x?)$/, loader: "babel-loader!ts-loader", include },
|
||||
],
|
||||
preLoaders: [
|
||||
{ test: /\.js$/, loader: "source-map-loader", include }
|
||||
{ test: /\.js$/, loader: "source-map-loader",enforce: "pre", include }
|
||||
]
|
||||
},
|
||||
externals: {
|
||||
|
@ -40,8 +40,7 @@ storiesOf("First Component", module)
|
||||
{ name: "twitter", value: "#00aced" },
|
||||
{ name: "facebook", value: "#3b5998" },
|
||||
]))
|
||||
.add("First Button", () => <button>Click me</button>)
|
||||
;
|
||||
.add("First Button", () => <button>Click me</button>);
|
||||
`.trim();
|
||||
|
||||
const Instructions = () => (
|
||||
|
@ -16,5 +16,4 @@ storiesOf("Second Component", module)
|
||||
{ name: "twitter", value: "#00aced" },
|
||||
{ name: "facebook", value: "#3b5998" },
|
||||
]))
|
||||
.add("Second Button", () => <button>Click me</button>)
|
||||
;
|
||||
.add("Second Button", () => <button>Click me</button>);
|
||||
|
@ -41,8 +41,7 @@ storiesOf("First Component", module)
|
||||
{ name: "twitter", value: "#00aced" },
|
||||
{ name: "facebook", value: "#3b5998" },
|
||||
]))
|
||||
.add("First Button", () => <button>Click me</button>)
|
||||
;
|
||||
.add("First Button", () => <button>Click me</button>);
|
||||
`.trim();
|
||||
|
||||
const Instructions = () => (
|
||||
|
Loading…
x
Reference in New Issue
Block a user