Skip to content

Commit 4eba2f5

Browse files
committed
Add modules and linter packages
1 parent 75f70ad commit 4eba2f5

File tree

12 files changed

+14311
-7
lines changed

12 files changed

+14311
-7
lines changed

.github/workflows/linters.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Linters
2+
3+
on: pull_request
4+
5+
env:
6+
FORCE_COLOR: 1
7+
8+
jobs:
9+
lighthouse:
10+
name: Lighthouse
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: "12.x"
17+
- name: Setup Lighthouse
18+
run: npm install -g @lhci/[email protected]
19+
- name: Lighthouse Report
20+
run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=.
21+
webhint:
22+
name: Webhint
23+
runs-on: ubuntu-18.04
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: "12.x"
29+
- name: Setup Webhint
30+
run: |
31+
npm install --save-dev [email protected]
32+
[ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc
33+
- name: Webhint Report
34+
run: npx hint .
35+
stylelint:
36+
name: Stylelint
37+
runs-on: ubuntu-18.04
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-node@v1
41+
with:
42+
node-version: "12.x"
43+
- name: Setup Stylelint
44+
run: |
45+
46+
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json
47+
- name: Stylelint Report
48+
run: npx stylelint "**/*.{css,scss}"
49+
eslint:
50+
name: ESLint
51+
runs-on: ubuntu-18.04
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: actions/setup-node@v1
55+
with:
56+
node-version: "12.x"
57+
- name: Setup ESLint
58+
run: |
59+
60+
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json
61+
- name: ESLint Report
62+
run: npx eslint .

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,6 @@ MigrationBackup/
348348

349349
# Ionide (cross platform F# VS Code tools) working folder
350350
.ionide/
351+
352+
#node_modules
353+
node_modules

dist/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Leaderboard Project</title>
8-
</head>
8+
<script defer src="main.js"></script></head>
99
<body>
1010
<header>
1111
<h1 class="main-heading">Leaderboard</h1>
1212
</header>
1313
<main>
1414
<section class="left-section">
1515
<div class="top">
16-
<h2>Recent Scores</h2>
16+
<h2>Recent Goals</h2>
1717
<button type="button">Refresh</button>
1818
</div>
1919

@@ -23,15 +23,14 @@ <h2>Recent Scores</h2>
2323
</section>
2424
<section class="right-section">
2525
<div class="top">
26-
<h2>Add your score</h2>
26+
<h2>Add the goals</h2>
2727
</div>
2828
<form action="#" class="add-score">
29-
<input type="text" name="name" placeholder="Your name">
30-
<input type="number" name="score" placeholder="Your score">
29+
<input type="text" name="name" placeholder="Player name">
30+
<input type="number" name="score" placeholder="Player goals">
3131
<button type="submit" class="submit">Submit</button>
3232
</form>
3333
</section>
3434
</main>
35-
<script src="../src/index.js"></script>
3635
</body>
3736
</html>

dist/main.js

Lines changed: 203 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hint-report/file--C--Users-Stephen-Desktop-Leaderboard-Leaderboard.html

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

0 commit comments

Comments
 (0)