Skip to content

Commit 29bd670

Browse files
committed
style: consolidate redundant lint directives
--- 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: passed - task: lint_license_headers status: passed ---
1 parent 08c21f1 commit 29bd670

File tree

1 file changed

+2
-12
lines changed
  • lib/node_modules/@stdlib/complex/float32/ctor/docs/types

1 file changed

+2
-12
lines changed

lib/node_modules/@stdlib/complex/float32/ctor/docs/types/test.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable @typescript-eslint/no-unused-expressions */
20+
1921
import Complex64 = require( './index' );
2022

2123

@@ -25,32 +27,23 @@ import Complex64 = require( './index' );
2527
{
2628
const x = new Complex64( 5.0, 3.0 ); // $ExpectType Complex64
2729

28-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
2930
x.im; // $ExpectType number
30-
31-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
3231
x.re; // $ExpectType number
33-
34-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
3532
x.BYTES_PER_ELEMENT; // $ExpectType 4
36-
37-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
3833
x.byteLength; // $ExpectType 8
3934
}
4035

4136
// 64-bit complex number comes with a `toString` method to serialize a complex number as a string...
4237
{
4338
const x = new Complex64( 5.0, 3.0 ); // $ExpectType Complex64
4439

45-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
4640
x.toString(); // $ExpectType string
4741
}
4842

4943
// 64-bit complex number comes with a `toJSON` method to serialize a complex number as a JSON object....
5044
{
5145
const x = new Complex64( 5.0, 3.0 ); // $ExpectType Complex64
5246

53-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
5447
x.toJSON(); // $ExpectType any
5548
}
5649

@@ -61,9 +54,6 @@ import Complex64 = require( './index' );
6154

6255
// The compiler throws an error if the constructor is provided an unsupported number of arguments...
6356
{
64-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
6557
new Complex64( 5.0 ); // $ExpectError
66-
67-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
6858
new Complex64( 5.0, 3.0, 1.0 ); // $ExpectError
6959
}

0 commit comments

Comments
 (0)