refactor: enable lint in storybook

This commit is contained in:
Clark Du 2018-03-21 09:52:08 +08:00
parent f4a34c5664
commit 55dd9e76e2
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
2 changed files with 6 additions and 6 deletions

View File

@ -3,3 +3,4 @@ node_modules
dist dist
.nuxt .nuxt
examples/coffeescript/pages/index.vue examples/coffeescript/pages/index.vue
!examples/storybook/.storybook

View File

@ -1,10 +1,9 @@
const webpack = require('webpack')
const path = require('path') const path = require('path')
const nxtConf = require('../nuxt.config') const nuxtConf = require('../nuxt.config')
module.exports = (sBaseConfig, configType, defaultConfig) => { module.exports = (sBaseConfig, configType, defaultConfig) => {
const srcDir = `../${nxtConf.srcDir||''}` const srcDir = `../${nuxtConf.srcDir || ''}`
const rootDir = `../${nxtConf.rootDir||''}` const rootDir = `../${nuxtConf.rootDir || ''}`
Object.assign(defaultConfig.resolve.alias, { Object.assign(defaultConfig.resolve.alias, {
'~~': path.resolve(__dirname, rootDir), '~~': path.resolve(__dirname, rootDir),