@ember-intl/lint
v0.9.2
Published
Official linter for ember-intl
Readme
@ember-intl/lint
Official linter for ember-intl
Quickstart
1. Install @ember-intl/lint as a development dependency.
pnpm add -D @ember-intl/lint2. In package.json, add the scripts lint:intl and lint:intl:fix. They will run as a part of lint and lint:fix.
{
"scripts": {
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" && pnpm format",
+ "lint:intl": "ember-intl-lint",
+ "lint:intl:fix": "ember-intl-lint --fix"
},
"devDependencies": {
"@ember-intl/lint": "...",
"concurrently": "...",
}
}Optional: Create a configuration file.
Lint Rules
| Name | ✅ | 🔧 | |:--|--|--| | no-inconsistent-messages | ✅ | | | no-missing-keys | ✅ | | | no-unused-keys | ✅ | |
Notations:
- ✅ Recommended (enabled by default)
- 🔧 Some issues reported by this rule can be fixed (or ignored) with
--fix
Compatibility
ember-intlv8.0.0 or above- Node.js v20 or above
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.
