Merge pull request #15344 from Snuffleupagus/prefer-array-find
Enable the `unicorn/prefer-array-find` ESLint plugin rule
This commit is contained in:
commit
cb8d56f988
@ -49,6 +49,7 @@
|
|||||||
"unicorn/no-instanceof-array": "error",
|
"unicorn/no-instanceof-array": "error",
|
||||||
"unicorn/no-new-buffer": "error",
|
"unicorn/no-new-buffer": "error",
|
||||||
"unicorn/no-useless-spread": "error",
|
"unicorn/no-useless-spread": "error",
|
||||||
|
"unicorn/prefer-array-find": "error",
|
||||||
"unicorn/prefer-array-flat": "error",
|
"unicorn/prefer-array-flat": "error",
|
||||||
"unicorn/prefer-array-flat-map": "error",
|
"unicorn/prefer-array-flat-map": "error",
|
||||||
"unicorn/prefer-array-index-of": "error",
|
"unicorn/prefer-array-index-of": "error",
|
||||||
|
@ -1027,9 +1027,7 @@ function stopServer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSession(browser) {
|
function getSession(browser) {
|
||||||
return sessions.filter(function (session) {
|
return sessions.find(session => session.name === browser);
|
||||||
return session.name === browser;
|
|
||||||
})[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function closeSession(browser) {
|
async function closeSession(browser) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user