swan-io/chicane

Unsafe ESLint errors

ahoyahoy opened this issue · 2 comments

Bug summary

I am getting eslint errors

const Router = createRouter({
    Home: '/',
    About: '/about',
    UserList: '/users',
    UserDetail: '/users/:userId',
})


// Unsafe assignment of an `any` value @typescript-eslint/no-unsafe-assignment
// Unsafe call of an `any` typed  value @typescript-eslint/no-unsafe-call

Library version

latest

Environment info

nextjs page

Steps to reproduce

Reproducible sample code

...

@ahoyahoy You don't provide a lot of informations here, but I guess you just need to restart the eslint server (Cmd + Shift + P in VScode):

Screenshot 2023-01-24 at 12 20 45

We use @typescript-eslint/parser + @typescript-eslint/eslint-plugin on our projects too and it gets it.

I'm sorry! Everything works perfectly now.