eslint-plugin-rxjs-x 0.6.0 → 0.6.1

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/README.md CHANGED
@@ -86,7 +86,7 @@ The package includes the following rules.
86
86
  | [no-connectable](docs/rules/no-connectable.md) | Disallow operators that return connectable observables. | | | | 💭 | |
87
87
  | [no-create](docs/rules/no-create.md) | Disallow the static `Observable.create` function. | ✅ 🔒 | | | 💭 | |
88
88
  | [no-cyclic-action](docs/rules/no-cyclic-action.md) | Disallow cyclic actions in effects and epics. | | | | 💭 | |
89
- | [no-explicit-generics](docs/rules/no-explicit-generics.md) | Disallow unnecessary explicit generic type arguments. | 🔒 | | | | |
89
+ | [no-explicit-generics](docs/rules/no-explicit-generics.md) | Disallow unnecessary explicit generic type arguments. | | | | | |
90
90
  | [no-exposed-subjects](docs/rules/no-exposed-subjects.md) | Disallow public and protected subjects. | 🔒 | | | 💭 | |
91
91
  | [no-finnish](docs/rules/no-finnish.md) | Disallow Finnish notation. | | | | 💭 | |
92
92
  | [no-floating-observables](docs/rules/no-floating-observables.md) | Require Observables to be handled appropriately. | 🔒 | | | 💭 | |
package/dist/index.d.mts CHANGED
@@ -53,7 +53,6 @@ declare const rxjsX: {
53
53
  rules: {
54
54
  'rxjs-x/no-async-subscribe': "error";
55
55
  'rxjs-x/no-create': "error";
56
- 'rxjs-x/no-explicit-generics': "error";
57
56
  'rxjs-x/no-exposed-subjects': "error";
58
57
  'rxjs-x/no-floating-observables': "error";
59
58
  'rxjs-x/no-ignored-default-value': "error";
package/dist/index.d.ts CHANGED
@@ -53,7 +53,6 @@ declare const rxjsX: {
53
53
  rules: {
54
54
  'rxjs-x/no-async-subscribe': "error";
55
55
  'rxjs-x/no-create': "error";
56
- 'rxjs-x/no-explicit-generics': "error";
57
56
  'rxjs-x/no-exposed-subjects': "error";
58
57
  'rxjs-x/no-floating-observables': "error";
59
58
  'rxjs-x/no-ignored-default-value': "error";
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.6.0";
3
+ var version = "0.6.1";
4
4
 
5
5
  // src/configs/recommended.ts
6
6
  var createRecommendedConfig = (plugin2) => ({
@@ -41,7 +41,6 @@ var createStrictConfig = (plugin2) => ({
41
41
  rules: {
42
42
  "rxjs-x/no-async-subscribe": "error",
43
43
  "rxjs-x/no-create": "error",
44
- "rxjs-x/no-explicit-generics": "error",
45
44
  "rxjs-x/no-exposed-subjects": "error",
46
45
  "rxjs-x/no-floating-observables": "error",
47
46
  "rxjs-x/no-ignored-default-value": "error",
@@ -1096,8 +1095,7 @@ var noExplicitGenericsRule = ruleCreator({
1096
1095
  defaultOptions: [],
1097
1096
  meta: {
1098
1097
  docs: {
1099
- description: "Disallow unnecessary explicit generic type arguments.",
1100
- recommended: "strict"
1098
+ description: "Disallow unnecessary explicit generic type arguments."
1101
1099
  },
1102
1100
  messages: {
1103
1101
  forbidden: "Explicit generic type arguments are forbidden."
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.6.0";
3
+ var version = "0.6.1";
4
4
 
5
5
  // src/configs/recommended.ts
6
6
  var createRecommendedConfig = (plugin2) => ({
@@ -41,7 +41,6 @@ var createStrictConfig = (plugin2) => ({
41
41
  rules: {
42
42
  "rxjs-x/no-async-subscribe": "error",
43
43
  "rxjs-x/no-create": "error",
44
- "rxjs-x/no-explicit-generics": "error",
45
44
  "rxjs-x/no-exposed-subjects": "error",
46
45
  "rxjs-x/no-floating-observables": "error",
47
46
  "rxjs-x/no-ignored-default-value": "error",
@@ -1096,8 +1095,7 @@ var noExplicitGenericsRule = ruleCreator({
1096
1095
  defaultOptions: [],
1097
1096
  meta: {
1098
1097
  docs: {
1099
- description: "Disallow unnecessary explicit generic type arguments.",
1100
- recommended: "strict"
1098
+ description: "Disallow unnecessary explicit generic type arguments."
1101
1099
  },
1102
1100
  messages: {
1103
1101
  forbidden: "Explicit generic type arguments are forbidden."
@@ -1,7 +1,5 @@
1
1
  # Disallow unnecessary explicit generic type arguments (`rxjs-x/no-explicit-generics`)
2
2
 
3
- 💼 This rule is enabled in the 🔒 `strict` config.
4
-
5
3
  <!-- end auto-generated rule header -->
6
4
 
7
5
  This rule prevents the use of explicit type arguments when the type arguments can be inferred.
@@ -21,3 +19,7 @@ Examples of **correct** code for this rule:
21
19
  import { BehaviorSubject } from "rxjs";
22
20
  const subject = new BehaviorSubject(42);
23
21
  ```
22
+
23
+ ## Known problems
24
+
25
+ - ([#77](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/issues/77)) Type unions cause false positives e.g. `new BehaviorSubject<number | null>(null)` will be incorrectly caught by this rule.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-rxjs-x",
3
3
  "type": "commonjs",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "packageManager": "yarn@4.5.3+sha512.3003a14012e2987072d244c720506549c1aab73ee728208f1b2580a9fd67b92d61ba6b08fe93f6dce68fd771e3af1e59a0afa28dd242dd0940d73b95fedd4e90",
6
6
  "description": "ESLint v9+ plugin for RxJS",
7
7
  "author": "Jason Weinzierl <weinzierljason@gmail.com>",