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-7 to 6.0.0-8

2

CHANGELOG.md

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

## [6.0.0-8](https://github.com/edvardchen/eslint-plugin-i18next/compare/v6.0.0-7...v6.0.0-8) (2023-03-23)
## [6.0.0-7](https://github.com/edvardchen/eslint-plugin-i18next/compare/v6.0.0-6...v6.0.0-7) (2023-03-20)

@@ -7,0 +9,0 @@

3

lib/rules/no-literal-string.js

@@ -255,4 +255,3 @@ /**

TemplateLiteral(node) {
// treat template literals without expressions as normal strings
if (node.expressions.length && !validateTemplate) {
if (!validateTemplate) {
return;

@@ -259,0 +258,0 @@ }

{
"name": "eslint-plugin-i18next",
"version": "6.0.0-7",
"version": "6.0.0-8",
"description": "ESLint plugin for i18n",

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

import('hello');
// don't validate template literals with expressions by default
var aa = `hello world, ${name}`;
// don't validate template by default
var aa = `hello world`;

@@ -6,0 +6,0 @@ function bar(a = 'jianhua') { }

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

},
{
code: 'const a = `afoo ${abc}`;',
options: [{ mode: 'all', words: { exclude: ['^foo'] } }],
},
],

@@ -26,7 +22,2 @@ invalid: [

},
{
code: 'const a = `afoo`;',
options: [{ mode: 'all', words: { exclude: ['^foo'] } }],
errors: 1,
},
],

@@ -33,0 +24,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