forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request desktop#6204 from desktop/no-lint-scripts
pull eslint scripts into package.json
- Loading branch information
Showing
4 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Linting | ||
|
||
[What is linting, anyways?](https://en.wikipedia.org/wiki/Lint_%28software%29) | ||
|
||
## Tooling | ||
|
||
Our linting tooling uses a combination of | ||
|
||
* [Prettier](https://github.com/prettier/prettier) | ||
* [ESLint](https://github.com/eslint/eslint) | ||
* [TSLint](https://github.com/palantir/tslint). | ||
|
||
Most (if not all) editors have integrations for these tools so that they will report errors and fix formatting in realtime. See [tooling](./tooling.md) for how to set these integrations up while developing for desktop. | ||
|
||
## Running Checks | ||
|
||
Use | ||
|
||
```shellsession | ||
$ yarn lint | ||
``` | ||
|
||
in your local repository to run all linting checks. Each tool will report their errors on the command line. | ||
|
||
## Fixing Issues | ||
|
||
Some issues found by linters can be automatically fixed. Use | ||
|
||
```shellsession | ||
$ yarn lint:fix | ||
``` | ||
|
||
to automatically fix them. If any issues remain, you'll have to fix them manually (and the output will tell you that). | ||
|
||
## Continuous Integration (CI) | ||
|
||
Each of our CI services also runs linting checks on [open pull requests](https://github.com/desktop/desktop/pulls) in the GitHub Desktop repository. Pull requests must pass CI to before we accept them, so don't forget to lint locally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.