Skip to content

Commit 3323490

Browse files
fix(makie-repl, string): fix lint errors and indentation #7115
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4951a9d commit 3323490

File tree

3 files changed

+47
-42
lines changed

3 files changed

+47
-42
lines changed

lib/node_modules/@stdlib/_tools/makie/plugins/makie-repl/lib/main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ function plugin( dir, cwd ) {
4040
opts.cwd = dir;
4141
opts.stdio = 'inherit';
4242

43-
args = new Array( 2 );
44-
4543
// Environment variables:
46-
args[ 0 ] = 'REPL_DIR='+cwd;
47-
48-
// Target:
49-
args[ 1 ] = 'repl';
44+
args = [ 'REPL_DIR=' + cwd, 'repl' ];
5045

46+
// Spawn make process:
5147
spawn( 'make', args, opts );
5248
}
5349

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
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+
]
3838
}

lib/node_modules/@stdlib/string/lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ setReadOnly( string, 'nextCodePointIndex', require( '@stdlib/string/next-code-po
229229
*/
230230
setReadOnly( string, 'nextGraphemeClusterBreak', require( '@stdlib/string/next-grapheme-cluster-break' ) );
231231

232+
/**
233+
* @name numCodePoints
234+
* @memberof string
235+
* @readonly
236+
* @type {Function}
237+
* @see {@link module:@stdlib/string/num-code-points}
238+
*/
239+
setReadOnly( string, 'numCodePoints', require( '@stdlib/string/num-code-points' ) );
240+
232241
/**
233242
* @name numGraphemeClusters
234243
* @memberof string

0 commit comments

Comments
 (0)