Skip to content

Commit dafcaef

Browse files
Update dependency @ota-meshi/eslint-plugin to ^0.13.0 (#468)
* Update dependency @ota-meshi/eslint-plugin to ^0.13.0 * format Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yosuke Ota <[email protected]>
1 parent d6e24b3 commit dafcaef

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// "forwardPorts": [],
2626

2727
// Use 'postCreateCommand' to run commands after the container is created.
28-
// "postCreateCommand": "yarn install",
28+
"postCreateCommand": "npm install",
2929

3030
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
3131
"remoteUser": "node"

lib/rules/no-dupe-disjunctions.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function containsAssertions(expression: NoParent<Expression>): boolean {
105105
},
106106
})
107107
return false
108-
} catch (error) {
108+
} catch (_error) {
109109
return true
110110
}
111111
}
@@ -126,7 +126,7 @@ function containsAssertionsOrUnknowns(
126126
},
127127
})
128128
return false
129-
} catch (error) {
129+
} catch (_error) {
130130
return true
131131
}
132132
}
@@ -187,7 +187,7 @@ function toNFA(
187187
),
188188
partial: containsAssertionsOrUnknowns(e),
189189
}
190-
} catch (error) {
190+
} catch (_error) {
191191
return {
192192
nfa: NFA.empty({
193193
maxCharacter: parser.ast.flags.unicode ? 0x10ffff : 0xffff,
@@ -280,7 +280,7 @@ function* iteratePartialAlternatives(
280280
const expression = partialParser.parse(alternative, nested)
281281
const nfa = NFA.fromRegex(expression, { maxCharacter })
282282
yield { nested, nfa }
283-
} catch (error) {
283+
} catch (_error) {
284284
// ignore error and skip this
285285
}
286286
}
@@ -318,7 +318,7 @@ function isSubsetOf(
318318
a.minimize()
319319
b.minimize()
320320
return a.structurallyEqual(b)
321-
} catch (error) {
321+
} catch (_error) {
322322
return null
323323
}
324324
}
@@ -359,7 +359,7 @@ function getSubsetRelation(
359359
return SubsetRelation.leftSupersetOfRight
360360
}
361361
return SubsetRelation.none
362-
} catch (error) {
362+
} catch (_error) {
363363
return SubsetRelation.unknown
364364
}
365365
}
@@ -427,7 +427,7 @@ function getPartialSubsetRelation(
427427
function faToSource(fa: FiniteAutomaton, flags: ReadonlyFlags): string {
428428
try {
429429
return JS.toLiteral(fa.toRegex(), { flags }).source
430-
} catch (error) {
430+
} catch (_error) {
431431
return "<ERROR>"
432432
}
433433
}

lib/rules/require-unicode-regexp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function isSyntacticallyCompatible(pattern: Pattern): false | Pattern {
4848
undefined,
4949
true,
5050
)
51-
} catch (error) {
51+
} catch (_error) {
5252
return false
5353
}
5454

lib/rules/sort-alternatives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function getLexicographicallySmallestFromAlternative(
205205
nfa.nodes.initial,
206206
nfa.nodes.finals,
207207
)
208-
} catch (error) {
208+
} catch (_error) {
209209
return undefined
210210
}
211211
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"eslint": ">=6.0.0"
5353
},
5454
"devDependencies": {
55-
"@ota-meshi/eslint-plugin": "^0.12.0",
55+
"@ota-meshi/eslint-plugin": "^0.13.0",
5656
"@types/chai": "^4.2.22",
5757
"@types/eslint": "^8.0.0",
5858
"@types/eslint-scope": "^3.7.1",

0 commit comments

Comments
 (0)