Skip to content

Commit d16336f

Browse files
Update frontend dev deps and eslint config (#4070)
* Bump the frontend-dev-minor-deps group with 10 updates | Package | From | To | | --- | --- | --- | | [@parcel/packager-raw-url](https://github.com/parcel-bundler/parcel) | `2.16.0` | `2.16.3` | | [@parcel/reporter-bundle-analyzer](https://github.com/parcel-bundler/parcel) | `2.16.0` | `2.16.3` | | [@parcel/transformer-webmanifest](https://github.com/parcel-bundler/parcel) | `2.16.0` | `2.16.3` | | [@testing-library/react](https://github.com/testing-library/react-testing-library) | `16.3.0` | `16.3.1` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.18.13` | `22.19.3` | | [fs-extra](https://github.com/jprichardson/node-fs-extra) | `11.3.2` | `11.3.3` | | [globals](https://github.com/sindresorhus/globals) | `16.4.0` | `16.5.0` | | [parcel](https://github.com/parcel-bundler/parcel) | `2.16.0` | `2.16.3` | | [prettier](https://github.com/prettier/prettier) | `3.6.2` | `3.7.4` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.46.3` | `8.51.0` | * Bump eslint-plugin-react-hooks from 5.2.0 to 7.0.1 Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 5.2.0 to 7.0.1. - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks) * Format the frontend (npm run fmt-frontend) * Replace deprecated ts-eslint config --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Danny Rorabaugh <imnasnainaec@gmail.com>
1 parent a25a810 commit d16336f

File tree

8 files changed

+699
-795
lines changed

8 files changed

+699
-795
lines changed

eslint.config.mjs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
import { defineConfig } from "eslint/config";
12
import pluginImport from "eslint-plugin-import";
23
import pluginReact from "eslint-plugin-react";
34
import pluginUnusedImports from "eslint-plugin-unused-imports";
45
import globals from "globals";
56
import typescriptEslint from "typescript-eslint";
67

7-
export default [
8+
export default defineConfig([
89
{
9-
ignores: ["**/*.dic.js", "**/api/**/*", "**/react-app-env.d.ts"],
10+
ignores: ["**/api/**/*", "**/react-app-env.d.ts"],
1011
},
1112
{
1213
languageOptions: {
@@ -44,8 +45,11 @@ export default [
4445
"import/resolver": { typescript: { alwaysTryTypes: true } },
4546
},
4647
},
47-
...typescriptEslint.config({
48-
extends: [typescriptEslint.configs.strict],
48+
...typescriptEslint.configs.strict.map((config) => ({
49+
...config,
50+
files: ["**/*.ts", "**/*.tsx"],
51+
})),
52+
{
4953
files: ["**/*.ts", "**/*.tsx"],
5054
rules: {
5155
"@typescript-eslint/explicit-function-return-type": [
@@ -57,5 +61,5 @@ export default [
5761
"@typescript-eslint/no-inferrable-types": "warn",
5862
"@typescript-eslint/no-non-null-assertion": "off",
5963
},
60-
}),
61-
];
64+
},
65+
]);

0 commit comments

Comments
 (0)