DEV: Update linting (#28)
This commit is contained in:
parent
51df0ef4a6
commit
a319c0baa1
|
@ -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,8 +1,8 @@
|
||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
import EmberObject, { action } from "@ember/object";
|
import EmberObject, { action } from "@ember/object";
|
||||||
|
import { service } from "@ember/service";
|
||||||
import { isBlank } from "@ember/utils";
|
import { isBlank } from "@ember/utils";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import { inject as service } from "@ember/service";
|
|
||||||
|
|
||||||
export default class DiscoursePlaceholderBuilder extends Component {
|
export default class DiscoursePlaceholderBuilder extends Component {
|
||||||
@service dialog;
|
@service dialog;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
|
||||||
import { debounce, later } from "@ember/runloop";
|
import { debounce, later } from "@ember/runloop";
|
||||||
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
import DiscoursePlaceholderBuilder from "../components/modal/discourse-placeholder-builder";
|
import DiscoursePlaceholderBuilder from "../components/modal/discourse-placeholder-builder";
|
||||||
|
|
||||||
const VALID_TAGS =
|
const VALID_TAGS =
|
||||||
|
|
11
package.json
11
package.json
|
@ -1,10 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "discourse-placeholder-theme-component",
|
"private": true,
|
||||||
"version": "1.0.0",
|
|
||||||
"repository": "https://github.com/discourse/discourse-placeholder-theme-component",
|
|
||||||
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue