Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-format-message

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-format-message - npm Package Compare versions

Comparing version 6.2.3 to 6.2.4

2

index.js

@@ -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"
}
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