Skip to content

Commit

Permalink
chore: Use npm as script runner (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-suhas authored and okonet committed May 21, 2018
1 parent 9823d26 commit ec4f4f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"linters": {
"*.{js,json,md}": ["prettier --write", "git add"],
"*.js": ["yarn lint:base --fix", "git add"],
"*.js": ["npm run lint:base --fix", "git add"],
".*{rc, json}": "jsonlint"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"precommit": "node index.js",
"cz": "git-cz",
"lint:base": "eslint --rule \"prettier/prettier: 2\"",
"lint": "yarn lint:base -- .",
"lint:fix": "yarn lint --fix",
"pretest": "yarn lint",
"lint": "npm run lint:base -- .",
"lint:fix": "npm run lint --fix",
"pretest": "npm run lint",
"test": "jest --coverage",
"test:watch": "jest --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/findBin.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ WARN \`lint-staged\` no longer supports running scripts defined in package.json.
The same behavior can be achieved by changing the command to any of the following:
- \`npm run lint -- \`
- \`yarn lint:base -- . \`"
- \`npm run lint:base -- . \`"
`;

0 comments on commit ec4f4f2

Please sign in to comment.