explcit any are now warning and fixed other ci problems in zoe's code

This commit is contained in:
Clément Le Bihan
2023-12-01 16:44:48 +01:00
parent a36afa3a47
commit 3f0c2472cb
3 changed files with 9 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
"rules": { "rules": {
"react/react-in-jsx-scope": "off", "react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "error", "@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-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off", "@typescript-eslint/no-empty-function": "off",
"no-restricted-imports": [ "no-restricted-imports": [

View File

@@ -2,4 +2,5 @@
.expo-shared/ .expo-shared/
dist/ dist/
.vscode/ .vscode/
.storybook/ .storybook/
android/

12
front/rnw.d.ts vendored
View File

@@ -1,7 +1,7 @@
import React from "react"; import React from 'react';
import "react-native"; import 'react-native';
declare module "react-native" { declare module 'react-native' {
interface PressableStateCallbackType { interface PressableStateCallbackType {
hovered?: boolean; hovered?: boolean;
focused?: boolean; focused?: boolean;
@@ -16,7 +16,7 @@ declare module "react-native" {
interface TextProps { interface TextProps {
href?: string; href?: string;
hrefAttrs?: { hrefAttrs?: {
rel?: "noreferrer"; rel?: 'noreferrer';
target?: string; target?: string;
}; };
} }
@@ -24,8 +24,8 @@ declare module "react-native" {
dataSet?: Record<string, string>; dataSet?: Record<string, string>;
href?: string; href?: string;
hrefAttrs?: { hrefAttrs?: {
rel: "noreferrer"; rel: 'noreferrer';
target?: "_blank"; target?: '_blank';
}; };
onClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void; onClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
} }