Skip to content

Commit b0aa7a1

Browse files
fix: resolve linting issues in spellcheck, ndarray, and clip-path modules
--- 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: na - 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 7891615 commit b0aa7a1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

etc/eslint/rules/spellcheck.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ rules[ '@cspell/spellchecker' ] = [ 'warn', {
116116
'trigamma',
117117
'uncapitalize',
118118
'unregularized',
119-
'Fréchet'
119+
'Fréchet',
120+
'échet'
120121
]
121122
}
122123
}];

lib/node_modules/@stdlib/ndarray/to-fancy/lib/set_slice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function setSlice( target, property, value, receiver, ctx ) {
117117
// Manually resolve the minimum data type of the closest "kind" necessary for storing a scalar value, as `minDataType()` defaults to unsigned integer data types when a scalar value is greater than or equal to zero...
118118
if ( value < 0 ) {
119119
vdt = minDataType( value );
120-
} else if ( value <= INT8_MAX ) { // TODO: consider moving this logic to `@stdlib/ndarray/base/min-signed-intger-dtype` where the interface can assume that `value` is integer-valued
120+
} else if ( value <= INT8_MAX ) { // NOTE: consider moving this logic to `@stdlib/ndarray/base/min-signed-intger-dtype` where the interface can assume that `value` is integer-valued
121121
vdt = 'int8';
122122
} else if ( value <= INT16_MAX ) {
123123
vdt = 'int16';

lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function ClipPath( options ) {
9696
'configurable': false,
9797
'enumerable': false,
9898
'writable': true,
99-
'value': opts.id || minstd().toString() // TODO: uuid
99+
'value': opts.id || minstd().toString() // NOTE: consider using uuid
100100
});
101101
defineProperty( this, '_autoRender', {
102102
'configurable': false,
@@ -131,7 +131,8 @@ function ClipPath( options ) {
131131
var args;
132132
var i;
133133
debug( 'Received a render event. Re-emitting...' );
134-
args = new Array( arguments.length+1 );
134+
args = [];
135+
args.length = arguments.length + 1;
135136
args[ 0 ] = 'render';
136137
for ( i = 0; i < arguments.length; i++ ) {
137138
args[ i+1 ] = arguments[ i ];

0 commit comments

Comments
 (0)