Skip to content

Commit d1eae36

Browse files
committed
chore: remove lint-changed from scripts/docs
1 parent 9590db3 commit d1eae36

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CONTRIBUTING.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,8 @@ Many Cypress packages print out debugging information to console via the `debug`
335335
We use [eslint](https://eslint.org/) to lint all JavaScript code and follow rules specified in
336336
[@cypress/eslint-plugin-dev](./npm/eslint-plugin-cypress) plugin.
337337

338-
When you edit files, you can quickly fix all changed files before you commit using
339-
340-
```bash
341-
$ yarn lint-changed --fix
342-
```
343-
344-
When committing files, we run a Git pre-commit hook to lint the staged JS files. See the [`lint-staged` project](https://github.com/okonet/lint-staged).
345-
If this command fails, you may need to run `yarn lint-changed --fix` and commit those changes.
338+
This project uses a Git pre-commit hook to lint staged files before committing. See the [`lint-staged` project](https://github.com/okonet/lint-staged) for details.
339+
`lint-staged` will try to auto-fix any lint errors with `eslint --fix`, so if it fails, you must manually fix the lint errors before committing.
346340

347341
We **DO NOT** use Prettier to format code. You can find [.prettierignore](.prettierignore) file that ignores all files in this repository. To ensure this file is loaded, please always open _the root repository folder_ in your text editor, otherwise your code formatter might execute, reformatting lots of source files.
348342

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"get-next-version": "node scripts/get-next-version.js",
4343
"postinstall": "node ./scripts/run-postInstall.js",
4444
"lint": "lerna run lint --no-bail --concurrency 2",
45-
"lint-changed": "lint-changed",
4645
"prepare-release-artifacts": "node ./scripts/prepare-release-artifacts.js",
4746
"npm-release": "node scripts/npm-release.js",
4847
"prestart": "yarn ensure-deps",

0 commit comments

Comments
 (0)