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": {
"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": [

View File

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

12
front/rnw.d.ts vendored
View File

@@ -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<string, string>;
href?: string;
hrefAttrs?: {
rel: "noreferrer";
target?: "_blank";
rel: 'noreferrer';
target?: '_blank';
};
onClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
}