Skip to content

Commit 85bd0b1

Browse files
authored
chore: add eslint and prettier (#28)
* chore: add eslint and prettier * chore: add lint workflow * Delete TS dependency
1 parent 0b1e99a commit 85bd0b1

File tree

9 files changed

+4382
-582
lines changed

9 files changed

+4382
-582
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint
2+
3+
on: push
4+
5+
jobs:
6+
run-linters:
7+
name: Run linters
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out Git repository
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
19+
# ESLint and Prettier must be in `package.json`
20+
- name: Install Node.js dependencies
21+
run: npm install
22+
23+
- name: Run linters
24+
run: npm run lint

components/Icons.js

Lines changed: 253 additions & 253 deletions
Large diffs are not rendered by default.

components/SmallCard.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import React from 'react';
2-
3-
export default function SmallCard({ Icon, title, slug }) {
4-
return (
5-
<a className="card-small" href={`/project/${slug}`}>
6-
<Icon w={153} h={163} />
7-
<h3>{title}</h3>
8-
</a>
9-
);
10-
}
1+
import React from 'react';
2+
3+
export default function SmallCard({ Icon, title, slug }) {
4+
return (
5+
<a className="card-small" href={`/project/${slug}`}>
6+
<Icon w={153} h={163} />
7+
<h3>{title}</h3>
8+
</a>
9+
);
10+
}

0 commit comments

Comments
 (0)