Skip to content

Commit faff232

Browse files
Scope ESLint to relevant files
Specify tsconfig of "lint" script.
1 parent dd71883 commit faff232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"build-demo": "webpack --config demo/webpack.config.js",
2121
"clean": "rimraf lib/*",
2222
"format": "prettier --write 'src/**'",
23-
"lint": "tsc; eslint . --report-unused-disable-directives --ext .js,.ts",
24-
"lint-demo": "tsc -p ./demo/tsconfig.json; eslint . --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json",
23+
"lint": "tsc -p ./tsconfig.json; eslint ./src --report-unused-disable-directives --ext .js,.ts --parser-options=project:./tsconfig.json",
24+
"lint-demo": "tsc -p ./demo/tsconfig.json; eslint ./demo --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json",
2525
"precommit": "pretty-quick --staged",
2626
"test": "jest --coverage",
2727
"travisci": "npm run lint && npm run test"

0 commit comments

Comments
 (0)