Huemul / chimi

Validate JavaScript code from your README
https://github.com/Huemul/chimi
33 stars 0 forks source link

Rework the dependencies config value #35

Closed gillchristian closed 6 years ago

gillchristian commented 6 years ago

This PR changes the way dependencies are handled.

// from this
[
  'trae',
  { module: 'ramda', name: 'R' },
  { module: './config', name: 'config', type: 'let' },
  { module: 'es6-promise' }
]

// to this
const trae = require('trae')
const R    = require('ramda')
let config = require('./config')
require('es6-promise')

Also added eslint since prettier only takes care of the formatting.