From 3f0c2472cbd04a8aba04cc68943bc00e1712c63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 1 Dec 2023 16:44:48 +0100 Subject: [PATCH] explcit any are now warning and fixed other ci problems in zoe's code --- front/.eslintrc.json | 2 +- front/.prettierignore | 3 ++- front/rnw.d.ts | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/front/.eslintrc.json b/front/.eslintrc.json index 030bfe1..503f017 100644 --- a/front/.eslintrc.json +++ b/front/.eslintrc.json @@ -18,7 +18,7 @@ "rules": { "react/react-in-jsx-scope": "off", "@typescript-eslint/no-unused-vars": "error", - "@typescript-eslint/no-explicit-any": "error", + "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-empty-function": "off", "no-restricted-imports": [ diff --git a/front/.prettierignore b/front/.prettierignore index f379c08..d03e2a6 100644 --- a/front/.prettierignore +++ b/front/.prettierignore @@ -2,4 +2,5 @@ .expo-shared/ dist/ .vscode/ -.storybook/ \ No newline at end of file +.storybook/ +android/ \ No newline at end of file diff --git a/front/rnw.d.ts b/front/rnw.d.ts index 09b2839..07ab04f 100644 --- a/front/rnw.d.ts +++ b/front/rnw.d.ts @@ -1,7 +1,7 @@ -import React from "react"; -import "react-native"; +import React from 'react'; +import 'react-native'; -declare module "react-native" { +declare module 'react-native' { interface PressableStateCallbackType { hovered?: boolean; focused?: boolean; @@ -16,7 +16,7 @@ declare module "react-native" { interface TextProps { href?: string; hrefAttrs?: { - rel?: "noreferrer"; + rel?: 'noreferrer'; target?: string; }; } @@ -24,8 +24,8 @@ declare module "react-native" { dataSet?: Record; href?: string; hrefAttrs?: { - rel: "noreferrer"; - target?: "_blank"; + rel: 'noreferrer'; + target?: '_blank'; }; onClick?: (e: React.MouseEvent) => void; }