kentcdodds / es6-todomvc

The vanillajs example converted to es6
https://kcd.im/webpack-workshop-repo
MIT License
351 stars 358 forks source link

Minor fix #3

Closed evenstensberg closed 8 years ago

evenstensberg commented 8 years ago

Added import plugin so people can use npm run validate straight away

evenstensberg commented 8 years ago

--FWIW, It's just a utility, but a nice one 🙈

kentcdodds commented 8 years ago

Ah! Yes, so when you come the repo and install dependencies, do you get an error when trying to run the validate script?

evenstensberg commented 8 years ago

Yea, but test it yourself first, since I had an additional import statement, of which I commented out, could be that as well! Regardless, running eslint after validate warned that it should be installed, so its a nice thing to have anyway.

Also, at Lesson 6 ( egghead) you should have introduced --only=dev as a flagg instead when installing as a dep, since it is new for webpack 2.0, as you probably already know 😄

kentcdodds commented 8 years ago

Ah, so yeah, we don't need to use the imports plugin because we're using the kentcdodds/es-next module for our eslint config. Now if instead we did:

extends: ['kentcdodds/es-next', 'kentcdodds/import', 'kentcdodds/webpack']

(which is what we probably should do), then we'd need to install:

npm install --save-dev eslint-plugin-import eslint-import-resolver-webpack

I may do this later. But for now we'll leave it as-is. Thanks!