Skip to content

Commit af2123d

Browse files
committed
[Tests] add npm run lint
1 parent fcae604 commit af2123d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.eslintrc

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

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
]
1313
},
1414
"scripts": {
15+
"lint": "eslint .",
16+
"pretest": "npm run lint",
1517
"test": "echo \"Error: no test specified\" && exit 1"
1618
},
1719
"repository": {
@@ -30,5 +32,9 @@
3032
"bugs": {
3133
"url": "https://github.com/inspect-js/is-weakref/issues"
3234
},
33-
"homepage": "https://github.com/inspect-js/is-weakref#readme"
35+
"homepage": "https://github.com/inspect-js/is-weakref#readme",
36+
"devDependencies": {
37+
"@ljharb/eslint-config": "^17.1.0",
38+
"eslint": "^7.6.0"
39+
}
3440
}

0 commit comments

Comments
 (0)