@discourse/lint-configs 2.19.0 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ export default {
2
2
  meta: {
3
3
  type: "problem",
4
4
  docs: {
5
- description: "disallow api.registerConnectorClass() uses",
5
+ description: "prevent using deprecated plugin APIs",
6
6
  },
7
7
  fixable: "code",
8
8
  schema: [], // no options
@@ -23,6 +23,16 @@ export default {
23
23
  message:
24
24
  "registerConnectorClass is deprecated. Create a glimmer component in a plugin connector directory or use renderInOutlet instead.",
25
25
  });
26
+ } else if (
27
+ callee.type === "MemberExpression" &&
28
+ callee.property.name === "decoratePluginOutlet" &&
29
+ args.length === 2
30
+ ) {
31
+ context.report({
32
+ node,
33
+ message:
34
+ "decoratePluginOutlet is deprecated. Use element modifiers on a component instead.",
35
+ });
26
36
  }
27
37
  },
28
38
  };
package/eslint.mjs CHANGED
@@ -13,13 +13,13 @@ import SimpleImportSort from "eslint-plugin-simple-import-sort";
13
13
  import SortClassMembers from "eslint-plugin-sort-class-members";
14
14
  import globals from "globals";
15
15
  import deprecatedLookups from "./eslint-rules/deprecated-lookups.mjs";
16
+ import deprecatedPluginApis from "./eslint-rules/deprecated-plugin-apis.mjs";
16
17
  import discourseCommonImports from "./eslint-rules/discourse-common-imports.mjs";
17
18
  import i18nImport from "./eslint-rules/i18n-import-location.mjs";
18
19
  import i18nT from "./eslint-rules/i18n-t.mjs";
19
20
  import lineAfterImports from "./eslint-rules/line-after-imports.mjs";
20
21
  import lineBeforeDefaultExport from "./eslint-rules/line-before-default-export.mjs";
21
22
  import linesBetweenClassMembers from "./eslint-rules/lines-between-class-members.mjs";
22
- import noRegisterConnectorClass from "./eslint-rules/no-register-connector-class.mjs";
23
23
  import noSimpleQuerySelector from "./eslint-rules/no-simple-query-selector.mjs";
24
24
  import serviceInjectImport from "./eslint-rules/service-inject-import.mjs";
25
25
  import truthHelpersImports from "./eslint-rules/truth-helpers-imports.mjs";
@@ -119,7 +119,7 @@ export default [
119
119
  "deprecated-lookups": deprecatedLookups,
120
120
  "discourse-common-imports": discourseCommonImports,
121
121
  "lines-between-class-members": linesBetweenClassMembers,
122
- "no-register-connector-class": noRegisterConnectorClass,
122
+ "deprecated-plugin-apis": deprecatedPluginApis,
123
123
  "line-after-imports": lineAfterImports,
124
124
  "line-before-default-export": lineBeforeDefaultExport,
125
125
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discourse/lint-configs",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
4
4
  "description": "Shareable lint configs for Discourse core, plugins, and themes",
5
5
  "author": "Discourse",
6
6
  "license": "MIT",
package/stylelint.mjs CHANGED
@@ -29,6 +29,10 @@ export default {
29
29
  "scss/at-function-pattern": null,
30
30
  "scss/comment-no-empty": null,
31
31
  "scss/at-mixin-pattern": null,
32
+ "declaration-property-value-keyword-no-deprecated": [
33
+ true,
34
+ { ignoreKeywords: ["break-word"] },
35
+ ],
32
36
 
33
37
  "discourse/no-breakpoint-mixin": true,
34
38
  },