eslint-plugin-i18next
Advanced tools
Comparing version 6.0.0-7 to 6.0.0-8
@@ -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 @@ |
@@ -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 @@ }; |
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
61801
1148