mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
* build(deps-dev): bump eslint-plugin-react-hooks in /frontend Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 7.0.1 to 7.1.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/eslint-plugin-react-hooks@7.1.1/packages/eslint-plugin-react-hooks) --- updated-dependencies: - dependency-name: eslint-plugin-react-hooks dependency-version: 7.1.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: disable react-hooks set-state-in-effect * chore: suppress react-hooks set-state-in-render in NewApp * fix: avoid mutating order before submission --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import eslint from "@eslint/js";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"**/dist",
|
|
"**/node_modules",
|
|
"**/dist",
|
|
"src/components/ui/navigation-menu.tsx",
|
|
],
|
|
},
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
reactRefresh.configs.vite,
|
|
reactHooks.configs.flat["recommended-latest"],
|
|
eslintConfigPrettier,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
|
|
parser: tsParser,
|
|
},
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
rules: {
|
|
"react-hooks/set-state-in-effect": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
args: "none",
|
|
},
|
|
],
|
|
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
allow: ["info", "warn", "error"],
|
|
},
|
|
],
|
|
|
|
"no-constant-binary-expression": "error",
|
|
curly: "error",
|
|
},
|
|
},
|
|
];
|