Skip to content

Commit 4594085

Browse files
authored
Update dependencies (#780)
1 parent df218a2 commit 4594085

File tree

2 files changed

+30
-37
lines changed

2 files changed

+30
-37
lines changed

package.json

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,24 @@
5050
"devDependencies": {
5151
"@ava/babel": "^1.0.1",
5252
"@lubien/fixture-beta-package": "^1.0.0-beta.1",
53-
"@typescript-eslint/parser": "^2.33.0",
54-
"ava": "^3.8.2",
53+
"@typescript-eslint/parser": "^3.4.0",
54+
"ava": "^3.9.0",
5555
"babel-eslint": "^10.1.0",
56-
"chalk": "^4.0.0",
57-
"eslint": "^7.0.0",
56+
"chalk": "^4.1.0",
57+
"eslint": "^7.3.0",
5858
"eslint-ava-rule-tester": "^4.0.0",
59-
"eslint-plugin-eslint-plugin": "^2.2.1",
60-
"execa": "^4.0.1",
59+
"eslint-plugin-eslint-plugin": "^2.3.0",
60+
"execa": "^4.0.2",
6161
"listr": "^0.14.3",
62-
"nyc": "^15.0.1",
62+
"nyc": "^15.1.0",
6363
"outdent": "^0.7.1",
6464
"pify": "^5.0.0",
65-
"typescript": "^3.9.2",
66-
"vue-eslint-parser": "^7.0.0",
67-
"xo": "^0.30.0"
65+
"typescript": "^3.9.5",
66+
"vue-eslint-parser": "^7.1.0",
67+
"xo": "^0.32.0"
6868
},
6969
"peerDependencies": {
70-
"eslint": ">=7.0.0"
70+
"eslint": ">=7.3.0"
7171
},
7272
"ava": {
7373
"babel": true,
@@ -95,6 +95,7 @@
9595
{
9696
"files": "rules/utils/*.js",
9797
"rules": {
98+
"eslint-plugin/prefer-object-rule": "off",
9899
"eslint-plugin/require-meta-docs-url": "off"
99100
}
100101
},
@@ -107,14 +108,7 @@
107108
],
108109
"rules": {
109110
"strict": "error",
110-
"array-callback-return": [
111-
"error",
112-
{
113-
"allowImplicit": true
114-
}
115-
],
116-
"unicorn/no-null": "error",
117-
"unicorn/string-content": "off"
111+
"unicorn/no-null": "error"
118112
}
119113
}
120114
}

test/prefer-array-find.js

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -312,24 +312,23 @@ ruleTester.run('prefer-array-find', rule, {
312312
]
313313
}]
314314
},
315-
// // TODO: enable this test when ESLint support `nullish coalescing operator`
316-
// {
317-
// code: 'const [foo = a ?? b] = array.filter(bar)',
318-
// output: 'const [foo = a ?? b] = array.filter(bar)',
319-
// errors: [{
320-
// messageId: ERROR_DESTRUCTURING_DECLARATION,
321-
// suggestions: [
322-
// {
323-
// messageId: SUGGESTION_NULLISH_COALESCING_OPERATOR,
324-
// output: 'const foo = array.find(bar) ?? (a ?? b)'
325-
// },
326-
// {
327-
// messageId: SUGGESTION_LOGICAL_OR_OPERATOR,
328-
// output: 'const foo = array.find(bar) || (a ?? b)'
329-
// }
330-
// ]
331-
// }]
332-
// },
315+
{
316+
code: 'const [foo = a ?? b] = array.filter(bar)',
317+
output: 'const [foo = a ?? b] = array.filter(bar)',
318+
errors: [{
319+
messageId: ERROR_DESTRUCTURING_DECLARATION,
320+
suggestions: [
321+
{
322+
messageId: SUGGESTION_NULLISH_COALESCING_OPERATOR,
323+
output: 'const foo = array.find(bar) ?? (a ?? b)'
324+
},
325+
{
326+
messageId: SUGGESTION_LOGICAL_OR_OPERATOR,
327+
output: 'const foo = array.find(bar) || (a ?? b)'
328+
}
329+
]
330+
}]
331+
},
333332
{
334333
code: 'const [foo = a || b] = array.filter(bar)',
335334
output: 'const [foo = a || b] = array.filter(bar)',

0 commit comments

Comments
 (0)