Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-formatjs

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-formatjs - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

8

CHANGELOG.md

@@ -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 @@

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc