Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
58a79e34
Unverified
Commit
58a79e34
authored
Oct 21, 2021
by
Katie Byers
Committed by
GitHub
Oct 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add linting instructions (#30123)
parent
0ac0b3f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
pull_request_template.md
.github/pull_request_template.md
+1
-1
contributing.md
contributing.md
+16
-2
No files found.
.github/pull_request_template.md
View file @
58a79e34
...
@@ -21,4 +21,4 @@ Choose the right checklist for the change that you're making:
...
@@ -21,4 +21,4 @@ Choose the right checklist for the change that you're making:
## Documentation / Examples
## Documentation / Examples
-
[
]
Make sure the linting passes
-
[
]
Make sure the linting passes
by running
`yarn lint`
contributing.md
View file @
58a79e34
...
@@ -72,7 +72,7 @@ If you would like to run the tests in headless mode (with the browser windows hi
...
@@ -72,7 +72,7 @@ If you would like to run the tests in headless mode (with the browser windows hi
yarn testheadless
yarn testheadless
```
```
Running a specific test suite inside of the `test/integration` directory:
Running a specific test suite
(e.g. `production`)
inside of the `test/integration` directory:
```
sh
```
sh
yarn testonly --testPathPattern "production"
yarn testonly --testPathPattern "production"
...
@@ -84,7 +84,21 @@ Running one test in the `production` test suite:
...
@@ -84,7 +84,21 @@ Running one test in the `production` test suite:
yarn testonly --testPathPattern "production" -t "should allow etag header support"
yarn testonly --testPathPattern "production" -t "should allow etag header support"
```
```
### Running the integration apps
### Linting
To check the formatting of your code:
```
sh
yarn lint
```
If you get errors, you can fix them with:
```
sh
yarn lint-fix
```
### Running the example apps
Running examples can be done with:
Running examples can be done with:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment