mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 20:40:19 +02:00
Comment lintstagedrc properly so we know how and why it is there and the process for removing it in the future
This commit is contained in:
@@ -1,13 +1,23 @@
|
|||||||
const escape = require('shell-quote').quote
|
const escape = require('shell-quote').quote
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Need this to fix a bug where we can't commit `pages/examples/[example].tsx`.
|
* Need this to fix a bug where we can't commit this:
|
||||||
|
*
|
||||||
|
* `pages/examples/[example].tsx`.
|
||||||
|
*
|
||||||
|
* because of the square brackets `[` and `]`.
|
||||||
*
|
*
|
||||||
* <https://github.com/okonet/lint-staged/issues/676#issuecomment-574764713>
|
* <https://github.com/okonet/lint-staged/issues/676#issuecomment-574764713>
|
||||||
*
|
*
|
||||||
* NOTE:
|
* NOTE:
|
||||||
|
*
|
||||||
* We can remove this entire file if/when we upgrade to Prettier 2+ where this
|
* We can remove this entire file if/when we upgrade to Prettier 2+ where this
|
||||||
* is no longer necessary according to the `lint-staged` issue.
|
* is no longer necessary according to the `lint-staged` issue shown above.
|
||||||
|
*
|
||||||
|
* Currently, the same configuration without the escaping of the filename
|
||||||
|
* still exists in `package.json` but this takes precedence over that.
|
||||||
|
*
|
||||||
|
* Once this file is removed, `package.json` configuration will be used.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Reference in New Issue
Block a user