FIX example && linting

This commit is contained in:
Norbert de Langen 2017-07-04 22:21:28 +02:00
parent 1dbfc36750
commit 8c7b889bb4
4 changed files with 6 additions and 11 deletions

View File

@ -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: {

View File

@ -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 = () => (

View File

@ -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>);

View File

@ -41,8 +41,7 @@ storiesOf("First Component", module)
{ name: "twitter", value: "#00aced" },
{ name: "facebook", value: "#3b5998" },
]))
.add("First Button", () => &lt;button&gt;Click me&lt;/button&gt;)
;
.add("First Button", () => &lt;button&gt;Click me&lt;/button&gt;);
`.trim();
const Instructions = () => (