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 Sep 28, 2020
1 parent 116eae4 commit 4f9eeee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc
@@ -0,0 +1,18 @@
{
"extends": "@ljharb",
"root": true,
"rules": {
"func-style": 1,
"operator-linebreak": [2, "before"],
},
"overrides": [
{
"files": "test/**",
"rules": {
"global-require": 0,
"max-lines-per-function": 0,
"no-negated-condition": 0,
},
},
],
}
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -13,6 +13,8 @@
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"tests-only": "tape test",
"test": "npm run tests-only",
"posttest": "aud --production"
Expand Down Expand Up @@ -42,7 +44,9 @@
"has": "^1.0.3"
},
"devDependencies": {
"@ljharb/eslint-config": "^17.2.0",
"aud": "^1.1.2",
"eslint": "^7.10.0",
"tape": "^5.0.1"
}
}

0 comments on commit 4f9eeee

Please sign in to comment.