eslint-plugin-i18next
Advanced tools
Comparing version 6.0.0-1 to 6.0.0-2
@@ -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 @@ |
@@ -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); |
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
57935
1173