Skip to content

Commit

Permalink
DEV: Update linting (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Mar 27, 2024
1 parent c6b68fb commit fb00747
Show file tree
Hide file tree
Showing 10 changed files with 3,492 additions and 25 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/eslint-theme");
11 changes: 11 additions & 0 deletions .github/workflows/discourse-theme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Discourse Theme

on:
push:
branches:
- main
pull_request:

jobs:
ci:
uses: discourse/.github/.github/workflows/discourse-theme.yml@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.discourse-site
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/prettier");
1 change: 1 addition & 0 deletions .template-lintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/template-lint");
28 changes: 7 additions & 21 deletions desktop/desktop.scss
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
@import "common/foundation/variables";

@mixin boxShadow {
box-shadow:
0 2px 5px 0 rgba(0, 0, 0, 0.16),
0 0 0 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 0 0 0 rgba(0, 0, 0, 0.12);
}

@mixin buttonShadow {
box-shadow:
0 0 4px rgba(0, 0, 0, 0.14),
0 4px 8px rgba(0, 0, 0, 0.28);
box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

@mixin buttonTransition {
transition:
right 0.5s,
bottom 0.5s,
border-radius 0.5s,
text-indent 0.2s,
visibility 1s,
width 0.2s ease,
height 0.5s ease 0.4s,
color 0.5s,
background-color 2s,
transform 0.5s;
transition: right 0.5s, bottom 0.5s, border-radius 0.5s, text-indent 0.2s,
visibility 1s, width 0.2s ease, height 0.5s ease 0.4s, color 0.5s,
background-color 2s, transform 0.5s;
}

// make header icons semi-translucent
Expand Down Expand Up @@ -311,8 +299,6 @@

#main-chat-outlet {
margin-top: 1.5em;
box-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}
4 changes: 1 addition & 3 deletions mobile/mobile.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@mixin boxShadow {
box-shadow:
0 2px 5px 0 rgba(0, 0, 0, 0.16),
0 0 0 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 0 0 0 rgba(0, 0, 0, 0.12);
}

//create conversation cards
Expand Down
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"private": true,
"devDependencies": {
"@discourse/lint-configs": "^1.3.7",
"ember-template-lint": "^5.13.0",
"eslint": "^8.56.0",
"prettier": "^2.8.8"
}
}
Loading

0 comments on commit fb00747

Please sign in to comment.