eslint-plugin-proper-ternary
eslint-plugin-i18n-json
eslint-plugin-proper-ternary | eslint-plugin-i18n-json | |
---|---|---|
1 | 2 | |
95 | 172 | |
- | 0.0% | |
3.2 | 0.0 | |
about 3 years ago | about 1 year ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
eslint-plugin-proper-ternary
-
Rethinking the JavaScript ternary operator
Here's an eslint plugin for applying controls to what kinds of (and locations for) ternaries you want to allow, including nested ternaries: https://github.com/getify/eslint-plugin-proper-ternary
eslint-plugin-i18n-json
-
Typed translations in Angular
The situation is partly saved by the eslint plugin eslint-plugin-i18n-json, which checks the identity of the keys in json files, but it's also not enough for reliability.
-
How do you manage translation files ?
If you don't want to write it yourself and you use eslint, you can check out eslint-plugin-i18n-json, it seems to do what you're looking for with i18n-json/identical-keys.
What are some alternatives?
eslint-plugin-unicorn - More than 100 powerful ESLint rules
eslint-plugin-boundaries - Eslint plugin checking architecture boundaries between elements
xo - ❤️ JavaScript linter with great defaults [Moved to: https://github.com/xojs/xo]
globalize - A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
XO - ❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
laravel-translations-loader - Webpack loader to import Laravel translation files (PHP or JSON) into your JS bundle as JSON.
eslint-plugin-snakecasejs - :pencil2: ESLint Plugin: enforce snake_case syntax on variables and function names
kanatran - Kanatran has been discontinued. Please read our announcement post.
typed-i18n