build: fix eslint configuration with type checking