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 10, 2019
1 parent 6857316 commit a8be993
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"root": true,

"extends": "@ljharb",

"rules": {
"max-statements": [2, 12],
},
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "Which kind of boxed JS primitive is this?",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -23,5 +25,9 @@
"bugs": {
"url": "https://github.com/ljharb/which-boxed-primitive/issues"
},
"homepage": "https://github.com/ljharb/which-boxed-primitive#readme"
"homepage": "https://github.com/ljharb/which-boxed-primitive#readme",
"devDependencies": {
"@ljharb/eslint-config": "^14.0.2",
"eslint": "^6.1.0"
}
}

0 comments on commit a8be993

Please sign in to comment.