You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/options-manager.js
+45-24Lines changed: 45 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -43,12 +43,12 @@ const DEFAULT_CONFIG = {
43
43
};
44
44
45
45
/**
46
-
* Define the rules that are enabled only for specific version of Node.js based on `engines.node` in package.json or the `node-version` option.
46
+
* Define the rules config that are overwritten only for specific version of Node.js based on `engines.node` in package.json or the `node-version` option.
47
47
*
48
48
* The keys are rule names and the values are an Object with a valid semver (`4.0.0` is valid `4` is not) as keys and the rule configuration as values.
49
49
*
50
-
* Each entry define the rule config and the minimum Node.js version for which to set it.
51
-
* The entry with the highest version that is compliant with the `engines.node`/`node-version` range will be used.
50
+
* Each entry define the rule config and the maximum Node.js version for which to set it.
51
+
* The entry with the lowest version that is compliant with the `engines.node`/`node-version` range will be used.
52
52
*
53
53
* @type {Object}
54
54
*
@@ -66,26 +66,50 @@ const DEFAULT_CONFIG = {
66
66
* With `engines.node` set to `>=8` the rule `plugin/rule` will be used with the config `{prop: 'node-8-conf'}`.
0 commit comments