Socket
Book a DemoInstallSign in
Socket

eslint-plugin-formatjs

Package Overview
Dependencies
Maintainers
3
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-formatjs - npm Package Compare versions

Comparing version

to
2.3.3

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## [2.3.3](https://github.com/formatjs/formatjs/compare/eslint-plugin-formatjs@2.3.2...eslint-plugin-formatjs@2.3.3) (2020-05-22)
### Bug Fixes
* **eslint-plugin-formatjs:** add no-id to index ([8e5c0af](https://github.com/formatjs/formatjs/commit/8e5c0afe69944d52653b92c2f08e15363246834a))
* **eslint-plugin-formatjs:** fix issue where highlight was not on message/description node ([0ab41a9](https://github.com/formatjs/formatjs/commit/0ab41a96b1d0d5ffb35e0f7f8e407d621417a3f2))
## [2.3.2](https://github.com/formatjs/formatjs/compare/eslint-plugin-formatjs@2.3.1...eslint-plugin-formatjs@2.3.2) (2020-05-21)

@@ -8,0 +20,0 @@

1

dist/index.d.ts

@@ -14,2 +14,3 @@ declare const plugin: {

'no-multiple-whitespaces': import("eslint").Rule.RuleModule;
'no-id': import("eslint").Rule.RuleModule;
};

@@ -16,0 +17,0 @@ };

@@ -14,2 +14,3 @@ "use strict";

const no_multiple_whitespaces_1 = require("./rules/no-multiple-whitespaces");
const no_id_1 = require("./rules/no-id");
const plugin = {

@@ -28,2 +29,3 @@ rules: {

'no-multiple-whitespaces': no_multiple_whitespaces_1.default,
'no-id': no_id_1.default,
},

@@ -30,0 +32,0 @@ };

2

dist/rules/enforce-default-message.js

@@ -11,3 +11,3 @@ "use strict";

context.report({
node,
node: messageNode,
message: '`defaultMessage` must be a string literal (not function call or variable)',

@@ -14,0 +14,0 @@ });

@@ -11,3 +11,3 @@ "use strict";

context.report({
node,
node: descriptionNode,
message: '`description` has to be a string literal (not function call or variable)',

@@ -14,0 +14,0 @@ });

{
"name": "eslint-plugin-formatjs",
"version": "2.3.2",
"version": "2.3.3",
"description": "ESLint plugin for formatjs",

@@ -45,4 +45,3 @@ "main": "dist/index.js",

"ts-jest": "^25.4.0"
},
"gitHead": "f5a6ec400562cff75173a9e4837804d6dddf1217"
}
}

@@ -12,2 +12,3 @@ import enforceDescription from './rules/enforce-description';

import noMultipleWhitespaces from './rules/no-multiple-whitespaces';
import noId from './rules/no-id';
const plugin = {

@@ -26,2 +27,3 @@ rules: {

'no-multiple-whitespaces': noMultipleWhitespaces,
'no-id': noId,
},

@@ -28,0 +30,0 @@ };

@@ -24,3 +24,3 @@ import {Rule, Scope} from 'eslint';

context.report({
node,
node: messageNode as Node,
message:

@@ -27,0 +27,0 @@ '`defaultMessage` must be a string literal (not function call or variable)',

@@ -24,3 +24,3 @@ import {Rule, Scope} from 'eslint';

context.report({
node,
node: descriptionNode as Node,
message:

@@ -27,0 +27,0 @@ '`description` has to be a string literal (not function call or variable)',

@@ -15,3 +15,3 @@ import {Rule, Scope} from 'eslint';

context.report({
node: idPropNode as any,
node: idPropNode as Node,
message: 'Manual `id` are not allowed in message descriptor',

@@ -18,0 +18,0 @@ fix(fixer) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.