Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leonardodino/eslint-plugin-react-intl-static

:nerd_face: eslint rules for react-intl static analysis on messages
https://github.com/leonardodino/eslint-plugin-react-intl-static

eslint react-intl

Last synced: 20 days ago
JSON representation

:nerd_face: eslint rules for react-intl static analysis on messages

Awesome Lists containing this project

README

        

# eslint-plugin-react-intl-static
[![npm](https://img.shields.io/npm/v/eslint-plugin-react-intl-static)](https://www.npmjs.com/package/eslint-plugin-react-intl-static)
[![Build Status](https://github.com/leonardodino/eslint-plugin-react-intl-static/actions/workflows/ci.yml/badge.svg)](https://github.com/leonardodino/eslint-plugin-react-intl-static/actions/workflows/ci.yml)
[![Code Coverage](https://badgen.net/codecov/c/github/leonardodino/eslint-plugin-react-intl-static)](https://app.codecov.io/gh/leonardodino/eslint-plugin-react-intl-static)

rules to enforce statically analysable react-intl usage.

# Roadmap

### v0.0.0
- [x] detect basic violations in ``
- [x] detect basic violations in `formatMessage({})`
- [x] detect basic violations in `defineMessages({})`
- [x] basic fixes for ``
- [x] basic fixes for `formatMessage({})`
- [x] basic fixes for `defineMessages({})`
- [x] handle basic interaction of `defineMessages` + `formatMessage`
- [x] handle fallback interaction of `defineMessages` + `formatMessage`
- [x] add option for allowing computed keys in `defineMessages`

### v0.0.1
- [x] follow [default eslint repo format](https://github.com/eslint/generator-eslint)
- [x] add [tests](https://eslint.org/docs/developer-guide/nodejs-api#ruletester)

### v0.0.2
- [x] improve `eslint` version compatibility
- [ ] add docs

### v0.1.0
- [ ] disallow renaming/aliasing of functions/imports
- [ ] disallow passing `formatMessage` as a positional argument

### v0.2.0
- [ ] move to typescript
- [ ] remove this roadmap

### v0.3.0
- [ ] separate useful functions into it's own package
- [ ] monorepo, maybe :thinking: