eslint-plugin-formatjs
Advanced tools
Comparing version
@@ -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 @@ |
@@ -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 @@ }; |
@@ -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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
124889
0.6%2384
0.21%