Skip to content

Commit 66ab661

Browse files
okonetarunoda
authored andcommitted
chore(lint): Use lint-staged with standard --fix to run linter only on staged files. (vercel#1519)
1 parent 7699cbe commit 66ab661

File tree

2 files changed

+213
-8
lines changed

2 files changed

+213
-8
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,18 @@
3333
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
3434
"lint": "standard 'bin/*' 'client/**/*.js' 'examples/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server/**/*.js' 'test/**/*.js'",
3535
"prepublish": "npm run release",
36-
"precommit": "npm run lint"
36+
"precommit": "lint-staged"
3737
},
3838
"standard": {
3939
"parser": "babel-eslint",
4040
"ignore": [
4141
"**/node_modules/**"
4242
]
4343
},
44+
"lint-staged": {
45+
"*.js": "standard",
46+
"bin/*": "standard"
47+
},
4448
"dependencies": {
4549
"ansi-html": "0.0.7",
4650
"babel-core": "6.24.0",
@@ -107,6 +111,7 @@
107111
"fly-watch": "1.1.1",
108112
"husky": "0.13.3",
109113
"jest-cli": "19.0.1",
114+
"lint-staged": "^3.4.0",
110115
"node-fetch": "1.6.3",
111116
"node-notifier": "5.1.2",
112117
"nyc": "10.0.0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy