Skip to content

Commit 4bdfc3f

Browse files
committed
style: Fix lint
Signed-off-by: Richie Bendall <[email protected]>
1 parent fbd9446 commit 4bdfc3f

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"build": "yarn js && yarn docs",
2323
"js": "tsc",
2424
"docs": "typedoc --out ./docs --mode file --target ES6 --ignoreCompilerErrors ./src",
25-
"lint": "eslint src/**/*",
25+
"lint": "xo",
2626
"test": "ava"
2727
},
2828
"dependencies": {
@@ -53,7 +53,18 @@
5353
"eslint": "^6.6.0"
5454
},
5555
"xo": {
56-
"extends": "richienb/node"
56+
"extends": "richienb/node",
57+
"overrides": [
58+
{
59+
"files": "test.js",
60+
"rules": {
61+
"import/default": 0,
62+
"node/no-missing-import": 0,
63+
"import/no-unresolved": 0,
64+
"node/no-unsupported-features/node-builtins": 0
65+
}
66+
}
67+
]
5768
},
5869
"ava": {
5970
"compileEnhancements": false,

test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import test, { before, after } from "ava"
2-
import resumer from "resumer"
3-
import FormData from "form-data"
41
import * as stream from "stream"
5-
import { extractContentType, getTotalBytes } from "./src"
2+
import FormData from "form-data"
3+
import resumer from "resumer"
4+
import test, { before, after } from "ava"
65
import express from "express"
7-
import getPort from "get-port" // eslint-disable-line import/default
6+
import getPort from "get-port"
87
import { Request } from "node-fetch"
98
import Blob from "fetch-blob"
9+
import { extractContentType, getTotalBytes } from "./src"
1010
const app = express()
1111

1212
before(async (t) => {

0 commit comments

Comments
 (0)