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 14, 2020
1 parent a436200 commit 763a64b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"root": true,

"extends": "@ljharb",
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
},
"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run lint",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -42,6 +44,8 @@
},
"homepage": "https://github.com/es-shims/Array.prototype.item#readme",
"devDependencies": {
"@ljharb/eslint-config": "^17.1.0",
"eslint": "^7.7.0",
"safe-publish-latest": "^1.1.4"
}
}

0 comments on commit 763a64b

Please sign in to comment.