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 Jul 23, 2019
1 parent baa92d8 commit 988b924
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .eslintrc
@@ -0,0 +1,8 @@
{
"root": true,

"extends": "@ljharb",

"rules": {
}
}
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -4,6 +4,8 @@
"description": "Does this JS environment support the `name` property on functions?",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "echo \"Error: no test specified\" && exit 1",
"posttest": "npx aud"
},
Expand All @@ -24,5 +26,9 @@
"bugs": {
"url": "https://github.com/ljharb/functions-have-names/issues"
},
"homepage": "https://github.com/ljharb/functions-have-names#readme"
"homepage": "https://github.com/ljharb/functions-have-names#readme",
"devDependencies": {
"@ljharb/eslint-config": "^13.1.1",
"eslint": "^5.16.0"
}
}

0 comments on commit 988b924

Please sign in to comment.