@putout/plugin-conditions 6.6.0 → 7.0.0

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
@@ -28,7 +28,6 @@ npm i @putout/plugin-conditions -D
28
28
  - ✅ [remove-same-values-condition](hremove-same-values-condition);
29
29
  - ✅ [remove-useless-else](#remove-ureless-else);
30
30
  - ✅ [remove-zero](#remove-zero);
31
- - ✅ [remove-undefined](#remove-undefined);
32
31
  - ✅ [simplify](#simplify);
33
32
  - ✅ [wrap-with-block](#wrap-with-block);
34
33
 
@@ -49,7 +48,6 @@ npm i @putout/plugin-conditions -D
49
48
  "conditions/remove-boolean": "on",
50
49
  "conditions/remove-constant": "on",
51
50
  "conditions/remove-zero": "on",
52
- "conditions/remove-undefined": "on",
53
51
  "conditions/remove-useless-else": "on",
54
52
  "conditions/remove-same-values-condition": "on",
55
53
  "conditions/merge-if-statements": "on",
@@ -324,24 +322,6 @@ if (!b) {}
324
322
  if (b) {}
325
323
  ```
326
324
 
327
- ## remove-undefined
328
-
329
- ### ❌ Example of incorrect code
330
-
331
- ```js
332
- if (b === undefined) {}
333
-
334
- if (b !== undefined) {}
335
- ```
336
-
337
- ### ✅ Example of correct code
338
-
339
- ```js
340
- if (!b) {}
341
-
342
- if (b) {}
343
- ```
344
-
345
325
  ## simplify
346
326
 
347
327
  ### ❌ Example of incorrect code
package/lib/index.js CHANGED
@@ -9,7 +9,6 @@ const convertEqualToStrictEqual = require('./convert-equal-to-strict-equal');
9
9
  const mergeIfStatements = require('./merge-if-statements');
10
10
  const removeBoolean = require('./remove-boolean');
11
11
  const removeZero = require('./remove-zero');
12
- const removeUndefined = require('./remove-undefined');
13
12
  const removeUselessElse = require('./remove-useless-else');
14
13
  const simplify = require('./simplify');
15
14
  const removeSameValuesCondition = require('./remove-same-values-condition');
@@ -28,7 +27,6 @@ module.exports.rules = {
28
27
  'merge-if-statements': mergeIfStatements,
29
28
  'remove-boolean': removeBoolean,
30
29
  'remove-zero': removeZero,
31
- 'remove-undefined': removeUndefined,
32
30
  'remove-useless-else': removeUselessElse,
33
31
  simplify,
34
32
  'remove-same-values-condition': removeSameValuesCondition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-conditions",
3
- "version": "6.6.0",
3
+ "version": "7.0.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds support of conditions transformations",
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const {createAvoidInAssertions} = require('../avoid-in-assertions');
4
-
5
- module.exports = createAvoidInAssertions(undefined);