Skip to content

Commit ff094fe

Browse files
committed
DEV: Update linting
1 parent c6b68fb commit ff094fe

File tree

10 files changed

+3492
-25
lines changed

10 files changed

+3492
-25
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@discourse/lint-configs/eslint-theme");

.github/workflows/discourse-theme.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Discourse Theme
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
ci:
11+
uses: discourse/.github/.github/workflows/discourse-theme.yml@v1

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.discourse-site

.prettierrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@discourse/lint-configs/prettier");

.template-lintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@discourse/lint-configs/template-lint");

desktop/desktop.scss

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
@import "common/foundation/variables";
22

33
@mixin boxShadow {
4-
box-shadow:
5-
0 2px 5px 0 rgba(0, 0, 0, 0.16),
6-
0 0 0 0 rgba(0, 0, 0, 0.12);
4+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 0 0 0 rgba(0, 0, 0, 0.12);
75
}
86

97
@mixin buttonShadow {
10-
box-shadow:
11-
0 0 4px rgba(0, 0, 0, 0.14),
12-
0 4px 8px rgba(0, 0, 0, 0.28);
8+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
139
}
1410

1511
@mixin buttonTransition {
16-
transition:
17-
right 0.5s,
18-
bottom 0.5s,
19-
border-radius 0.5s,
20-
text-indent 0.2s,
21-
visibility 1s,
22-
width 0.2s ease,
23-
height 0.5s ease 0.4s,
24-
color 0.5s,
25-
background-color 2s,
26-
transform 0.5s;
12+
transition: right 0.5s, bottom 0.5s, border-radius 0.5s, text-indent 0.2s,
13+
visibility 1s, width 0.2s ease, height 0.5s ease 0.4s, color 0.5s,
14+
background-color 2s, transform 0.5s;
2715
}
2816

2917
// make header icons semi-translucent
@@ -311,8 +299,6 @@
311299

312300
#main-chat-outlet {
313301
margin-top: 1.5em;
314-
box-shadow:
315-
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
316-
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
317-
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
302+
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
303+
0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
318304
}

mobile/mobile.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@mixin boxShadow {
2-
box-shadow:
3-
0 2px 5px 0 rgba(0, 0, 0, 0.16),
4-
0 0 0 0 rgba(0, 0, 0, 0.12);
2+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 0 0 0 rgba(0, 0, 0, 0.12);
53
}
64

75
//create conversation cards

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"private": true,
3+
"devDependencies": {
4+
"@discourse/lint-configs": "^1.3.7",
5+
"ember-template-lint": "^5.13.0",
6+
"eslint": "^8.56.0",
7+
"prettier": "^2.8.8"
8+
}
9+
}

0 commit comments

Comments
 (0)