Merge pull request #697 from metamaps/feature/random-updates

import fixes + random config updates
This commit is contained in:
Devin Howard 2016-10-01 11:36:57 +08:00 committed by GitHub
commit e5e8a3dcbb
4 changed files with 12 additions and 7 deletions

View file

@ -5,11 +5,13 @@ engines:
bundler-audit:
enabled: true
duplication:
enabled: false
enabled: true
config:
languages:
- ruby
- javascript
ruby:
mass_threshold: 36 # default: 18
javascript:
mass_threshold: 80 # default: 40
eslint:
enabled: true
channel: "eslint-3"

View file

@ -54,13 +54,13 @@ const Import = {
const topicsPromise = $.Deferred()
parse(topicsText, csv_parser_options, (err, data) => {
if (err) topicsPromise.reject(err)
if (err) return topicsPromise.reject(err)
topicsPromise.resolve(data.map(row => self.lowercaseKeys(row)))
})
const synapsesPromise = $.Deferred()
parse(synapsesText, csv_parser_options, (err, data) => {
if (err) synapsesPromise.reject(err)
if (err) return synapsesPromise.reject(err)
synapsesPromise.resolve(data.map(row => self.lowercaseKeys(row)))
})

View file

@ -63,7 +63,8 @@ const PasteInput = {
Import.handleJSON(text)
} else if (text.match(/\t/)) {
Import.handleTSV(text)
} else if (text.match(/","/)) {
} else {
// just try to see if CSV works
Import.handleCSV(text)
}
},

View file

@ -1,4 +1,3 @@
const path = require('path')
const webpack = require('webpack')
const NODE_ENV = process.env.NODE_ENV || 'development'
@ -15,9 +14,12 @@ if (NODE_ENV === 'production') {
}))
}
const devtool = NODE_ENV === 'production' ? undefined : 'cheap-module-eval-source-map'
const config = module.exports = {
context: __dirname,
plugins,
devtool,
module: {
loaders: [
{