File tree 6 files changed +180
-180
lines changed
eslint/rules/no-nested-require/examples
ndarray/base/strides2offset
6 files changed +180
-180
lines changed Original file line number Diff line number Diff line change @@ -36,17 +36,17 @@ result = linter.verify( code, {
36
36
} ) ;
37
37
console . log ( result ) ;
38
38
/* =>
39
- [
40
- {
41
- 'ruleId': 'no-nested-require',
42
- 'severity': 2,
43
- 'message': 'do not use nested property access for require() expressions',
44
- 'line': 2,
45
- 'column': 15,
46
- 'nodeType': 'CallExpression',
47
- 'source': 'var special = require( \'@stdlib /math\' ).base.special;',
48
- 'endLine': 2,
49
- 'endColumn': 29
50
- }
51
- ]
39
+ [
40
+ {
41
+ 'ruleId': 'no-nested-require',
42
+ 'severity': 2,
43
+ 'message': 'do not use nested property access for require() expressions',
44
+ 'line': 2,
45
+ 'column': 15,
46
+ 'nodeType': 'CallExpression',
47
+ 'source': 'var special = require( \'@stdlib /math\' ).base.special;',
48
+ 'endLine': 2,
49
+ 'endColumn': 29
50
+ }
51
+ ]
52
52
*/
Original file line number Diff line number Diff line change 1
1
{
2
- "usernames" : [],
3
- "protocol" : " https" ,
4
- "hostname" : " api.github.com" ,
5
- "port" : 443 ,
6
- "pathname" : " /" ,
7
- "page" : 1 ,
8
- "last_page" : 1 ,
9
- "per_page" : 1 ,
10
- "method" : " GET" ,
11
- "useragent" : " https://github.com/stdlib-js/stdlib/@stdlib/_tools/github/user-details" ,
12
- "accept" : " application/vnd.github.v3+json"
2
+ "usernames" : [],
3
+ "protocol" : " https" ,
4
+ "hostname" : " api.github.com" ,
5
+ "port" : 443 ,
6
+ "pathname" : " /" ,
7
+ "page" : 1 ,
8
+ "last_page" : 1 ,
9
+ "per_page" : 1 ,
10
+ "method" : " GET" ,
11
+ "useragent" : " https://github.com/stdlib-js/stdlib/@stdlib/_tools/github/user-details" ,
12
+ "accept" : " application/vnd.github.v3+json"
13
13
}
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ var err1 = new SyntaxError( 'bad syntax' );
26
26
27
27
var json = err2json ( err1 ) ;
28
28
/* e.g., returns
29
- {
30
- 'type': 'SyntaxError',
31
- 'name': 'SyntaxError',
32
- 'message': 'bad syntax',
33
- 'stack': '...'
34
- }
29
+ {
30
+ 'type': 'SyntaxError',
31
+ 'name': 'SyntaxError',
32
+ 'message': 'bad syntax',
33
+ 'stack': '...'
34
+ }
35
35
*/
36
36
37
37
var str = JSON . stringify ( json ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "options" : {
3
- "task" : " build"
4
- },
5
- "fields" : [
6
- {
7
- "field" : " src" ,
8
- "resolve" : true ,
9
- "relative" : true
10
- },
11
- {
12
- "field" : " include" ,
13
- "resolve" : true ,
14
- "relative" : true
15
- },
16
- {
17
- "field" : " libraries" ,
18
- "resolve" : false ,
19
- "relative" : false
20
- },
21
- {
22
- "field" : " libpath" ,
23
- "resolve" : true ,
24
- "relative" : false
25
- }
26
- ],
27
- "confs" : [
28
- {
29
- "task" : " build" ,
30
- "src" : [
31
- " ./src/rsqrt.c"
32
- ],
33
- "include" : [
34
- " ./include"
35
- ],
36
- "libraries" : [
37
- " -lm"
38
- ],
39
- "libpath" : [],
40
- "dependencies" : [
41
- " @stdlib/math/base/napi/unary" ,
42
- " @stdlib/math/base/special/sqrt"
43
- ]
44
- },
45
- {
46
- "task" : " benchmark" ,
47
- "src" : [
48
- " ./src/rsqrt.c"
49
- ],
50
- "include" : [
51
- " ./include"
52
- ],
53
- "libraries" : [
54
- " -lm"
55
- ],
56
- "libpath" : [],
57
- "dependencies" : [
58
- " @stdlib/math/base/special/sqrt"
59
- ]
60
- },
61
- {
62
- "task" : " examples" ,
63
- "src" : [
64
- " ./src/rsqrt.c"
65
- ],
66
- "include" : [
67
- " ./include"
68
- ],
69
- "libraries" : [
70
- " -lm"
71
- ],
72
- "libpath" : [],
73
- "dependencies" : [
74
- " @stdlib/math/base/special/sqrt"
75
- ]
76
- }
77
- ]
2
+ "options" : {
3
+ "task" : " build"
4
+ },
5
+ "fields" : [
6
+ {
7
+ "field" : " src" ,
8
+ "resolve" : true ,
9
+ "relative" : true
10
+ },
11
+ {
12
+ "field" : " include" ,
13
+ "resolve" : true ,
14
+ "relative" : true
15
+ },
16
+ {
17
+ "field" : " libraries" ,
18
+ "resolve" : false ,
19
+ "relative" : false
20
+ },
21
+ {
22
+ "field" : " libpath" ,
23
+ "resolve" : true ,
24
+ "relative" : false
25
+ }
26
+ ],
27
+ "confs" : [
28
+ {
29
+ "task" : " build" ,
30
+ "src" : [
31
+ " ./src/rsqrt.c"
32
+ ],
33
+ "include" : [
34
+ " ./include"
35
+ ],
36
+ "libraries" : [
37
+ " -lm"
38
+ ],
39
+ "libpath" : [],
40
+ "dependencies" : [
41
+ " @stdlib/math/base/napi/unary" ,
42
+ " @stdlib/math/base/special/sqrt"
43
+ ]
44
+ },
45
+ {
46
+ "task" : " benchmark" ,
47
+ "src" : [
48
+ " ./src/rsqrt.c"
49
+ ],
50
+ "include" : [
51
+ " ./include"
52
+ ],
53
+ "libraries" : [
54
+ " -lm"
55
+ ],
56
+ "libpath" : [],
57
+ "dependencies" : [
58
+ " @stdlib/math/base/special/sqrt"
59
+ ]
60
+ },
61
+ {
62
+ "task" : " examples" ,
63
+ "src" : [
64
+ " ./src/rsqrt.c"
65
+ ],
66
+ "include" : [
67
+ " ./include"
68
+ ],
69
+ "libraries" : [
70
+ " -lm"
71
+ ],
72
+ "libpath" : [],
73
+ "dependencies" : [
74
+ " @stdlib/math/base/special/sqrt"
75
+ ]
76
+ }
77
+ ]
78
78
}
Original file line number Diff line number Diff line change 1
1
{
2
- "options" : {},
3
- "fields" : [
4
- {
5
- "field" : " src" ,
6
- "resolve" : true ,
7
- "relative" : true
8
- },
9
- {
10
- "field" : " include" ,
11
- "resolve" : true ,
12
- "relative" : true
13
- },
14
- {
15
- "field" : " libraries" ,
16
- "resolve" : false ,
17
- "relative" : false
18
- },
19
- {
20
- "field" : " libpath" ,
21
- "resolve" : true ,
22
- "relative" : false
23
- }
24
- ],
25
- "confs" : [
26
- {
27
- "src" : [
28
- " ./src/main.c"
29
- ],
30
- "include" : [
31
- " ./include"
32
- ],
33
- "libraries" : [],
34
- "libpath" : [],
35
- "dependencies" : []
36
- }
37
- ]
2
+ "options" : {},
3
+ "fields" : [
4
+ {
5
+ "field" : " src" ,
6
+ "resolve" : true ,
7
+ "relative" : true
8
+ },
9
+ {
10
+ "field" : " include" ,
11
+ "resolve" : true ,
12
+ "relative" : true
13
+ },
14
+ {
15
+ "field" : " libraries" ,
16
+ "resolve" : false ,
17
+ "relative" : false
18
+ },
19
+ {
20
+ "field" : " libpath" ,
21
+ "resolve" : true ,
22
+ "relative" : false
23
+ }
24
+ ],
25
+ "confs" : [
26
+ {
27
+ "src" : [
28
+ " ./src/main.c"
29
+ ],
30
+ "include" : [
31
+ " ./include"
32
+ ],
33
+ "libraries" : [],
34
+ "libpath" : [],
35
+ "dependencies" : []
36
+ }
37
+ ]
38
38
}
Original file line number Diff line number Diff line change 1
1
{
2
- "options" : {},
3
- "fields" : [
4
- {
5
- "field" : " src" ,
6
- "resolve" : true ,
7
- "relative" : true
8
- },
9
- {
10
- "field" : " include" ,
11
- "resolve" : true ,
12
- "relative" : true
13
- },
14
- {
15
- "field" : " libraries" ,
16
- "resolve" : false ,
17
- "relative" : false
18
- },
19
- {
20
- "field" : " libpath" ,
21
- "resolve" : true ,
22
- "relative" : false
23
- }
24
- ],
25
- "confs" : [
26
- {
27
- "src" : [
28
- " ./src/main.c"
29
- ],
30
- "include" : [
31
- " ./include"
32
- ],
33
- "libraries" : [],
34
- "libpath" : [],
35
- "dependencies" : [
36
- " @stdlib/strided/base/smskmap"
37
- ]
38
- }
39
- ]
2
+ "options" : {},
3
+ "fields" : [
4
+ {
5
+ "field" : " src" ,
6
+ "resolve" : true ,
7
+ "relative" : true
8
+ },
9
+ {
10
+ "field" : " include" ,
11
+ "resolve" : true ,
12
+ "relative" : true
13
+ },
14
+ {
15
+ "field" : " libraries" ,
16
+ "resolve" : false ,
17
+ "relative" : false
18
+ },
19
+ {
20
+ "field" : " libpath" ,
21
+ "resolve" : true ,
22
+ "relative" : false
23
+ }
24
+ ],
25
+ "confs" : [
26
+ {
27
+ "src" : [
28
+ " ./src/main.c"
29
+ ],
30
+ "include" : [
31
+ " ./include"
32
+ ],
33
+ "libraries" : [],
34
+ "libpath" : [],
35
+ "dependencies" : [
36
+ " @stdlib/strided/base/smskmap"
37
+ ]
38
+ }
39
+ ]
40
40
}
You can’t perform that action at this time.
0 commit comments