Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Chore: Update Eloquence 🆙 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed May 25, 2020
1 parent 37ceffb commit 966d327
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
17 changes: 4 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
module.exports = {
root: true,
extends: 'eloquence/node',
'use strict'

overrides: [
{
files: ['*.spec.js'],
parserOptions: {
// TODO: setup Babel
sourceType: 'script',
},
},
],
}
const eloquence = require('eslint-config-eloquence')

module.exports = eloquence({ target: 'node', esm: false })
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@crystal-ball/prettier-base": "2.2.0",
"@crystal-ball/semantic-release-base": "2.17.0",
"@types/jest": "25.2.1",
"eslint-config-eloquence": "13.8.0",
"eslint-config-eloquence": "14.1.1",
"husky": "4.2.5",
"jest": "25.4.0"
},
Expand Down
5 changes: 3 additions & 2 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ function load() {}
const FakeScreen = load(/* webpackChunkName: "HomeScreen" */ '@/screens/HomeScreen/HomeScreen')
`

it('transforms imports', () => {
const { code } = babel.transformSync(content, {
it('transforms imports', async () => {
const { code } = await babel.transformAsync(content, {
plugins: [[plugin, { aliases: { '@': '/User/Rad/Code/src', 'ENV': '/tmp/env' } }]],
// Tests the relative alias transforms
filename: '/User/Rad/Code/src/components/App/App.ts',
})

expect(code).toMatchSnapshot()
})

0 comments on commit 966d327

Please sign in to comment.