Skip to content

Commit 6ae406d

Browse files
committed
[Tests] add npm run lint
1 parent 032c81c commit 6ae406d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.eslintrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"root": true,
3+
4+
"extends": "@ljharb"
5+
}

package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.",
55
"main": "index.js",
66
"scripts": {
7+
"lint": "eslint .",
8+
"pretest": "npm run lint",
79
"test": "echo \"Error: no test specified\" && exit 1"
810
},
911
"repository": {
@@ -26,5 +28,9 @@
2628
"bugs": {
2729
"url": "https://github.com/inspect-js/which-collection/issues"
2830
},
29-
"homepage": "https://github.com/inspect-js/which-collection#readme"
31+
"homepage": "https://github.com/inspect-js/which-collection#readme",
32+
"devDependencies": {
33+
"@ljharb/eslint-config": "^15.0.1",
34+
"eslint": "^6.6.0"
35+
}
3036
}

0 commit comments

Comments
 (0)