facebook / fbt

A JavaScript Internationalization Framework
https://facebook.github.io/fbt
MIT License
3.89k stars 178 forks source link

Feature: publish eslint rules to help promote better Fbt API usage practices #329

Open kayhadrin opened 2 years ago

kayhadrin commented 2 years ago

🚀 Feature Proposal: publish fbt eslint rules

Following #327 (from @alexandernanberg), we should expose a bunch of our internal eslint rules to help developers use the Fbt API properly.

Motivation

Across a large UI app, it's important to ensure that all strings are localized. Having some eslint rules to help spot easy issues would help drive adoption, quality & consistency in a project's codebase.

Here are some of the eslint rules we have implemented internally:

They've not yet been exported to the OSS community yet, but we'd welcome a motivated contributor to port them to the OSS community.

The fbt eslint rules could be defined in this repo as more yarn workspaces, and published as new npm packages.

alexandernanberg commented 2 years ago

I'd be happy to give away the eslint-plugin-fbt name on npm when/if this happens!