eslint-plugin-rxjs-x 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// package.json
|
|
2
2
|
var name = "eslint-plugin-rxjs-x";
|
|
3
|
-
var version = "0.8.
|
|
3
|
+
var version = "0.8.2";
|
|
4
4
|
|
|
5
5
|
// src/configs/recommended.ts
|
|
6
6
|
var createRecommendedConfig = (plugin2) => ({
|
|
@@ -288,6 +288,9 @@ function isProperty(node) {
|
|
|
288
288
|
function isPropertyDefinition(node) {
|
|
289
289
|
return node.type === _utils.AST_NODE_TYPES.PropertyDefinition;
|
|
290
290
|
}
|
|
291
|
+
function isSpreadElement(node) {
|
|
292
|
+
return node.type === _utils.AST_NODE_TYPES.SpreadElement;
|
|
293
|
+
}
|
|
291
294
|
function isUnaryExpression(node) {
|
|
292
295
|
return node.type === _utils.AST_NODE_TYPES.UnaryExpression;
|
|
293
296
|
}
|
|
@@ -3361,7 +3364,7 @@ var noUnnecessaryCollectionRule = ruleCreator({
|
|
|
3361
3364
|
}
|
|
3362
3365
|
return;
|
|
3363
3366
|
}
|
|
3364
|
-
if (args.length === 1 && couldBeObservable(firstArg)) {
|
|
3367
|
+
if (args.length === 1 && !isSpreadElement(firstArg) && couldBeObservable(firstArg)) {
|
|
3365
3368
|
context.report({
|
|
3366
3369
|
messageId: "forbidden",
|
|
3367
3370
|
node: node.callee,
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var name = "eslint-plugin-rxjs-x";
|
|
3
|
-
var version = "0.8.
|
|
3
|
+
var version = "0.8.2";
|
|
4
4
|
|
|
5
5
|
// src/configs/recommended.ts
|
|
6
6
|
var createRecommendedConfig = (plugin2) => ({
|
|
@@ -288,6 +288,9 @@ function isProperty(node) {
|
|
|
288
288
|
function isPropertyDefinition(node) {
|
|
289
289
|
return node.type === AST_NODE_TYPES.PropertyDefinition;
|
|
290
290
|
}
|
|
291
|
+
function isSpreadElement(node) {
|
|
292
|
+
return node.type === AST_NODE_TYPES.SpreadElement;
|
|
293
|
+
}
|
|
291
294
|
function isUnaryExpression(node) {
|
|
292
295
|
return node.type === AST_NODE_TYPES.UnaryExpression;
|
|
293
296
|
}
|
|
@@ -3361,7 +3364,7 @@ var noUnnecessaryCollectionRule = ruleCreator({
|
|
|
3361
3364
|
}
|
|
3362
3365
|
return;
|
|
3363
3366
|
}
|
|
3364
|
-
if (args.length === 1 && couldBeObservable(firstArg)) {
|
|
3367
|
+
if (args.length === 1 && !isSpreadElement(firstArg) && couldBeObservable(firstArg)) {
|
|
3365
3368
|
context.report({
|
|
3366
3369
|
messageId: "forbidden",
|
|
3367
3370
|
node: node.callee,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-rxjs-x",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.2",
|
|
5
5
|
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f",
|
|
6
6
|
"description": "ESLint v9+ plugin for RxJS",
|
|
7
7
|
"author": "Jason Weinzierl <weinzierljason@gmail.com>",
|