File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function get(option) {
23
23
* Gets "allowModules" setting.
24
24
*
25
25
* 1. This checks `options` property, then returns it if exists.
26
- * 2. This checks `settings.node` property, then returns it if exists.
26
+ * 2. This checks `settings.n` | `settings. node` property, then returns it if exists.
27
27
* 3. This returns `[]`.
28
28
*
29
29
* @param {RuleContext } context - The rule context.
@@ -32,7 +32,7 @@ function get(option) {
32
32
module . exports = function getAllowModules ( context ) {
33
33
return (
34
34
get ( context . options && context . options [ 0 ] ) ||
35
- get ( context . settings && context . settings . node ) ||
35
+ get ( context . settings && ( context . settings . n || context . settings . node ) ) ||
36
36
DEFAULT_VALUE
37
37
)
38
38
}
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ function parse(option) {
125
125
* Gets "convertPath" setting.
126
126
*
127
127
* 1. This checks `options` property, then returns it if exists.
128
- * 2. This checks `settings.node` property, then returns it if exists.
128
+ * 2. This checks `settings.n` | `settings. node` property, then returns it if exists.
129
129
* 3. This returns a function of identity.
130
130
*
131
131
* @param {RuleContext } context - The rule context.
@@ -134,7 +134,7 @@ function parse(option) {
134
134
module . exports = function getConvertPath ( context ) {
135
135
return (
136
136
parse ( context . options && context . options [ 0 ] ) ||
137
- parse ( context . settings && context . settings . node ) ||
137
+ parse ( context . settings && ( context . settings . n || context . settings . node ) ) ||
138
138
identity
139
139
)
140
140
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function get(option) {
23
23
* Gets "resolvePaths" setting.
24
24
*
25
25
* 1. This checks `options` property, then returns it if exists.
26
- * 2. This checks `settings.node` property, then returns it if exists.
26
+ * 2. This checks `settings.n` | `settings. node` property, then returns it if exists.
27
27
* 3. This returns `[]`.
28
28
*
29
29
* @param {RuleContext } context - The rule context.
@@ -32,7 +32,7 @@ function get(option) {
32
32
module . exports = function getResolvePaths ( context , optionIndex = 0 ) {
33
33
return (
34
34
get ( context . options && context . options [ optionIndex ] ) ||
35
- get ( context . settings && context . settings . node ) ||
35
+ get ( context . settings && ( context . settings . n || context . settings . node ) ) ||
36
36
DEFAULT_VALUE
37
37
)
38
38
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function get(option) {
23
23
* Gets "tryExtensions" setting.
24
24
*
25
25
* 1. This checks `options` property, then returns it if exists.
26
- * 2. This checks `settings.node` property, then returns it if exists.
26
+ * 2. This checks `settings.n` | `settings. node` property, then returns it if exists.
27
27
* 3. This returns `[".js", ".json", ".node"]`.
28
28
*
29
29
* @param {RuleContext } context - The rule context.
@@ -32,7 +32,7 @@ function get(option) {
32
32
module . exports = function getTryExtensions ( context , optionIndex = 0 ) {
33
33
return (
34
34
get ( context . options && context . options [ optionIndex ] ) ||
35
- get ( context . settings && context . settings . node ) ||
35
+ get ( context . settings && ( context . settings . n || context . settings . node ) ) ||
36
36
DEFAULT_VALUE
37
37
)
38
38
}
You can’t perform that action at this time.
0 commit comments