Fixed some linting errors

Due to restrictions in the TypeScript compiler not all linting errors
can be fixed.