CS3219-AY2324S1 / ay2324s1-course-assessment-g11

ay2324s1-course-assessment-g11 created by GitHub Classroom
MIT License
3 stars 2 forks source link

Add TypeScript parsing for ESLint #50

Closed yhtMinceraft1010X closed 12 months ago

yhtMinceraft1010X commented 12 months ago

Commit Message

ESLint sometimes marks TypeScript like type declarations as errors.

This is due to ESLint assuming the TypeScript file should only have
JavaScript syntax.

Let's add a TypeScript-specific parser and plugin.

Additional Notes

ESLint without the TypeScript plugin treats this as an error:

const app : Express = express();

This is due to the addition of :, which is not found in normal JavaScript code.