DEV: Update linting (#29)
This commit is contained in:
parent
178853ccc7
commit
ad64ea25f0
|
@ -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",
|
|
||||||
};
|
|
|
@ -1,16 +1,16 @@
|
||||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
import { get } from "@ember/object";
|
||||||
import Category from "discourse/models/category";
|
|
||||||
import { helperContext } from "discourse-common/lib/helpers";
|
|
||||||
import { iconHTML, iconNode } from "discourse-common/lib/icon-library";
|
|
||||||
import { isRTL } from "discourse/lib/text-direction";
|
|
||||||
import { h } from "virtual-dom";
|
import { h } from "virtual-dom";
|
||||||
import getURL from "discourse-common/lib/get-url";
|
|
||||||
import categoryTitleLink from "discourse/components/category-title-link";
|
|
||||||
import categoriesBoxes from "discourse/components/categories-boxes";
|
import categoriesBoxes from "discourse/components/categories-boxes";
|
||||||
import categoriesBoxesWithTopics from "discourse/components/categories-boxes-with-topics";
|
import categoriesBoxesWithTopics from "discourse/components/categories-boxes-with-topics";
|
||||||
import I18n from "I18n";
|
import categoryTitleLink from "discourse/components/category-title-link";
|
||||||
import { get } from "@ember/object";
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
|
import { isRTL } from "discourse/lib/text-direction";
|
||||||
import { escapeExpression } from "discourse/lib/utilities";
|
import { escapeExpression } from "discourse/lib/utilities";
|
||||||
|
import Category from "discourse/models/category";
|
||||||
|
import getURL from "discourse-common/lib/get-url";
|
||||||
|
import { helperContext } from "discourse-common/lib/helpers";
|
||||||
|
import { iconHTML, iconNode } from "discourse-common/lib/icon-library";
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "category-icons",
|
name: "category-icons",
|
||||||
|
|
11
package.json
11
package.json
|
@ -1,10 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "discourse-category-icons",
|
"private": true,
|
||||||
"version": "1.0.0",
|
|
||||||
"repository": "https://github.com/discourse/discourse-category-icons",
|
|
||||||
"author": "Discourse",
|
|
||||||
"license": "MIT",
|
|
||||||
"devDependencies": {
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
import { visit } from "@ember/test-helpers";
|
||||||
import { test } from "qunit";
|
import { test } from "qunit";
|
||||||
|
import Site from "discourse/models/site";
|
||||||
import {
|
import {
|
||||||
acceptance,
|
acceptance,
|
||||||
exists,
|
exists,
|
||||||
query,
|
query,
|
||||||
updateCurrentUser,
|
updateCurrentUser,
|
||||||
} from "discourse/tests/helpers/qunit-helpers";
|
} from "discourse/tests/helpers/qunit-helpers";
|
||||||
import { visit } from "@ember/test-helpers";
|
|
||||||
import Site from "discourse/models/site";
|
|
||||||
|
|
||||||
acceptance("Sidebar - Category icons", function (needs) {
|
acceptance("Sidebar - Category icons", function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
|
|
Loading…
Reference in New Issue