You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drop the "eslint-plugin-prettier" dependency if (and only if) we can achieve the same functionality we have today, which is that we have one "lint" task and one way to auto-fix lint issues.
one npm run lint command that runs prettier --check + eslint
one npm run fixlint command that fixes prettier issues + eslint issues
The text was updated successfully, but these errors were encountered:
- `npm run lint` now checks formatting with prettier and eslint
- `npm run fixlint` now fixes formatting with `prettier --write` and `eslint --fix`
- lint-staged also uses `npm run fixlint` to keep things consistent
- ci seems to already check formatting with prettier and eslint
- added jsdoc type hints to the eslintrc.js file for autocompletion
Eslint now uses a blocklist instead of allowlist for ignoring files. It might be easier to not
accidentally ignore any new files with this approach.
Solves neovim#445
- `npm run lint` now checks formatting with prettier and eslint
- `npm run fixlint` now fixes formatting with `prettier --write` and `eslint --fix`
- lint-staged also uses `npm run fixlint` to keep things consistent
- ci seems to already check formatting with prettier and eslint
- added jsdoc type hints to the eslintrc.js file for autocompletion
Eslint now uses a blocklist instead of allowlist for ignoring files. It might be easier to not
accidentally ignore any new files with this approach.
Solves neovim#445
Problem
raised in #437 (comment) by @mikavilpas
And https://prettier.io/docs/en/integrating-with-linters.html confirms that. Instead it recommends running
prettier --check
explicitly.Proposal
drop the "eslint-plugin-prettier" dependency if (and only if) we can achieve the same functionality we have today, which is that we have one "lint" task and one way to auto-fix lint issues.
npm run lint
command that runsprettier --check
+ eslintnpm run fixlint
command that fixes prettier issues + eslint issuesThe text was updated successfully, but these errors were encountered: