@discourse/lint-configs 1.3.3 → 1.3.5

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.
Files changed (2) hide show
  1. package/eslintrc.cjs +4 -9
  2. package/package.json +2 -2
package/eslintrc.cjs CHANGED
@@ -136,7 +136,7 @@ module.exports = {
136
136
  "ember/require-return-from-computed": "off",
137
137
  "ember/avoid-using-needs-in-controllers": "error",
138
138
  "ember/new-module-imports": "error",
139
- "ember/no-deprecated-router-transition-methods": "error",
139
+ "ember/no-deprecated-router-transition-methods": "off", // this rule is broken
140
140
  "ember/no-function-prototype-extensions": "error",
141
141
  "ember/no-string-prototype-extensions": "error",
142
142
  "ember/avoid-leaking-state-in-ember-objects": "off",
@@ -144,7 +144,7 @@ module.exports = {
144
144
  "ember/no-observers": "off",
145
145
  "ember/no-mixins": "off",
146
146
  "ember/no-new-mixins": "off",
147
- "ember/no-implicit-injections": "off",
147
+ "ember/no-implicit-injections": "off", // this rule is broken
148
148
  "ember/no-array-prototype-extensions": "off",
149
149
  "ember/no-try-invoke": "error",
150
150
  "ember/require-super-in-lifecycle-hooks": "error",
@@ -163,6 +163,7 @@ module.exports = {
163
163
  "ember/no-shadow-route-definition": "off",
164
164
  "ember/no-unnecessary-index-route": "off",
165
165
  "ember/no-unnecessary-route-path-option": "error",
166
+ "ember/no-unnecessary-service-injection-argument": "error",
166
167
  "ember/route-path-style": "off",
167
168
  "ember/routes-segments-snake-case": "off",
168
169
  "ember/no-pause-test": "error",
@@ -256,16 +257,10 @@ module.exports = {
256
257
  ],
257
258
  },
258
259
 
259
- // https://github.com/ember-cli/eslint-plugin-ember/issues/1895
260
- // We may eventually be able to drop this by extending the base
261
- // config from eslint-plugin-ember. In the meantime, this
262
260
  overrides: [
263
261
  {
264
262
  files: ["**/*.gjs", "**/*.gts"],
265
- processor: "ember/<template>",
266
- globals: {
267
- [TEMPLATE_TAG_PLACEHOLDER]: "readonly",
268
- },
263
+ parser: "ember-eslint-parser",
269
264
  },
270
265
  ],
271
266
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discourse/lint-configs",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Shareable lint configs for Discourse core, plugins, and themes",
5
5
  "author": "Discourse",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "ember-template-lint": "^5.13.0",
39
39
  "eslint": "^8.56.0",
40
40
  "eslint-plugin-decorator-position": "^5.0.2",
41
- "eslint-plugin-ember": "^11.12.0",
41
+ "eslint-plugin-ember": "^12.0.0",
42
42
  "eslint-plugin-qunit": "^8.0.1",
43
43
  "eslint-plugin-simple-import-sort": "^10.0.0",
44
44
  "eslint-plugin-sort-class-members": "^1.19.0",