Svelte: Add typescript linting for compiler source

Created on 28 May 2019  路  2Comments  路  Source: sveltejs/svelte

The compiler source are now all in typescript maybe it can be a good idea to add a tslint.json to ensure the consistency of the code.

Related to #2890, c8fbde410bee905a86c13b397beb06d89b8b0585.

By the way 8fd94aea6960e3db7db9bed4841b9b5380b27491 remove some functionalities from eslint but in c8fbde410bee905a86c13b397beb06d89b8b0585 eslint seems to be removed.

Most helpful comment

Rather than using TSLint which will be deprecated, it would be better to add TypeScript support to ESLint instead. See https://github.com/typescript-eslint/typescript-eslint.

I've been using this in my projects and other than some known performance issues (which I'm sure will be ironed out soon) it works great. Some TSLint rules are not yet available but are rapidly being added to that project.

All 2 comments

Rather than using TSLint which will be deprecated, it would be better to add TypeScript support to ESLint instead. See https://github.com/typescript-eslint/typescript-eslint.

I've been using this in my projects and other than some known performance issues (which I'm sure will be ironed out soon) it works great. Some TSLint rules are not yet available but are rapidly being added to that project.

Yes you're right ! Didn't notice that 馃槃

I will close this one and open a new one: Add TypeScript support to ESLint.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mmjmanders picture mmjmanders  路  3Comments

bestguy picture bestguy  路  3Comments

ricardobeat picture ricardobeat  路  3Comments

sskyy picture sskyy  路  3Comments

thoughtspile picture thoughtspile  路  3Comments