Skip to content

Commit d886e42

Browse files
committed
add scripts.lint to package.json
1 parent 4d7492b commit d886e42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
"bin": {
1313
"patch-package": "./index.js"
1414
},
15+
"config": {
16+
"allsrc": "src{/**,}/*.ts integration-tests{/**,}/*.ts property-based-tests{/**,}/*.ts"
17+
},
1518
"scripts": {
1619
"precommit": "tsc --noEmit && lint-staged",
1720
"prepublishOnly": "yarn run clean && yarn run build",
1821
"build": "tsc --project tsconfig.build.json",
1922
"new-integration-test": "ts-node integration-tests/newIntegrationTest.ts",
2023
"clean": "rimraf dist patch-package.test*.tgz",
21-
"format": "prettier --no-semi --write --trailing-comma=all src{/**,}/*.ts integration-tests{/**,}/*.ts property-based-tests{/**,}/*.ts",
24+
"format": "prettier --no-semi --write --trailing-comma=all $npm_package_config_allsrc",
25+
"lint": "eslint $npm_package_config_allsrc",
2226
"prepack": "rimraf dist/**/*.test.js",
2327
"test": "./run-tests.sh --runInBand"
2428
},

0 commit comments

Comments
 (0)