eslint-plugin-formatjs
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.5.4](https://github.com/formatjs/formatjs/compare/eslint-plugin-formatjs@1.5.3...eslint-plugin-formatjs@1.5.4) (2019-12-04) | ||
**Note:** Version bump only for package eslint-plugin-formatjs | ||
## [1.5.3](https://github.com/formatjs/formatjs/compare/eslint-plugin-formatjs@1.5.2...eslint-plugin-formatjs@1.5.3) (2019-12-02) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "eslint-plugin-formatjs", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "ESLint plugin for formatjs", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.js", | ||
"emoji-regex": "^8.0.0", | ||
"intl-messageformat-parser": "^3.5.0" | ||
"intl-messageformat-parser": "^3.5.1" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "60a1c098bf125dc99e40fef92cd8675efa4f6ac9" | ||
"gitHead": "b309862c356269d28405049ca5cfcc3edd633433" | ||
} |
@@ -175,25 +175,2 @@ # eslint-plugin-formatjs | ||
### `no-camel-case` | ||
This make sure placeholders are not camel-case. | ||
#### Why | ||
- This is to prevent case-sensitivity issue in certain translation vendors. | ||
```tsx | ||
import {defineMessages} from 'react-intl'; | ||
const messages = defineMessages({ | ||
// WORKS | ||
foo: { | ||
defaultMessage: 'foo {snake_case} {nothing}', | ||
}, | ||
// FAILS | ||
bar: { | ||
defaultMessage: 'foo {camelCase}', | ||
}, | ||
}); | ||
``` | ||
### `enforce-plural-rules` | ||
@@ -200,0 +177,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95430
315