Javascript: TypeScript Support

Created on 27 Feb 2020  路  3Comments  路  Source: airbnb/javascript

Hello, there are more and more projects developed based on TypeScript. Are there any plans to support TypeScript rules?

Although the existing Airbnb rules can support TypeScript, developers need to make some extensions themselves, so it may be easier to create ambiguity in the community.

I think if you plan to support TypeScript rules, you need to be like JavaScript rules. Supports both basic and react versions

Maybe like this:

module.exports = {
  // extends: "airbnb-base/typescript"
  extends: "airbnb/typescript"
}

All 3 comments

Duplicate of #1919.

It a duplicate, yes. But the referenced issue is locked and almost 2 years old. As @weihongyu12 says, TypeScript has gained massive adoption since then.

Is there a reason why you cannot provide a config for Typescript? An official recommendation on which config(s) to use/which rules to override would be helpful to a lot of people (including myself).

When Airbnb is ready to do so, this repo surely will.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephenkingsley picture stephenkingsley  路  3Comments

progre picture progre  路  3Comments

graingert picture graingert  路  3Comments

vsemozhetbyt picture vsemozhetbyt  路  3Comments

zurfyx picture zurfyx  路  3Comments