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

Commit

Permalink
Lock file maintenance (#199)
Browse files Browse the repository at this point in the history
And:
* ncu -x deepmerge,ava -u
* yarn lint --fix
  • Loading branch information
renovate[bot] authored and edmorley committed Dec 13, 2019
1 parent 9d3af06 commit 3e7dc36
Show file tree
Hide file tree
Showing 5 changed files with 654 additions and 506 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@
},
"dependencies": {
"deepmerge": "^1.5.2",
"javascript-stringify": "^2.0.0"
"javascript-stringify": "^2.0.1"
},
"devDependencies": {
"@types/enhanced-resolve": "^3.0.6",
"@types/node": "^12.7.2",
"@types/node": "^12.12.17",
"@types/tapable": "^1.0.4",
"@types/webpack": "^4.32.2",
"auto-changelog": "^1.15.0",
"@types/webpack": "^4.41.0",
"auto-changelog": "^1.16.2",
"ava": "^1.4.1",
"babel-eslint": "^10.0.2",
"eslint": "^6.0.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-ava": "^9.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.0",
"prettier": "^1.18.2",
"typescript": "^3.5.3",
"webpack": "^4.39.2"
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-prettier": "^3.1.1",
"prettier": "^1.19.1",
"typescript": "^3.7.3",
"webpack": "^4.41.2"
}
}
5 changes: 4 additions & 1 deletion test/ChainedMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ test('getOrCompute', t => {
const map = new ChainedMap();

t.is(map.get('a'), undefined);
t.is(map.getOrCompute('a', () => 'alpha'), 'alpha');
t.is(
map.getOrCompute('a', () => 'alpha'),
'alpha',
);
t.is(map.get('a'), 'alpha');
});

Expand Down
19 changes: 12 additions & 7 deletions test/Orderable.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ test('ordering before', t => {
map.set('beta', new Ordered().set('beta', 'beta'));
map.set('alpha', new Ordered().set('alpha', 'alpha').before('beta'));

t.deepEqual(map.values().map(o => o.values()), [['alpha'], ['beta']]);
t.deepEqual(
map.values().map(o => o.values()),
[['alpha'], ['beta']],
);
});

test('ordering after', t => {
Expand All @@ -47,7 +50,10 @@ test('ordering after', t => {
map.set('beta', new Ordered().set('beta', 'beta').after('alpha'));
map.set('alpha', new Ordered().set('alpha', 'alpha'));

t.deepEqual(map.values().map(o => o.values()), [['alpha'], ['beta']]);
t.deepEqual(
map.values().map(o => o.values()),
[['alpha'], ['beta']],
);
});

test('ordering before and after', t => {
Expand All @@ -57,11 +63,10 @@ test('ordering before and after', t => {
map.set('gamma', new Ordered().set('gamma', 'gamma').after('beta'));
map.set('alpha', new Ordered().set('alpha', 'alpha').before('beta'));

t.deepEqual(map.values().map(o => o.values()), [
['alpha'],
['beta'],
['gamma'],
]);
t.deepEqual(
map.values().map(o => o.values()),
[['alpha'], ['beta'], ['gamma']],
);
});

test('merge with before', t => {
Expand Down
11 changes: 4 additions & 7 deletions test/Rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,8 @@ test('ordered oneOfs', t => {
.test(/\.beta$/)
.after('second');

t.deepEqual(rule.toConfig().oneOf.map(o => o.test), [
/\.alpha$/,
/\.first$/,
/\.second$/,
/\.beta$/,
/\.third$/,
]);
t.deepEqual(
rule.toConfig().oneOf.map(o => o.test),
[/\.alpha$/, /\.first$/, /\.second$/, /\.beta$/, /\.third$/],
);
});
Loading

0 comments on commit 3e7dc36

Please sign in to comment.