Commit 9800d053 authored by Dan Abramov's avatar Dan Abramov Committed by Christopher Chedeau
Browse files

Add linting and nicer output

parent 2badb451
No related merge requests found
Showing with 46 additions and 11 deletions
+46 -11
{
"extends": "airbnb"
}
......@@ -5,8 +5,22 @@ var config = require('./webpack.config.dev');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
historyApiFallback: true,
colors: true,
noInfo: true
stats: {
hash: false,
version: false,
timings: false,
assets: false,
chunks: false,
modules: false,
reasons: false,
children: false,
source: false,
publicPath: false,
colors: true,
errors: true,
errorDetails: true,
warnings: true,
}
}).listen(3000, 'localhost', function (err, result) {
if (err) {
return console.log(err);
......
import React, { Component } from 'react';
import React from 'react';
import './App.css';
export default class App extends Component {
render() {
return (
<div className='App'>
Hello!
</div>
);
}
export default function App() {
return (
<div className="App">
Hello world!
</div>
);
}
......@@ -13,6 +13,13 @@ module.exports = {
publicPath: '/'
},
module: {
preLoaders: [
{
test: /\.js$/,
loader: 'eslint-loader',
include: path.resolve(__dirname, 'src')
}
],
loaders: [
{
test: /\.css$/,
......
......@@ -14,6 +14,13 @@ module.exports = {
publicPath: '/'
},
module: {
preLoaders: [
{
test: /\.js$/,
loader: 'eslint-loader',
include: path.resolve(__dirname, 'src')
}
],
loaders: [
{
test: /\.css$/,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment