Skip to content

Commit

Permalink
build: lint-staged prettier before eslint (#4445)
Browse files Browse the repository at this point in the history
prettier autofixes some issues eslint finds, letting prettier run first
leads to less developer hassle

for example, I've forgotten for weeks to change how my editor does tabs
instead of spaces and I've been manually running `npm run fmt` to get
around this. While yes I will also correct my editor, this feels like a
positive change for all contributors

<< Describe the changes >>

Closes:
  • Loading branch information
gaiety-deque committed May 7, 2024
1 parent ebb1b95 commit 3d36f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -189,8 +189,8 @@
"prettier --write"
],
"*.js": [
"eslint --fix",
"prettier --write"
"prettier --write",
"eslint --fix"
]
}
}

0 comments on commit 3d36f97

Please sign in to comment.