Turns out linting each file individually causes issues with the linter not being able to find the import types.