Skip to content

Commit

Permalink
DEV: Update linting (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Mar 27, 2024
1 parent 5c49bb3 commit b08b26a
Show file tree
Hide file tree
Showing 10 changed files with 3,496 additions and 14 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");
7 changes: 2 additions & 5 deletions common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1128,11 +1128,8 @@ aside.quote .title {
&::before {
margin-right: 4px;
border-radius: 0;
box-shadow:
2px 0 25px var(--tertiary),
0 2px 25px var(--tertiary),
-2px 0 25px var(--tertiary),
0 -2px 25px var(--tertiary);
box-shadow: 2px 0 25px var(--tertiary), 0 2px 25px var(--tertiary),
-2px 0 25px var(--tertiary), 0 -2px 25px var(--tertiary);
}
}
hr.topic-list-item-separator {
Expand Down
18 changes: 10 additions & 8 deletions mobile/mobile.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// admin: admin_base
.admin-main-nav:before, .admin-controls nav:before {
.admin-main-nav:before,
.admin-controls nav:before {
content: "";
background: hsla(230, 32%, 26%, 1);
width: 10px;
}

.admin-main-nav:after, .admin-controls nav:after {
.admin-main-nav:after,
.admin-controls nav:after {
content: "";
background: #1a1e32;
width: 10px;
Expand Down Expand Up @@ -119,7 +121,7 @@
// base:discourse
.mobile-view .mobile-nav {
border: 0;
background: rgba(0,0,0,0.5);
background: rgba(0, 0, 0, 0.5);
.drop.expanded {
border: 0;
}
Expand Down Expand Up @@ -221,8 +223,7 @@ tr.category-topic-link {
}

.user-navigation {
background-color: rgba(0,0,0,0);

background-color: rgba(0, 0, 0, 0);
}

.user-table {
Expand Down Expand Up @@ -251,8 +252,8 @@ tr.category-topic-link {

// components:user-stream
.user-right {
>.user-stream {
>.alert:first-child {
> .user-stream {
> .alert:first-child {
margin-top: 0;
}
}
Expand All @@ -267,7 +268,8 @@ tr.category-topic-link {
}

.user-stream {
.item, .user-stream-item {
.item,
.user-stream-item {
padding: 8px;
}
}
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 b08b26a

Please sign in to comment.