Skip to content

Commit 4fb0efa

Browse files
ESLint: remove unused eslint-disable directive (#325)
1 parent b4cb206 commit 4fb0efa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"preversion": "npm run ci && npm run test",
2626
"test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling",
27-
"lint": "eslint .",
27+
"lint": "eslint --max-warnings 0 .",
2828
"check": "flow check",
2929
"testonly": "mocha --full-trace src/**/__tests__/**/*-test.js",
3030
"testonly:cover": "nyc npm run testonly",

src/__tests__/starWarsData.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export function createShip(shipName: string, factionId: string): Ship {
5555
allShips.push(newShip);
5656

5757
const faction = allFactions.find((obj) => obj.id === factionId);
58-
// eslint-disable-next-line no-unused-expressions
5958
faction?.ships.push(newShip.id);
6059
return newShip;
6160
}

0 commit comments

Comments
 (0)