eslint-plugin-format-message
Advanced tools
Comparing version 6.2.3 to 6.2.4
@@ -28,3 +28,3 @@ 'use strict' | ||
'format-message/no-invalid-translation': 2, | ||
'format-message/no-missing-params': [ 2, { allowNonLiteral: true } ], | ||
'format-message/no-missing-params': [2, { allowNonLiteral: true }], | ||
'format-message/no-missing-translation': 1, | ||
@@ -31,0 +31,0 @@ 'format-message/no-top-scope': 0, |
@@ -9,3 +9,3 @@ 'use strict' | ||
return { | ||
'JSXElement': function (node) { | ||
JSXElement: function (node) { | ||
var attributes = node.openingElement.attributes || [] | ||
@@ -12,0 +12,0 @@ attributes.forEach(function (attribute) { |
@@ -34,3 +34,3 @@ 'use strict' | ||
meta: { | ||
schema: [ { | ||
schema: [{ | ||
type: 'object', | ||
@@ -42,3 +42,3 @@ properties: { | ||
} | ||
} ] | ||
}] | ||
}, | ||
@@ -45,0 +45,0 @@ create: function (context) { |
@@ -20,3 +20,3 @@ 'use strict' | ||
// if a literal locale is specified, only validate that locale | ||
var locales = locale ? [ locale ] : Object.keys(translations) | ||
var locales = locale ? [locale] : Object.keys(translations) | ||
locales.forEach(function (locale) { | ||
@@ -23,0 +23,0 @@ var translation = translations[locale] && translations[locale][id] |
@@ -7,3 +7,3 @@ 'use strict' | ||
return { | ||
'CallExpression': function (node) { | ||
CallExpression: function (node) { | ||
util.setESLintContext(context) | ||
@@ -10,0 +10,0 @@ if (util.isFormatMessage(node.callee) || util.isRichMessage(node.callee)) { |
@@ -7,3 +7,3 @@ 'use strict' | ||
return { | ||
'JSXElement': function (node) { | ||
JSXElement: function (node) { | ||
util.setESLintContext(context) | ||
@@ -10,0 +10,0 @@ if (util.isTranslatableElement(node)) { |
@@ -7,3 +7,3 @@ 'use strict' | ||
return { | ||
'CallExpression': function (node) { | ||
CallExpression: function (node) { | ||
util.setESLintContext(context) | ||
@@ -14,3 +14,3 @@ if (util.isFormatMessage(node.callee) || util.isRichMessage(node.callee)) { | ||
}, | ||
'JSXElement': function (node) { | ||
JSXElement: function (node) { | ||
util.setESLintContext(context) | ||
@@ -17,0 +17,0 @@ if (util.isTranslatableElement(node)) { |
{ | ||
"name": "eslint-plugin-format-message", | ||
"version": "6.2.3", | ||
"version": "6.2.4", | ||
"description": "format-message i18n specific rules for ESLint", | ||
@@ -26,6 +26,6 @@ "author": "Andy VanWagoner <andy@vanwago.net>", | ||
"dependencies": { | ||
"format-message": "^6.2.3", | ||
"format-message-estree-util": "^6.1.0", | ||
"format-message-generate-id": "^6.2.3", | ||
"format-message-parse": "^6.2.3", | ||
"format-message": "^6.2.4", | ||
"format-message-estree-util": "^6.2.4", | ||
"format-message-generate-id": "^6.2.4", | ||
"format-message-parse": "^6.2.4", | ||
"lookup-closest-locale": "^6.2.0" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "7747f5533981f7a1a3cc83714e8ac02bafd9d8c4" | ||
"gitHead": "ece4dfacbec6af56e98897a3acbf0c99c64c2ed2" | ||
} |
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
66015