Skip to content

Instantly share code, notes, and snippets.

@Ashoat
Created October 16, 2017 04:27
Show Gist options
  • Save Ashoat/1969bf63b407696d835ef397ebb4acd7 to your computer and use it in GitHub Desktop.
Save Ashoat/1969bf63b407696d835ef397ebb4acd7 to your computer and use it in GitHub Desktop.
flow-typed lint-staged precommit bug
ashoat@Ashoats-MacBook-Pro [~/Dropbox/src/flow-typed/definitions]# npm run precommit
> [email protected] precommit /Users/ashoat/Dropbox/src/flow-typed/definitions
> lint-staged
● Validation Warning:
Unknown option "package.json" with value ["prettier-package-json --write", "prettier --write", "git add"] was found.
This is probably a typing mistake. Fixing it will remove this message.
Please refer to https://github.com/okonet/lint-staged#configuration for more information...
● Validation Warning:
Unknown option "*.js" with value ['prettier --write', 'git add'] was found in the config root.
You are probably trying to mix simple and advanced config formats. Adding
"linters": {
"*.js": ["prettier --write","git add"]
}
will fix it and remove this message.
Please refer to https://github.com/okonet/lint-staged#configuration for more information...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment