Skip to content

Commit c09289d

Browse files
DEV: Update linting (#4)
1 parent 10973e2 commit c09289d

File tree

8 files changed

+3485
-1
lines changed

8 files changed

+3485
-1
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");
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.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");

common/common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//Hide posters on Latest and Top pages
22

33
.topic-list .posters {
4-
display: none;
4+
display: none;
55
}
66

77
//Hide posters on mobile (even for RTL sites)

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+
}

yarn.lock

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

0 commit comments

Comments
 (0)