Skip to content

Commit 2e5146e

Browse files
committed
[Tests] add npm run lint
1 parent 7b2adfa commit 2e5146e

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
@@ -7,6 +7,8 @@
77
"./package.json": "./package.json"
88
},
99
"scripts": {
10+
"lint": "eslint --ext=.js,.mjs .",
11+
"pretest": "npm run lint",
1012
"test": "echo \"Error: no test specified\" && exit 1"
1113
},
1214
"repository": {
@@ -27,5 +29,9 @@
2729
"bugs": {
2830
"url": "https://github.com/inspect-js/is-shared-array-buffer/issues"
2931
},
30-
"homepage": "https://github.com/inspect-js/is-shared-array-buffer#readme"
32+
"homepage": "https://github.com/inspect-js/is-shared-array-buffer#readme",
33+
"devDependencies": {
34+
"@ljharb/eslint-config": "^17.5.1",
35+
"eslint": "^7.21.0"
36+
}
3137
}

0 commit comments

Comments
 (0)