Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79b93d3

Browse files
authored
style: remove redundant eslint suppressions (#1667)
1 parent1554ba5 commit79b93d3

File tree

6 files changed

+1
-11
lines changed

6 files changed

+1
-11
lines changed

‎Backtracking/tests/RatInAMaze.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ describe('RatInAMaze', () => {
66

77
for(constvalueofvalues){
88
// we deliberately want to check whether this constructor call fails or not
9-
// eslint-disable-next-line no-new
109
expect(()=>{
1110
newRatInAMaze(value)
1211
}).toThrow()
@@ -15,7 +14,6 @@ describe('RatInAMaze', () => {
1514

1615
it('should fail for an empty array',()=>{
1716
// we deliberately want to check whether this constructor call fails or not
18-
// eslint-disable-next-line no-new
1917
expect(()=>{
2018
newRatInAMaze([])
2119
}).toThrow()
@@ -28,7 +26,6 @@ describe('RatInAMaze', () => {
2826
]
2927

3028
// we deliberately want to check whether this constructor call fails or not
31-
// eslint-disable-next-line no-new
3229
expect(()=>{
3330
newRatInAMaze(array)
3431
}).toThrow()
@@ -39,7 +36,6 @@ describe('RatInAMaze', () => {
3936

4037
for(constvalueofvalues){
4138
// we deliberately want to check whether this constructor call fails or not
42-
// eslint-disable-next-line no-new
4339
expect(()=>{
4440
newRatInAMaze(value)
4541
}).toThrow()

‎Backtracking/tests/Sudoku.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const solved = [
2727
describe('Sudoku',()=>{
2828
it('should create a valid board successfully',()=>{
2929
// we deliberately want to check whether this constructor call fails or not
30-
// eslint-disable-next-line no-new
3130
expect(()=>{
3231
newSudoku(data)
3332
}).not.toThrow()

‎Data-Structures/Array/QuickSelect.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313

1414
functionQuickSelect(items,kth){
15-
// eslint-disable-line no-unused-vars
1615
if(kth<1||kth>items.length){
1716
thrownewRangeError('Index Out of Bound')
1817
}

‎Maths/test/EulerMethod.manual-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function plotLine(label, points, width, height) {
1515

1616
// Chart-class from chartjs
1717
constchart=newChart(canvas,{
18-
// eslint-disable-line
1918
type:'scatter',
2019
data:{
2120
datasets:[

‎Maths/test/FindMinIterator.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ describe('FindMinIterator', () => {
2222
})
2323

2424
test('given empty generator then min is undefined',()=>{
25-
constsrc=function*(){}// eslint-disable-line
25+
constsrc=function*(){}
2626
expect(FindMinIterator(src())).toBeUndefined()
2727
})
2828

2929
test('given generator then min is found',()=>{
3030
constsrc=function*(){
31-
// eslint-disable-line
3231
yield1
3332
yield-1
3433
yield0
@@ -38,7 +37,6 @@ describe('FindMinIterator', () => {
3837

3938
test('given string generator then min string length is found',()=>{
4039
constsrc=function*(){
41-
// eslint-disable-line
4240
yield'abc'
4341
yield'de'
4442
yield'qwerty'

‎Recursive/test/FloodFill.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ function testDepthFirst(
6969
replacementColor,
7070
testLocation
7171
){
72-
// eslint-disable-line
7372
constrgbData=generateTestRgbData()
7473
depthFirstSearch(rgbData,fillLocation,targetColor,replacementColor)
7574
returnrgbData[testLocation[0]][testLocation[1]]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp