Skip to content

Commit

Permalink
Merge pull request #482 from USEPA/feature/apply-package-updates
Browse files Browse the repository at this point in the history
Feature/apply package updates
  • Loading branch information
courtneymyers authored Sep 6, 2024
2 parents 9aaa084 + 6858c13 commit b451c71
Show file tree
Hide file tree
Showing 10 changed files with 4,611 additions and 4,159 deletions.
26 changes: 0 additions & 26 deletions app/client/.eslintrc.cjs

This file was deleted.

35 changes: 35 additions & 0 deletions app/client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";

export default tseslint.config(
{
ignores: ["dist"],
},
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
"no-extra-boolean-cast": "off",
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true }, // allow export const foo = 4
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" }, // ignore unused args starting with _
],
},
},
);
Loading

0 comments on commit b451c71

Please sign in to comment.