npv2k1 / web3-todo-app

Detected usage of the any type JS-0323
Anti-pattern
Critical
a year agoa year old
Unexpected any. Specify a different type
 1/* eslint-disable no-console */
 2
 3import Web3 from "web3";
 4declare var window: any 5
 6const getWeb3 = async () => {
 7  // Wait for loading completion to avoid race conditions with web3 injection timing.
Unexpected any. Specify a different type
144        </button>
145      </div>
146      <div className="max-h-[600px] overflow-y-auto">
147        {tasks?.map((task: any, i: number) => (148          <div key={i} className="form-control border-b-2">
149            <label className="cursor-pointer label">
150              <span
Unexpected any. Specify a different type
 12
 13const Home = () => {
 14  const [account, setAccount] = useState<string>();
 15  const [tasks, setTasks] = useState<any>([]); 16  const [todoList, setTodoList] = useState<TodoList>();
 17  const [message, setMessage] = useState("");
 18  const [loading, setLoading] = useState(true);