airbnb / airbnb/javascript

Add support for TypeScript usage with typescript-eslint-parser

Open
#1,919 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
148k
Forks
26.6k
PR merge metrics
No merged PRs in 30d

Description

Using [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser), ESLint configurations can be enforced on TypeScript files.

Modifying `.js,.jsx` to `.js,.jsx,.ts,.tsx` in the following files would fix most of the issues with TypeScript integration:

- https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/rules/react.js
- https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with packages/eslint-config-airbnb/rules/react.js and packages/eslint-config-airbnb-base/rules/imports.js, inspecting how their .js and .jsx file extensions are configured. Update the relevant extension lists to include .ts and .tsx, and consider the work complete when ESLint configurations apply to TypeScript files through typescript-eslint-parser.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, typescript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.