DEV: Update linting (#25)
This commit is contained in:
parent
d205a78337
commit
21d65062aa
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "eslint-config-discourse",
|
|
||||||
"ignorePatterns": ["javascripts/vendor/*"],
|
|
||||||
"globals": {
|
|
||||||
"settings": "readonly",
|
|
||||||
"themePrefix": "readonly"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = require("@discourse/lint-configs/eslint-theme");
|
|
@ -1 +0,0 @@
|
||||||
{}
|
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = require("@discourse/lint-configs/prettier");
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = require("@discourse/lint-configs/template-lint");
|
|
@ -1,4 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
plugins: ["ember-template-lint-plugin-discourse"],
|
|
||||||
extends: "discourse:recommended",
|
|
||||||
};
|
|
|
@ -23,6 +23,7 @@ export default Component.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
willDestroyElement() {
|
willDestroyElement() {
|
||||||
|
this._super(...arguments);
|
||||||
document.body.classList.remove("topic-in-gated-category");
|
document.body.classList.remove("topic-in-gated-category");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
11
package.json
11
package.json
|
@ -1,10 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "discourse-gated-topics-in-category",
|
"private": true,
|
||||||
"version": "1.0.0",
|
|
||||||
"repository": "https://github.com/discourse/discourse-gated-topics-in-category",
|
|
||||||
"author": "ella",
|
|
||||||
"license": "MIT",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-discourse": "^3.1.0"
|
"@discourse/lint-configs": "^1.3.7",
|
||||||
|
"ember-template-lint": "^5.13.0",
|
||||||
|
"eslint": "^8.56.0",
|
||||||
|
"prettier": "^2.8.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { acceptance, query } from "discourse/tests/helpers/qunit-helpers";
|
|
||||||
import { visit } from "@ember/test-helpers";
|
import { visit } from "@ember/test-helpers";
|
||||||
import { test } from "qunit";
|
import { test } from "qunit";
|
||||||
|
import { acceptance, query } from "discourse/tests/helpers/qunit-helpers";
|
||||||
|
|
||||||
acceptance("Gated Topics - Anonymous", function (needs) {
|
acceptance("Gated Topics - Anonymous", function (needs) {
|
||||||
needs.settings({ tagging_enabled: true });
|
needs.settings({ tagging_enabled: true });
|
||||||
|
|
Loading…
Reference in New Issue