Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/lint-staged/lint-staged

🚫💩 — Run linters on git staged files
https://github.com/lint-staged/lint-staged

chore: remove unused files

298b55c1389d71a45237296d0ffb69b0b4ab8f09 authored about 3 years ago by Iiro Jäppinen <[email protected]>
feat: replace `cosmiconfig` with `lilconfig` + `yaml` to reduce dependencies

e7f9fa0f2e6aa5adbb1a0c31d1ceaff01b43f692 authored about 3 years ago by Iiro Jäppinen <[email protected]>
docs: add note about v12 being ESM to README.md

6c2d5042cf4a7e794578e08e6fa2bce1be067b5f authored about 3 years ago by Iiro Jäppinen <[email protected]>
fix: install `enquirer`

This package is a peer dependency of `listr2`, but it's not used by _lint-staged_.

e01585f96d6aeef9f5f1b84df9936ce2be47d8f0 authored about 3 years ago by Iiro Jäppinen <[email protected]>
fix: remove `npm` version requirement (#1047)

e50d6d4ce53d125b735009bacb3de157fb6d1f2a authored about 3 years ago by Iiro Jäppinen <[email protected]>
fix: read version number from lint-staged package.json instead of package.json in cwd (#1043) (#1044)

If the package.json did not have a version number, it would cause lint-staged to crash.

9f9213d5fbc74e3c3fb11db2a1bd239888c2960c authored about 3 years ago by Michael Coleman <[email protected]>
feat: convert to native ESM module (#1038)

BREAKING CHANGE: _lint-staged_ is now a pure ESM module, and thus
requires Node.js version `^12...

7240f61730aa923b18156cc64ff5350f2d5be16d authored about 3 years ago by Iiro Jäppinen <[email protected]>
test: adjust tests for Windows compatibility

3a35037d36dd109bad85f089083a2137e6adc2ec authored about 3 years ago by Iiro Jäppinen <[email protected]>
ci: add CodeQL action

36b2a537885e694bdc66fbf345497e132b64af1d authored about 3 years ago by Iiro Jäppinen <[email protected]>
ci: make CI faster by separating ESLint and using node_modules cache

4808e8b47ae26251c71b4b48f937d56abda7e3db authored about 3 years ago by Iiro Jäppinen <[email protected]>
ci: add dependabot config

64e4364ffdb491e2bbcb927c896a803695c983be authored about 3 years ago by Iiro Jäppinen <[email protected]>
ci: adjust workflow names

07292635b2800d1b71e17fd8afb70d8c21cc37b1 authored about 3 years ago by Iiro Jäppinen <[email protected]>
ci: run Windows tests with GitHub Actions instead of Appveyor

533c43cd0777f974e82e7bdc12c8371ea4d549d6 authored about 3 years ago by Iiro Jäppinen <[email protected]>
fix: revert back to `cosmiconfig` from `lilconfig` (#1035)

* Revert "fix: correctly import `js-yaml` to fix yaml config loading (#1033)"

This reverts co...

e035b80e39da355da57c02db6565b55271ab1afa authored about 3 years ago by Iiro Jäppinen <[email protected]>
fix: correctly import `js-yaml` to fix yaml config loading (#1033)

612d8066aa2c95573a06c125a311dc4aed8f2e71 authored about 3 years ago by Iiro Jäppinen <[email protected]>
perf: replace `cosmiconfig` with `lilconfig` (#981)

Replace 'cosmiconfig' with 'lilconfig' due to the smaller size and
dependency tree of the latte...

04529e2b9040adc54cc8e5efc66b95bc0023477c authored about 3 years ago by Nikita Karamov <[email protected]>
fix: unbreak windows by correctly normalizing cwd (#1029)

Co-authored-by: Thomas Kalmár <[email protected]>

f861d8d17d966809b6cd7ae338c289a125d0e3b4 authored about 3 years ago by tkalmar <[email protected]>
fix: remove dangling chars from git dir (#1028)

* Fix #1027 by removing dangling chars

* Add tests

Co-authored-by: Thomas Kalmár <puma.rsc...

11c004e89dfacc381fdb10b0db70475f693c27f1 authored about 3 years ago by tkalmar <[email protected]>
fix: detect git repo root correctly on cygwin (#1026)

* Fix #1025 using git rev-parse to get the relative path inside git repo

Co-authored-by: Tho...

f291824efadb1cce47eba62ee8fa57a546aab37f authored about 3 years ago by tkalmar <[email protected]>
feat(deps): update and slim down dependencies (#1003)

* chore(deps): update dependencies

* test: remove duplicates lines from snapshots

* test: ...

32c08d3f3c1c929e4fb3996c36fc937f032a2c5a authored over 3 years ago by Iiro Jäppinen <[email protected]>
docs: Use /usr/bin/env sh instead of direct path (#1020)

Co-authored-by: nathandao <[email protected]>

3885af82a2c3b3aac509022428a0be2fbc5ca81f authored over 3 years ago by nathan <[email protected]>
docs: simplify Ignoring Files From .eslintignore. (#1013)

The README advised ESLint >= 7 users to install node-filter-async.
Replace this suggestion with...

0ef25e81a150ae59749d28565b305c97ec932baa authored over 3 years ago by Kurt von Laven <[email protected]>
docs: fix incorrect folding (#1006)

ad4316ce50633e3e38e5ae018431303511fbd571 authored over 3 years ago by 仓鼠 <[email protected]>
fix: try to automatically fix and warn about invalid brace patterns (#992)

* refactor: use arrow function

* fix: correctly handle incorrect patterns with braces of only...

b3d97cf4cfb115e51908cd92b95896442494c778 authored over 3 years ago by Iiro Jäppinen <[email protected]>
docs: simplify configuration example for formatting any format Prettier supports (#997)

f8807d7c0c2ff697295579087334fb3d607ad6c8 authored over 3 years ago by Timon van Spronsen <[email protected]>
fix: the shell option value should be optional instead of required (#996)

This fixes a bug introduced in #994 where any text after the `--shell` option was interpreted as...

f7302f4649b52785cdd17e7339e49ff53a6e3eda authored over 3 years ago by Iiro Jäppinen <[email protected]>
feat: allow a path to be supplied to the --shell option (#994)

fea80331c768b3642e90fc687e5aceaa419d2b77 authored over 3 years ago by Iiro Jäppinen <[email protected]>
fix: do not swallow already detected deprecated usage by last task (#991)

The deprecation warning instructing users to remove `git add` from their tasks
was not shown if...

7734156ce272189a7c663cccbb38af73a2b954b3 authored over 3 years ago by Jan Bobisud <[email protected]>
docs: Hardcode mrm@2 in the documentation (#976)

Due to some changed in mrm@3 the entire installation task fails without easily searchable soluti...

4f9a146708862b06d19c7627f4dd1b094b2b88ce authored over 3 years ago by Dariusz Niemczyk <[email protected]>
ci: replace Node.js 15 with 16

db861ce05b26d058c1afff93cf737c6fd753f411 authored over 3 years ago by Iiro Jäppinen <[email protected]>
fix: migrate husky@6

5560d97f6a1d034b933d352b953a957d9bee61fa authored over 3 years ago by Iiro Jäppinen <[email protected]>
ci: remove Node.js 10 from Appveyor test matrix

e5e186d28aadb44ea9193109511706a4c9a63787 authored over 3 years ago by Iiro Jäppinen <[email protected]>
fix: migrate commander@7

f8a026140d477f906083ae90ffb383ad0c0807a6 authored over 3 years ago by Iiro Jäppinen <[email protected]>
feat: bump Node.js version requirement to 12.13.0

BREAKING CHANGE: Node.js 12 LTS 'Erbium' is now the minimum required version

852aa6ece128c408a7fdfcceaa952d05076fb4bd authored over 3 years ago by Iiro Jäppinen <[email protected]>
chore(deps): update dependencies

ab7a211e41fa1efd6d3c30643e2576fb41b2b2f2 authored over 3 years ago by Iiro Jäppinen <[email protected]>
docs: corrects minor typos and grammar in README (#964)

6808f06c2d57ef84ba8aaf9a03b43fe819aef9a7 authored over 3 years ago by Tyler Hawkins <[email protected]>
docs: update installation and examples (#960)

101ad5ea21a5cab51a9a2a9d4701defe26e346ca authored almost 4 years ago by typicode <[email protected]>
Use simple-git-hooks in examples (#955)

d1207d245ab3a447b849f29f74ff3a102b2d4a87 authored almost 4 years ago by Andrey Sitnik <[email protected]>
docs: husky to simple-git-hooks migration in mrm (#954)

feb663bfb56859b414e8624696882bbba489c895 authored almost 4 years ago by Andrey Sitnik <[email protected]>
docs: Fix a bug in the prettier example (#949)

Co-authored-by: Andrey Okonetchnikov <[email protected]>

78039da176a5df045370ace61cee21a3605e9cf4 authored almost 4 years ago by Tom Jenkinson <[email protected]>
fix: concurrent option is not working correctly (#950)

43838158b4b2557bf09c06d0d15c4936069e8855 authored almost 4 years ago by Jun Shindo <[email protected]>
docs: add snippet to readme to run prettier for all supported files (#942)

* add snippet to readme to run prettier for all supported files

* remove empty line

* coll...

29a0b68a38d4b74d2ffd265b75b06afd250fe1cf authored about 4 years ago by Tom Jenkinson <[email protected]>
docs: Add link to CSharp / lint-staged integration blog (#940)

19d59fc49d18940c9f8d934b98ca69094366fd71 authored about 4 years ago by John Reilly <[email protected]>
docs: add instructions for async ESLint isPathIgnored (#937)

2eb6f9ff9f23970788e447c5902488fc20ab552e authored about 4 years ago by Chris Sargent <[email protected]>
fix: better logging for errors in js config files (#935)

Before this change javascript config files that had compilation errors or that threw their own e...

292e882cc3422743f4419d98e97200483be82c4a authored about 4 years ago by Iiro Jäppinen <[email protected]>
fix: use bibliography-style links in related posts section of readme (#932)

This effectively removes political references.

Closes #931

0ff29178c8771ab10e43a395e252c6a118306942 authored about 4 years ago by John Schroeder <[email protected]>
fix: update dependencies (#921)

* fix(deps): update dependencies

* ci: add Node.js v15 to test matrix

* ci: node.js v15 is...

7933b081396d4a26d4c20fcd04c86c91cd89a8c6 authored about 4 years ago by Iiro Jäppinen <[email protected]>
feat: allow reading config from stdin (#918)

969713d030515e4bafa6517244f8c41968f2b40b authored about 4 years ago by David Sanders <[email protected]>
fix: update docs on supported config file extensions (#917)

* allow .cjs files for ESModule based packages

* trailing comma

* adds all supported file ...

78782f92b1fb0868218dc3463a3fc61dd5e70cfc authored about 4 years ago by Keith Smith <[email protected]>
fix: add support for .cjs configs (#909)

Co-authored-by: Andrey Okonetchnikov <[email protected]>
Co-authored-by: Iiro Jäp...

36e7e5843b6b8b8744488b4db536d14d2e85e798 authored about 4 years ago by Moshe Brevda <[email protected]>
feat: Add ability to use function as config (#913)

* feat: add ability to use function as config

* fix: test

* test: add specific test for co...

67a4d06e39c4638a546494940bf99934692fb610 authored over 4 years ago by Sachin Shekhar <[email protected]>
docs: fix & enhance "Use your own globs" example (#912)

643038d9fcea7611f1828a40bb9033a0c5f0fef1 authored over 4 years ago by Sachin Shekhar <[email protected]>
feat: Add support for adding lint-staged using pre-commit.com (#910)

See https://pre-commit.com/#new-hooks

d404d7d5a2ccfba51d2d59e1fbb6e2e82539646c authored over 4 years ago by Thibault Maekelbergh <[email protected]>
fix: disambiguate stash reference (#906)

* Disambiguate stash reference

* Test verifying functionality with branch named stash

* Re...

51c5ac80da475f2255e12547018a3366ef6bd5a4 authored over 4 years ago by Philip Bjorge <[email protected]>
Merge pull request #901 from okonet/fix-supports-color

10b3218212e8aa5ae51747c70b1a25d9665ee6ab authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: always use the default short diff format for submodules #902

c7923ad9259e8bc121694f8e8c4ad3668aae73e5 authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: make sure snapshot works on multiple git versions

7a5182ba5c95e16e88e9cb3ce91ef9c6a22e63d6 authored over 4 years ago by Iiro Jäppinen <[email protected]>
chore(deps): update dependencies

e0ee58393033cbe346f88fffb425fc42d735f456 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: ensure supportsColor.level exists before stringifying it

When supports-color detects a level of 0, it will not return an object containing the key `level...

aa9898e47ce20d925072ccc93986b28c0593e625 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: run all git commands with submodule.recurse=false (#888)

This explicitly prevents git commands from recursing into git submodules and thus causing issues...

86c9ed2bde1245a702635b42a57b92b809340b0e authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: Git directory is not correctly resolved if GIT_WORK_TREE is set to relative path (#887)

Resolving the git directory failed if the environment variable `GIT_WORK_TREE` is set to a relat...

a1904ec6a96b04cd93eeb622b04cf328a10083df authored over 4 years ago by Alexander Rinass <[email protected]>
fix: update [email protected] and add enquirer peer dependency (#883)

0daae611b0637ebc6b9fac8672b842444bee3a38 authored over 4 years ago by Philihp Busby <[email protected]>
fix: canceling lint-staged via SIGINT restores state and cleans up (#881)

When replacing listr with listr2, this was a change in default behaviour that was left unnoticed

b078324d5e911ec5e667736b2c552af32f475751 authored over 4 years ago by Iiro Jäppinen <[email protected]>
Merge pull request #876 from johnnywalker/allow-spaces-in-partially-staged

Use machine output for listing partially staged files

21a2b411d43158d231b435ae476e379f07e550e1 authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: add test for hiding unstaged changes in renamed file

390d168ac29c0eff26bc66ffd417e714eaf7912c authored over 4 years ago by Johnny Walker <[email protected]>
fix: use machine output to avoid escaped and quoted filenames

ea80a3dc4124ce8437d7879dea3c9220fb5b0ca2 authored over 4 years ago by Johnny Walker <[email protected]>
fix: remove nanoid devDependency to remove ExperimentalWarning (#874)

nanoid contains conditional exports and emits a warning on Node.js >= 13.7: `ExperimentalWarning...

979da5d0d2fed4ef4a1748eaf10bb150005c99c4 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: truncate command title to stdout width (#865)

This makes sure the task title is as long as possible to fit on a single line of the console out...

b8e1a4a9683639d961f948283dec0e6dec556493 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: node-13 deps issue with listr2 and uuid (#868)

93bc942d9640e152a65c15d42c707c9b63420684 authored over 4 years ago by Cenk Kılıç <[email protected]>
Merge pull request #864 from okonet/updates

Updates

b0b3e2c5dc52361c77a2f52a6d20e61ecae9350b authored over 4 years ago by Andrey Okonetchnikov <[email protected]>
chore(deps): update dependencies

1f5968ef3af9f6c1534810ec380bdf09ffc66e2b authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: update [email protected]

157ad3e97c91551de6f1182c7a8c17f3762f1f47 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: chunkFiles chunks normalized files even when maxArgLength is set (#858)

The previous commit only fixed the situation when maxArgLength was not set (when used through th...

fc721704f223a8b649f949af38311c4d567268a6 authored over 4 years ago by Iiro Jäppinen <[email protected]>
Merge pull request #857 from okonet/fix-relative-add

fix: resolve matched files to cwd instead of gitDir before adding

588329671b749c9a2a232b763f94ea959a212e78 authored over 4 years ago by Andrey Okonetchnikov <[email protected]>
fix: normalize chunked paths even when maxArgLength is not set

ba67f48f5a8314723cbf1d9de08b6a794d4c112b authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: resolve matched files to cwd instead of gitDir before adding

Because the set of matched files are collected from generated tasks, when using the `relative` o...

defe0452e3080b8a13913cde11da43d30ff0e2d0 authored over 4 years ago by Iiro Jäppinen <[email protected]>
Merge pull request #852 from okonet/listr2

feat: replace listr with listr2

885a6442d6d85874c64455db2b9eeea14466fc56 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: all lint-staged output respects the `quiet` option

aba3421b0ec7335e49bc3f06a71441037bb2ae8a authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: do not show incorrect error when verbose and no output

b8df31af839a3125fa11fefae25359f1cfd271fd authored over 4 years ago by Iiro Jäppinen <[email protected]>
style: simplify eslint and prettier config

eed61986b0f44b49e134d8ba8c8c4620089d6ace authored over 4 years ago by Iiro Jäppinen <[email protected]>
ci: replace Node.js 13 with 14, since 14 will be next LTS

b746290569d16275f68664096f02e2d339b2f678 authored over 4 years ago by Iiro Jäppinen <[email protected]>
docs: improve `verbose` description

2c6f3ad84bdea8f459bee24f295e45d809dfa4fc authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: remove redundant, misbehaving test

This test failed differently on Windows than other platforms, but it doesn't really test anythin...

e749a0ba54a1bb620d49be13c98d8aa14f02143f authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: use test renderer during tests and when TERM=dumb

16848d83f3ec2cf67406755ec0aaa931ffb6787e authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: cover `--verbose` option usage

efffa220dcc223b6690590479464ab1a06d38e92 authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: integration test targets the full Node.js API instead of just `runAll`

b565481377500f0257b7f7dfe0e7d6938f5dd31d authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: restore variable in test output

1b185505b854e4f11be41b093d1e9ed48de5a1f1 authored over 4 years ago by Iiro Jäppinen <[email protected]>
feat: allow specifying `cwd` using the Node.js API

a3bd9d7fa0b85983eb25f8483b407a14b15c1f11 authored over 4 years ago by Iiro Jäppinen <[email protected]>
test: add test for error during merge state restoration

6aede3840bb8639caa427edb596b60c0afc3f62b authored over 4 years ago by Iiro Jäppinen <[email protected]>
feat: add `--verbose` to show output even when tasks succeed

This commit also moves most of the logging logic from runAll.js to index.js

85de3a3aff34061211622e5a250a172fcbd6fb5b authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: log task output after running listr to keep everything

d69c65b8b5f7fa00dfecf52633fa6edd6bad6e29 authored over 4 years ago by Iiro Jäppinen <[email protected]>
refactor: move messages to separate file

6da7667253a122250a5721c1675ec9a4f8688e65 authored over 4 years ago by Iiro Jäppinen <[email protected]>
refactor: move skip and enable cheks of listr tasks to separate file

e95d1b0cd5b0faec2e890b4ba8d66394591df367 authored over 4 years ago by Iiro Jäppinen <[email protected]>
refactor: use symbols for errors

639248021dc3d988fff7d743949ea55d58878fe9 authored over 4 years ago by Iiro Jäppinen <[email protected]>
feat: replace listr with listr2 and print errors inline

8f32a3eb38926fe931c36f788947a62a0b26405c authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: use stash create/store to prevent files from disappearing from disk

The `git stash create` command creates a dangling stash commit without removing any files from t...

c9adca592cd03e7a2aec26b3ccae36389e3c4092 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix(deps): update dependencies

e093b1db066ac94d4d72847d24034b217e347849 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: pass correct path to unstaged patch during cleanup

6066b076b9cd9d836044e062a3bfdb80bf02d0a2 authored over 4 years ago by Iiro Jäppinen <[email protected]>
fix: allow lint-staged to run on empty git repo by disabling backup

Since v10, lint-staged has not been able to run on empty git repos, because the backup stash req...

0bf1fb055bcdd455756b7df46001781adca48838 authored over 4 years ago by Iiro Jäppinen <[email protected]>
Merge pull request #837 from okonet/serial-git-add

fix: run `git add` for staged file chunks serially

1ac6863a283c55e27d92fb91c87d09f30af56f47 authored over 4 years ago by Iiro Jäppinen <[email protected]>