From f0b61a47ee8841e943c9e7c8ee789dbb04cc0d35 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 27 Feb 2022 11:18:16 +0200 Subject: [PATCH] Add eslint plugin:react --- .eslintrc.js | 7 + app/routes/beta.tsx | 8 +- app/routes/play/match.$id.tsx | 3 +- app/routes/play/rules.tsx | 14 +- .../$organization.$tournament/join-team.tsx | 2 +- .../$organization.$tournament/manage-team.tsx | 2 +- package-lock.json | 418 +++++++++++++++++- package.json | 1 + 8 files changed, 438 insertions(+), 17 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index fe40118fb..a7942aa58 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,10 +10,17 @@ module.exports = { "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:react/recommended", + "plugin:react/jsx-runtime", ], rules: { "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], "no-constant-condition": ["error", { checkLoops: false }], "no-console": ["error", { allow: ["warn", "error"] }], }, + settings: { + react: { + version: "detect", + }, + }, }; diff --git a/app/routes/beta.tsx b/app/routes/beta.tsx index 84b684383..f08b29dbf 100644 --- a/app/routes/beta.tsx +++ b/app/routes/beta.tsx @@ -6,13 +6,13 @@ export default function BetaPage() {

Beta of sendou.ink (Splatoon 3)

Hello there! I appreciate you taking time to visit this beta version of - sendou.ink's Splatoon 3 site. This being a beta there is a few things - you should consider: + sendou.ink's Splatoon 3 site. This being a beta there is a few + things you should consider: