Socket
Socket
Sign inDemoInstall

eslint-plugin-i18next

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-i18next - npm Package Compare versions

Comparing version 6.0.0-1 to 6.0.0-2

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [6.0.0-2](https://github.com/edvardchen/eslint-plugin-i18next/compare/v6.0.0-1...v6.0.0-2) (2022-05-15)
### Bug Fixes
* validate correctly call chains ([dc33346](https://github.com/edvardchen/eslint-plugin-i18next/commit/dc33346)), closes [#54](https://github.com/edvardchen/eslint-plugin-i18next/issues/54)
## [6.0.0-1](https://github.com/edvardchen/eslint-plugin-i18next/compare/v6.0.0-0...v6.0.0-1) (2022-05-15)

@@ -7,0 +14,0 @@

6

lib/rules/no-literal-string.js

@@ -282,7 +282,9 @@ /**

MemberExpression(node) {
'MemberExpression > Literal'(node) {
// allow Enum['value']
indicatorStack.push(true);
},
'MemberExpression:exit': endIndicator,
'MemberExpression > Literal:exit'(node) {
endIndicator();
},

@@ -289,0 +291,0 @@ TemplateLiteral(node) {

{
"name": "eslint-plugin-i18next",
"version": "6.0.0-1",
"version": "6.0.0-2",
"description": "ESLint plugin for i18n",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,5 +6,17 @@ const testFile = require('../../helpers/testFile');

valid: [testFile('valid.jsx')],
invalid: [{ ...testFile('invalid.jsx'), errors: 13 }],
invalid: [
{ ...testFile('invalid.jsx'), errors: 13 },
{
code: `export const validationSchema = Yup.object({
email: Yup
.string()
.email('hello')
.required('world'),
})`,
options: [{ mode: 'all' }],
errors: 2,
},
],
};
runTest('no-literal-string: mode all', cases);
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