Skip to content

Commit 48514ac

Browse files
committed
Update dependencies and lint
1 parent 75ec114 commit 48514ac

File tree

3 files changed

+16
-39
lines changed

3 files changed

+16
-39
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ function selectAll(selectors: string | string[], baseElements?: BaseElements): E
119119
}
120120

121121
// Preserves IE11 support and performs 3x better than `...all` in Safari
122-
const arr: Element[] = [];
122+
const array: Element[] = [];
123123
all.forEach(function (v) {
124-
arr.push(v);
124+
array.push(v);
125125
});
126126

127-
return arr;
127+
return array;
128128
}
129129

130130
select.last = selectLast;

package.json

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,55 +15,39 @@
1515
"repository": "fregante/select-dom",
1616
"license": "MIT",
1717
"author": "Federico Brigante <[email protected]> (bfred.it)",
18+
"type": "module",
19+
"main": "index.js",
20+
"module": "index.js",
1821
"files": [
1922
"index.js",
2023
"index.d.ts"
2124
],
22-
"module": "index.js",
2325
"scripts": {
24-
"build": "tsc",
25-
"prepublish-only": "tsc",
26+
"build": "tsc --sourceMap false",
27+
"prepublishOnly": "tsc",
2628
"test": "tsc && tsd && xo && browserify -p esmify test.js | tape-run",
2729
"watch": "tsc --watch"
2830
},
2931
"xo": {
3032
"envs": [
3133
"browser"
3234
],
33-
"extensions": [
34-
"ts"
35-
],
36-
"overrides": [
37-
{
38-
"files": "**/*.ts",
39-
"extends": "xo-typescript",
40-
"parserOptions": {
41-
"project": "./tsconfig.xo.json"
42-
},
43-
"rules": {
44-
"@typescript-eslint/prefer-for-of": "off"
45-
}
46-
}
47-
],
4835
"rules": {
36+
"@typescript-eslint/prefer-for-of": "off",
4937
"valid-jsdoc": "off",
5038
"prefer-spread": "off",
5139
"prefer-arrow-callback": "off",
5240
"unicorn/no-for-loop": "off"
5341
}
5442
},
5543
"devDependencies": {
56-
"@sindresorhus/tsconfig": "^0.6.0",
57-
"@typescript-eslint/eslint-plugin": "^2.11.0",
58-
"@typescript-eslint/parser": "^2.11.0",
59-
"browserify": "^16.5.0",
60-
"eslint-config-xo-typescript": "^0.23.0",
44+
"@sindresorhus/tsconfig": "^0.7.0",
45+
"browserify": "^16.5.1",
6146
"esmify": "^2.1.1",
62-
"tape": "^4.11.0",
63-
"tape-run": "^6.0.1",
47+
"tape": "^4.13.2",
48+
"tape-run": "^7.0.0",
6449
"tsd": "^0.11.0",
65-
"typescript": "^3.7.3",
66-
"xo": "^0.25.3"
67-
},
68-
"type": "module"
50+
"typescript": "^3.8.3",
51+
"xo": "^0.28.3"
52+
}
6953
}

tsconfig.xo.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)