Skip to content

Commit

Permalink
DEV: Update linting (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX authored Mar 27, 2024
1 parent 50c16bd commit 5dd9f83
Show file tree
Hide file tree
Showing 13 changed files with 2,120 additions and 817 deletions.
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

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");
48 changes: 0 additions & 48 deletions .github/workflows/component-linting.yml

This file was deleted.

147 changes: 0 additions & 147 deletions .github/workflows/component-tests.yml

This file was deleted.

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
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");
4 changes: 0 additions & 4 deletions .template-lintrc.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withPluginApi } from "discourse/lib/plugin-api";
import { cancel } from "@ember/runloop";
import { withPluginApi } from "discourse/lib/plugin-api";

export default {
name: "customize-edit-category-general",
Expand Down
12 changes: 11 additions & 1 deletion mobile/mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
}

html
body:not(.static-tos):not(.static-faq):not(.static-privacy):not(.about-page):not(.static-faq):not(.badges-page):not(.tags-page):not(.archetype-banner):not(.archetype-regular):not(.archetype-private_message):not(.admin-interface):not(.edit-category):not(.user-summary-page):not(.user-activity-page):not(.user-invites-page):not(.user-preferences-page):not(.user-messages-page):not(.user-notifications-page):not(.user-badges-page)
body:not(.static-tos):not(.static-faq):not(.static-privacy):not(
.about-page
):not(.static-faq):not(.badges-page):not(.tags-page):not(
.archetype-banner
):not(.archetype-regular):not(.archetype-private_message):not(
.admin-interface
):not(.edit-category):not(.user-summary-page):not(.user-activity-page):not(
.user-invites-page
):not(.user-preferences-page):not(.user-messages-page):not(
.user-notifications-page
):not(.user-badges-page)
#main-outlet {
width: calc(100% - 1em);
padding: 0em 0.5em 1em 0.5em;
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "discourse-air",
"version": "1.0.0",
"repository": "https://github.com/discourse/discourse-air",
"author": "Jordan Vidrine",
"license": "GPL-2.0-or-later",
"private": true,
"devDependencies": {
"eslint-config-discourse": "^3.2.0"
"@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 5dd9f83

Please sign in to comment.