DEV: Update linting (#47)

This commit is contained in:
Jarek Radosz 2024-03-27 17:16:16 +01:00 committed by GitHub
parent 84bf1a4ae0
commit d61629c0fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 1339 additions and 692 deletions

View File

@ -1,8 +0,0 @@
{
"extends": "eslint-config-discourse",
"ignorePatterns": ["javascripts/vendor/*"],
"globals": {
"settings": "readonly",
"themePrefix": "readonly"
}
}

1
.eslintrc.cjs Normal file
View File

@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/eslint-theme");

View File

@ -1 +0,0 @@
{}

1
.prettierrc.cjs Normal file
View File

@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/prettier");

1
.template-lintrc.cjs Normal file
View File

@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/template-lint");

View File

@ -1,4 +0,0 @@
module.exports = {
plugins: ["ember-template-lint-plugin-discourse"],
extends: "discourse:recommended",
};

View File

@ -1,10 +1,10 @@
import Category from "discourse/models/category";
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import { getOwner } from "@ember/application";
import { action } from "@ember/object";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import Category from "discourse/models/category";
export default class DiscourseCategoryBanners extends Component {
@service router;

View File

@ -1,5 +1,5 @@
import Service from "@ember/service";
import { tracked } from "@glimmer/tracking";
import Service from "@ember/service";
export default class CategoryBannerPresence extends Service {
@tracked isPresent = false;

View File

@ -1,10 +1,9 @@
{
"name": "discourse-category-banners",
"version": "1.0.0",
"repository": "https://github.com/discourse/discourse-category-banners",
"author": "Discourse",
"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"
}
}

1994
yarn.lock

File diff suppressed because it is too large Load Diff