docs
docs copied to clipboard
Bump lint-staged from 15.4.3 to 15.5.0
Bumps lint-staged from 15.4.3 to 15.5.0.
Release notes
Sourced from lint-staged's releases.
v15.5.0
Minor Changes
#1526
630af5fThanks@iiroj! - Lint-staged no longer resets to the original state when preventing an empty git commit. This happens when your configured tasks reset all the staged changes, typically when trying to commit formatting changes which conflict with your linter setup like ESLint or Prettier.Example with Prettier
By default Prettier prefers double quotes.
Previously
- Stage
file.jswith only double quotes"changed to'- Run
git commit -am "I don't like double quotes"- Lint-staged runs
prettier --write file.js, converting all the'back to"- Because there are now no changes, lint-staged fails, cancels the commit, and resets back to the original state
- Commit was not done, original state is restored and single quotes
'are stagedNow
- Stage
file.jswith only double-quotes"changed to'- Run
git commit -am "I don't like double quotes"- Lint-staged runs
prettier --write file.js, converting all the'back to"- Because there are now no changes, lint-staged fails and cancels the commit
- Commit was not done, and there are no staged changes
Changelog
Sourced from lint-staged's changelog.
15.5.0
Minor Changes
#1526
630af5fThanks@iiroj! - Lint-staged no longer resets to the original state when preventing an empty git commit. This happens when your configured tasks reset all the staged changes, typically when trying to commit formatting changes which conflict with your linter setup like ESLint or Prettier.Example with Prettier
By default Prettier prefers double quotes.
Previously
- Stage
file.jswith only double quotes"changed to'- Run
git commit -am "I don't like double quotes"- Lint-staged runs
prettier --write file.js, converting all the'back to"- Because there are now no changes, lint-staged fails, cancels the commit, and resets back to the original state
- Commit was not done, original state is restored and single quotes
'are stagedNow
- Stage
file.jswith only double-quotes"changed to'- Run
git commit -am "I don't like double quotes"- Lint-staged runs
prettier --write file.js, converting all the'back to"- Because there are now no changes, lint-staged fails and cancels the commit
- Commit was not done, and there are no staged changes
Commits
7e6abe4chore(changeset): release0ebfa69build(deps): update dependencies630af5ffeat: do not reset to original state when preventing empty commit7b8be70chore: update default branch references from "master" to "main"362a78ddocs: add workaround for tsc ignoring tsconfig.json issue to README FAQ (#1523)e013823fix: "node_modules" typo in eslint.config.js67019eetest: add integration test to ensure unmodified merged files are not linted (...366f8bdrefactor: move TypeScript types to "index.d.ts" file85ea6a4docs: adjust readme regarding monorepo setup- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)