Skip to content

Commit da441c0

Browse files
Merge branch 'master' into issue-5640-abjustlayout
2 parents 5087bb0 + cb1e0d8 commit da441c0

File tree

485 files changed

+2995
-714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+2995
-714
lines changed

.github/workflows/checks.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Checks
2+
on:
3+
pull_request:
4+
branches: [ master ]
5+
types: [opened, synchronize, reopened]
6+
7+
8+
jobs:
9+
checks:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@master
14+
with:
15+
persist-credentials: false
16+
fetch-depth: 1
17+
18+
- name: NPM Install
19+
run: npm install
20+
21+
- name: Build
22+
run: npm run build
23+
24+
- name: Run Eslint
25+
run: npm run checklint

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run checklint
4+
npx lint-staged

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,18 @@ git push -u origin <your_branch_name>
558558
559559
**15.** Once you’ve committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. Please ensure that you compare your feature branch to the desired branch of the repo you are supposed to make a PR to. If you need to make any adjustments to your pull request, just push the updates to GitHub. Your pull request will automatically track the changes in your development branch and update it.
560560
561+
### Lint Rules
562+
563+
Layer5 uses ESLint to maintain code quality and consistency in our UI code. Use this command to trigger a lint check:
564+
565+
```sh
566+
make lint
567+
```
568+
569+
> Note:
570+
> - Eslint in Gatsby requires generating config files from CLI. Run `gatsby build` or `gatsby develop` if you face this error during linting.
571+
572+
561573
## Signing-off on Commits
562574

563575
To contribute to this project, you must agree to the **Developer Certificate of

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ build:
3737
clean:
3838
gatsby clean && make site
3939

40-
.PHONY: setup build site clean site-fast
40+
## Run Eslint on your local machine.
41+
lint:
42+
npm run lint
43+
44+
.PHONY: setup build site clean site-fast lint

0 commit comments

Comments
 (0)