Skip to content

Commit 3ab718f

Browse files
committed
ci: added linting
1 parent b1c2e0c commit 3ab718f

File tree

7 files changed

+42
-2
lines changed

7 files changed

+42
-2
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Set the default behavior, in case people don’t have core.autocrlf set.
2+
* text=auto
3+
4+
# Declare files that will always have LF line endings on checkout.
5+
*.js text eol=lf
6+
*.jsx text eol=lf
7+
8+
# Denote all files that are truly binary and should not be modified.
9+
*.png binary
10+
*.jpg binary

.github/workflows/ci.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,27 @@ name: Node.js CI
33
on: [push]
44

55
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [14.x]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install Dependencies
20+
run: yarn
21+
- name: Lint
22+
run: yarn lint
23+
624
test:
725
runs-on: ubuntu-latest
8-
26+
927
strategy:
1028
matrix:
1129
node-version: [14.x]

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
dist
3+
node_modules

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# apollo-gateway
2-
Webpack Module Federation Apollo based gateway
2+
3+
Webpack Module Federation Apollo based gateway

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"build": "rollup -c",
1010
"dev": "rollup -c -w",
11+
"lint": "prettier --loglevel warn --check .",
1112
"test": "jest --coverage"
1213
},
1314
"peerDependencies": {
@@ -23,6 +24,7 @@
2324
"cz-conventional-changelog": "^3.3.0",
2425
"graphql": "^15.5.0",
2526
"jest": "^26.6.3",
27+
"prettier": "^2.2.1",
2628
"rollup": "^2.39.0"
2729
},
2830
"config": {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,6 +4322,11 @@ prelude-ls@~1.1.2:
43224322
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
43234323
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
43244324

4325+
prettier@^2.2.1:
4326+
version "2.2.1"
4327+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
4328+
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
4329+
43254330
pretty-format@^26.0.0, pretty-format@^26.6.2:
43264331
version "26.6.2"
43274332
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93"

0 commit comments

Comments
 (0)