@putout/engine-loader 12.3.1 → 13.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
@@ -32,6 +32,25 @@ module.exports.rules = {
32
32
  };
33
33
  ```
34
34
 
35
+ When you want to make it disabled by default, use:
36
+
37
+ ```js
38
+ module.exports.rules = {
39
+ 'remove-unused-variables': ['off', require('@putout/plugin-remove-unused-variables')],
40
+ };
41
+ ```
42
+
43
+ So when someone using your plugin, he needs to enable it:
44
+
45
+ ```json
46
+ {
47
+ "rules": {
48
+ "nested/remove-unused-variables": "on"
49
+ },
50
+ "plugins": ["nested"]
51
+ }
52
+ ```
53
+
35
54
  ## Env Variables
36
55
 
37
56
  When you need to get things working with Yarn PnP, and using custom `plugins` `formatters` or `processors`, add env variable
@@ -8,6 +8,7 @@ const supportedKeys = [
8
8
  'exclude',
9
9
  'rules',
10
10
  'declare',
11
+ 'scan',
11
12
  ];
12
13
 
13
14
  module.exports = ({plugin, rule}) => {
@@ -18,9 +18,8 @@ module.exports = (plugins) => {
18
18
  if (isArray(plugin)) {
19
19
  const [pluginName, fn] = plugin;
20
20
 
21
- if (isOff(fn)) {
21
+ if (isOff(fn))
22
22
  continue;
23
- }
24
23
 
25
24
  if (isOn(fn)) {
26
25
  result.push([pluginName]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-loader",
3
- "version": "12.3.1",
3
+ "version": "13.0.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "load plugins and prepare them to run",
@@ -24,7 +24,7 @@
24
24
  "report": "madrun report"
25
25
  },
26
26
  "dependencies": {
27
- "@putout/engine-parser": "^9.0.0",
27
+ "@putout/engine-parser": "^10.0.0",
28
28
  "diff-match-patch": "^1.0.4",
29
29
  "nano-memoize": "^3.0.11",
30
30
  "once": "^1.4.0",
@@ -54,7 +54,7 @@
54
54
  "estrace": "*",
55
55
  "just-camel-case": "^4.0.2",
56
56
  "lerna": "^6.0.1",
57
- "madrun": "^9.0.0",
57
+ "madrun": "^10.0.0",
58
58
  "mock-require": "^3.0.3",
59
59
  "montag": "^1.0.0",
60
60
  "nodemon": "^3.0.1",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "license": "MIT",
65
65
  "engines": {
66
- "node": ">=16"
66
+ "node": ">=18"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"