Skip to content

Commit

Permalink
[Tests] add npm run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 2, 2020
1 parent fcae604 commit af2123d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc
@@ -0,0 +1,5 @@
{
"root": true,

"extends": "@ljharb",
}
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -12,6 +12,8 @@
]
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -30,5 +32,9 @@
"bugs": {
"url": "https://github.com/inspect-js/is-weakref/issues"
},
"homepage": "https://github.com/inspect-js/is-weakref#readme"
"homepage": "https://github.com/inspect-js/is-weakref#readme",
"devDependencies": {
"@ljharb/eslint-config": "^17.1.0",
"eslint": "^7.6.0"
}
}

0 comments on commit af2123d

Please sign in to comment.