Skip to content

Commit

Permalink
chore(deps-dev): bump eslint from 8.57.0 to 9.10.0 (#503)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump eslint from 8.57.0 to 9.10.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.0...v9.10.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fixup: manually migrate config to v9

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruce Felt <[email protected]>
  • Loading branch information
dependabot[bot] and freakyfelt authored Sep 9, 2024
1 parent 271a404 commit a9666cf
Show file tree
Hide file tree
Showing 5 changed files with 459 additions and 881 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
3 changes: 2 additions & 1 deletion lib/store/indexed-statements-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class IndexedStatementsStore
const statementIds = [...this.#byAction.globAll];

if (this.#byAction.exact.has(action)) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
statementIds.push(...this.#byAction.exact.get(action)!);
}
for (const [regexp, sid] of this.#byAction.regex) {
Expand Down Expand Up @@ -188,6 +188,7 @@ export class IndexedStatementsStore
s.actionsByType.regex.map((re): [RegExp, string] => [re, s.sid]),
);
this.#byAction.regex = [
// eslint-disable-next-line @typescript-eslint/no-unused-vars
...this.#byAction.regex.filter(([_regex, id]) => !sids.includes(id)),
...regex,
];
Expand Down
Loading

0 comments on commit a9666cf

Please sign in to comment.