eggjs-community / generator-eggjs

Yeoman generator for egg
MIT License
3 stars 1 forks source link

chore(deps): update dependency lint-staged to v7 #8

Closed renovate[bot] closed 6 years ago

renovate[bot] commented 6 years ago

This Pull Request updates dependency lint-staged from v4.3.0 to v7.0.4

Release Notes ### [`v5.0.0`](https://github.com/okonet/lint-staged/releases/v5.0.0) ##### Features * Remove gitDir option and resolve it automatically ([#​327](`https://github.com/okonet/lint-staged/issues/327`)) ([0ed5135](https://github.com/okonet/lint-staged/commit/0ed5135)), closes [#​271](`https://github.com/okonet/lint-staged/issues/271`) ##### BREAKING CHANGES * `gitDir` option deprecated and will be ignored. Additionally, glob patterns for linters should not be relative to the git root directory. Consider a project with the following file structure: ``` `-- packages |-- prj | |-- package.json | |-- src | | `-- index.js | `-- yarn.lock `-- prj-2 `-- file ``` With `lint-staged@​4.3.0`, the config would need to be something like this: ```yml gitDir: ../.. linters: packages/prj/src/*.js: - eslint --fix - git add ``` With `lint-staged@​5`, this simplifies to: ```yml linters: src/*.js: - eslint --fix - git add ```
diff view ```diff @​@​ -1,5 +1,4 @​@​ -gitDir: ../.. linters: - packages/prj/src/*.js: + src/*.js: - eslint --fix - git add ```
--- ### [`v6.0.0`](https://github.com/okonet/lint-staged/releases/v6.0.0) ##### Features * Add debug mode, deprecate verbose option ([#​344](`https://github.com/okonet/lint-staged/issues/344`)) ([8f214f0](https://github.com/okonet/lint-staged/commit/8f214f0)) ##### BREAKING CHANGES * `verbose` config option has been deprecated and is superseded by the command line option `--debug`. --- ### [`v6.0.1`](https://github.com/okonet/lint-staged/releases/v6.0.1) ##### Bug Fixes * **package:** update cosmiconfig to version 4.0.0 ([80596c3](https://github.com/okonet/lint-staged/commit/80596c3)) --- ### [`v6.1.0`](https://github.com/okonet/lint-staged/releases/v6.1.0) ##### Features * **config:** Add `ignore` config option ([#​385](`https://github.com/okonet/lint-staged/issues/385`)) ([5b7bc67](https://github.com/okonet/lint-staged/commit/5b7bc67)) --- ### [`v6.1.1`](https://github.com/okonet/lint-staged/releases/v6.1.1) ##### Bug Fixes * **package:** Update staged-git-files to version 1.0.0 ([677e860](https://github.com/okonet/lint-staged/commit/677e860)) --- ### [`v7.0.0`](https://github.com/okonet/lint-staged/releases/v7.0.0) ##### Bug Fixes * **package:** Bump dependencies ([267ff0f](https://github.com/okonet/lint-staged/commit/267ff0f)) ##### Code Refactoring * Drop support for Node.js 4 ([#​399](`https://github.com/okonet/lint-staged/issues/399`)) ([05a062d](https://github.com/okonet/lint-staged/commit/05a062d)) ##### Features * Remove support for npm scripts ([#​390](`https://github.com/okonet/lint-staged/issues/390`)) ([d8b836c](https://github.com/okonet/lint-staged/commit/d8b836c)) ##### Performance Improvements * Switch from minimatch to micromatch ([#​388](`https://github.com/okonet/lint-staged/issues/388`)) ([5a333a0](https://github.com/okonet/lint-staged/commit/5a333a0)) ##### BREAKING CHANGES * **Requires Node.js v6 or later.** * **Remove implicit support for running npm scripts.** Consider example `lint-staged` config: ```json { "name": "My project", "version": "0.1.0", "scripts": { "my-custom-script": "linter --arg1 --arg2", "precommit": "lint-staged" }, "lint-staged": { "*.js": ["my-custom-script", "git add"] } } ``` The list of commands should be changed to the following: ``` "*.js": ["npm run my-custom-script --", "git add"] ``` * **The following `minimatch` options are not supported in `micromatch`:** - `nocomment`: https://github.com/isaacs/minimatch#nocomment - `flipnegate`: https://github.com/isaacs/minimatch#flipnegate --- ### [`v7.0.1`](https://github.com/okonet/lint-staged/releases/v7.0.1) ##### Bug Fixes * **package:** update staged-git-files to version 1.1.1 ([31176c9](https://github.com/okonet/lint-staged/commit/31176c9)) --- ### [`v7.0.2`](https://github.com/okonet/lint-staged/releases/v7.0.2) ##### Bug Fixes * Hide error message in a private field to avoid duplicate logs ([#​421](`https://github.com/okonet/lint-staged/issues/421`)) ([4d6f165](https://github.com/okonet/lint-staged/commit/4d6f165)) --- ### [`v7.0.3`](https://github.com/okonet/lint-staged/releases/v7.0.3) ##### Bug Fixes * Fix cli-command-parser to parse arguments for execa ([b4fbc3b](https://github.com/okonet/lint-staged/commit/b4fbc3b)), closes [#​419](`https://github.com/okonet/lint-staged/issues/419`) * Use double quotes to make command work on Windows ([06635c6](https://github.com/okonet/lint-staged/commit/06635c6)) --- ### [`v7.0.4`](https://github.com/okonet/lint-staged/releases/v7.0.4) ##### Bug Fixes * Parse arguments with single quotes properly. Better tests. ([29fc479](https://github.com/okonet/lint-staged/commit/29fc479)), closes [#​419](`https://github.com/okonet/lint-staged/issues/419`) ---
Commits #### v5.0.0 - [`0a1fa41`](https://github.com/okonet/lint-staged/commit/0a1fa41440e788c24fb6725da638d374c7ff6725) docs: Tweak appveyor badge (#​316) - [`711de02`](https://github.com/okonet/lint-staged/commit/711de02d58af7466d8794bc57dad508369d98530) chore: Bump cosmiconfig to v3, rm greenkeeper ignore (#​315) - [`331d3c5`](https://github.com/okonet/lint-staged/commit/331d3c5773b8013892a903bfd35eb8634db85741) chore(package): update prettier to version 1.7.4 (#​322) - [`ebf1767`](https://github.com/okonet/lint-staged/commit/ebf1767b8d3e55250cad96d889614940d4678f2a) test: Add full coverage for runAll.js (#​309) - [`3fa4f6d`](https://github.com/okonet/lint-staged/commit/3fa4f6dafab4b14df8bacd768a45b45db68a09d7) style: Promisify staged-git-files (#​325) - [`0e40d2c`](https://github.com/okonet/lint-staged/commit/0e40d2c72b49a2657af84991062c88b045cc8021) style: Use dedent for prettier multi-line template literals (#​242) - [`0ed5135`](https://github.com/okonet/lint-staged/commit/0ed513509651be5a97e0917b2bd6a33db364000a) feat: Remove gitDir option and resolve it automatically (#​327) #### v6.0.0 - [`3250d5e`](https://github.com/okonet/lint-staged/commit/3250d5e86549a718f119c32dda60cb1f64f17ca7) chore(package): Bump dev-dependencies (#​331) - [`80378f6`](https://github.com/okonet/lint-staged/commit/80378f64ff12ca201496e17c81f08742e65f7e86) test: Optimise assertions, mocks and test hooks (#​334) - [`6975d98`](https://github.com/okonet/lint-staged/commit/6975d989e24b08325ed93698caf61a8d9183f341) docs(README): Document support for multi pkg projects (#​337) - [`15f32be`](https://github.com/okonet/lint-staged/commit/15f32be267cd67d962afbbe936c517c2a6adc71f) refactor: Remove unnecessary check in `getConfig` (#​335) - [`adbf25e`](https://github.com/okonet/lint-staged/commit/adbf25eddb7bcd65b2534a018daf899645670b0c) test: Improve tests for resolveGitDir (#​338) - [`9a74d0a`](https://github.com/okonet/lint-staged/commit/9a74d0a2174bc33c9437f99fa39b1c26a8eea5f7) docs(README.md): add `imagemin-lint-staged` section (#​332) - [`b0736ca`](https://github.com/okonet/lint-staged/commit/b0736ca036cfaafb1c4f59b3c704711f099058f6) chore(package): Add closing braces for maintainers (#​343) - [`c22fbc2`](https://github.com/okonet/lint-staged/commit/c22fbc2f2bf105aaeff8a7963ef387210c207dc0) refactor: Cleanup code and tests for gitDir (#​342) - [`8f214f0`](https://github.com/okonet/lint-staged/commit/8f214f0700b4d8ec4a1cc0a30cb8cf6124b1edbc) feat: Add debug mode, deprecate verbose option (#​344) #### v6.0.1 - [`023ad73`](https://github.com/okonet/lint-staged/commit/023ad73fc79737c0a204e1bbae31522653e55fbb) chore(github): Add issue template (#​351) - [`cf87b61`](https://github.com/okonet/lint-staged/commit/cf87b610ac0e74d6df5b040a8dba994ee6da362d) docs(README): Add link to releases for changelog (#​349) - [`f0c4686`](https://github.com/okonet/lint-staged/commit/f0c468686b6daa0c4f7517b7b4ddb077c3672769) chore(package): Update prettier to version 1.9.0 (#​353) - [`29c3715`](https://github.com/okonet/lint-staged/commit/29c3715c2c98656d950a7727e1ef600c6b43bbea) chore(package): Update prettier to version 1.9.1 (#​354) - [`3340357`](https://github.com/okonet/lint-staged/commit/3340357d4d8a7e134c72a54bb591701796842e69) chore(package): update prettier to version 1.9.2 (#​359) - [`aeb4dfb`](https://github.com/okonet/lint-staged/commit/aeb4dfbc5dfa93ff3882dd6d35599c355eaa5f01) chore: commit `yarn.lock` (#​368) - [`a845bb2`](https://github.com/okonet/lint-staged/commit/a845bb2bd909ee6b8cfcb4c500ad2c3eb243b06d) chore(scripts): replace `npm run` with `yarn` (#​370) - [`e39d1de`](https://github.com/okonet/lint-staged/commit/e39d1de628c4333ede2264797b12906faaeaf962) ci: Cache dependencies (#​378) - [`8e3545c`](https://github.com/okonet/lint-staged/commit/8e3545c9acda28f33e1cc094b0bd5144075f713e) test: Use `expect.assertions()` to test async codes (#​377) - [`4cd6aef`](https://github.com/okonet/lint-staged/commit/4cd6aef9f89c1838440f12a966d8caebb6a0ce9d) ci(travis): Update `semantic-release` config (#​371) - [`237d3f6`](https://github.com/okonet/lint-staged/commit/237d3f6e72b529fe475bcf89fa5beaf4d7a64b12) chore(package): upgrade to jest 22 (#​367) - [`8baab8c`](https://github.com/okonet/lint-staged/commit/8baab8cb2ee0a2fe0925b458f9711d35970bff94) docs: Update inconsistent docs for filtering files (#​374) - [`80596c3`](https://github.com/okonet/lint-staged/commit/80596c3bb0e3c19e92ed08296d8cc5f6c71d2d2f) fix(package): update cosmiconfig to version 4.0.0 - [`2d8981b`](https://github.com/okonet/lint-staged/commit/2d8981b0837e30eb171d99d4a62cf2efa76d6d16) chore(package): update lockfile - [`e48402e`](https://github.com/okonet/lint-staged/commit/e48402e59c9e4611196a96cf0e9f5af7096da4c6) refactor: Do not pass redundant param for searchPath #### v6.1.0 - [`e4f0f44`](https://github.com/okonet/lint-staged/commit/e4f0f4438317d2033b0bd6cf2460ee7cdf29252d) ci(travis): Use `semantic-release` v12 (#​383) - [`5b7bc67`](https://github.com/okonet/lint-staged/commit/5b7bc67c8cdf5160bc78fb4012b2f40d85f88075) feat(config): Add `ignore` config option (#​385) #### v6.1.1 - [`677e860`](https://github.com/okonet/lint-staged/commit/677e860dfdc72374bf0d5cbcea343a94415811fd) fix(package): Update staged-git-files to version 1.0.0 #### v7.0.0 - [`6ace14e`](https://github.com/okonet/lint-staged/commit/6ace14e3273730484956c138119a1c64b91145eb) ci: Whitelist the `next` branch - [`5a333a0`](https://github.com/okonet/lint-staged/commit/5a333a03be0ca74f713662aac0d9ab96b164ca0c) perf: Switch from minimatch to micromatch (#​388) - [`d8b836c`](https://github.com/okonet/lint-staged/commit/d8b836cbfb86b5225f1946020e304a639d64deb8) feat: Remove support for npm scripts (#​390) - [`05a062d`](https://github.com/okonet/lint-staged/commit/05a062dca48c5ae53b5f65f05acf4f2c8388442f) refactor: Drop support for Node.js 4 (#​399) - [`267ff0f`](https://github.com/okonet/lint-staged/commit/267ff0f848875cf3fedb640b2cdbb00fd5317152) fix(package): Bump dependencies #### v7.0.1 - [`ee024f8`](https://github.com/okonet/lint-staged/commit/ee024f872d0990756259da8e65f85f67c983ab37) chore(package): Update prettier to version 1.11.0 (#​403) - [`7cca081`](https://github.com/okonet/lint-staged/commit/7cca08110eb4b3aa3369ed025496088731d1a7f6) docs: Add JetBrains IDE instructions for bugfix (#​408) - [`7fa2fa6`](https://github.com/okonet/lint-staged/commit/7fa2fa64737ba7b407dbce26b08e0f48ef975714) docs: Move section for use with monorepo under FAQ (#​409) - [`19e39cd`](https://github.com/okonet/lint-staged/commit/19e39cd87d81298bc919f446306b83313d841a80) chore: Update prettier to the latest version 🚀 (#​405) - [`31176c9`](https://github.com/okonet/lint-staged/commit/31176c9e4df76666178962751b90ea8c6e40daa8) fix(package): update staged-git-files to version 1.1.1 - [`3ea8b06`](https://github.com/okonet/lint-staged/commit/3ea8b062b42960af8b2dcab871c2085af99d2fe5) chore(package): update lockfile #### v7.0.2 - [`4d6f165`](https://github.com/okonet/lint-staged/commit/4d6f1651aec2e70af4286a1c7433d34cf43c626a) fix: Hide err msg in private field to avoid duplicate logs (#​421) #### v7.0.3 - [`838b5ed`](https://github.com/okonet/lint-staged/commit/838b5ed0106b4721e99c521f4e81f1ea34a2fd19) chore: Disable prettier eslint plugin in .eslintrc - [`50bda07`](https://github.com/okonet/lint-staged/commit/50bda079a2cbbb3b91a42eac273c602ad769aabe) chore: Use prettier for *.js, *.json and *.md files - [`b4fbc3b`](https://github.com/okonet/lint-staged/commit/b4fbc3bc7fa40beb4dc54cef2171843fd48852e0) fix: Fix cli-command-parser to parse arguments for execa - [`06635c6`](https://github.com/okonet/lint-staged/commit/06635c6cb754ce7c5d1033bbeb3eafd42a50bdb8) fix: Use double quotes to make command work on Windows #### v7.0.4 - [`29fc479`](https://github.com/okonet/lint-staged/commit/29fc479a763c1ea84289a1ab7511f9b1ef8b4d42) fix: Parse arguments with single quotes properly. Better tests.

This PR has been generated by Renovate Bot.