Skip to content

created modal component and Create role Modal Form #101

created modal component and Create role Modal Form

created modal component and Create role Modal Form #101

Triggered via pull request July 20, 2024 23:02
Status Failure
Total duration 24s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L1
Replace `C,·useState·}·from·'react'` with `orm·}·from·"@remix-run/react"`
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L2
Replace `orm·}·from·'@remix-run/react';` with `C,·useState·}·from·"react";⏎`
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L3
Replace `'./CreateRoleModal'` with `"./CreateRoleModal"`
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L5
The variable `CreateRoleFormProps` should be named `CreateRoleFormProperties`. A more descriptive name will do too
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L11
Replace `··const·[roleName,·setRoleName]·=·useState(''` with `const·[roleName,·setRoleName]·=·useState(""`
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L12
Replace `····const·[roleDescription,·setRoleDescription]·=·useState(''` with `··const·[roleDescription,·setRoleDescription]·=·useState(""`
eslint: app/components/CreateRoleFormModal/CreateRoleForm.tsx#L14
Please rename the variable `e`. Suggested names are: `error`, `event_`. A more descriptive name will do too
eslint: app/components/CreateRoleFormModal/CreateRoleModal.tsx#L9
'onClose' is defined but never used. Allowed unused args must match /^_/u