Devin Rhode

Results 293 comments of Devin Rhode

FWIW here's my lint-staged config: ``` "lint-staged": { "*.@(ts|tsx|js|jsx|mjs|cjs)": [ "yarn lint:fix:pre-commit", "run-p --print-label --continue-on-error test:update-snapshots type-check --" ], "!*.@(ts|tsx|js|jsx|mjs|cjs)": [ "prettier --write --ignore-unknown" ] }, ``` This problem could...

Supporting `LINT_STAGED=0` would be a minor version bump. The "parallel" style syntax could be supported without a major version bump, but it would probably be easier (development/coding wise) to just...

The main thing that's missing is some sort of labels or names for tasks. How would I tell lint staged to bypass type-check?

A better example to work off of, how could I tell lint-staged to skip my `lint:fix:pre-commit` script? Upon failure, it could print out some generated thing: > Ignore this task...

Oh, duh, use an env variable to customize the config before I pass it to lint-staged. I think the config wrapper will work just fine! (The config wrapper will read...

But we must consider, should this wrapper really be a different package?

When specific git hook checks are disabled, those flags can be added to the commit message. This would then ultimately translate to this "tdd-like" pattern: 1. Create new check, or...

I recently learned that the @types/prettier and @types/eslint packages actually provide types for use like so: https://github.com/jeffijoe/typesync/issues/80 It would be great it lint-staged also had a similar @types npm package...

On one hand, I'm sharing what I've learned, but I'm not 100% certain it's accurate. Primarily, I think the docs/readme could use some clarification around how the list of staged...

Is this syntax extremely common? `somecmd path1 path2 path3` I wonder if there would ever be a use case for something like this? ```sh echo "$staged_files" ``` I just personally...