discourse/eslint.config.mjs
David Taylor acde5c4337
DEV: Enable discourse-common-imports eslint rule (#30742)
Applies the autofix, which caught a few places that were missed in the
original find/replace

See https://github.com/discourse/lint-configs/pull/91
2025-01-13 16:01:34 +00:00

35 lines
972 B
JavaScript

import DiscourseRecommended from "@discourse/lint-configs/eslint";
export default [
...DiscourseRecommended,
{
rules: {
"ember/no-classic-classes": "error",
"discourse/i18n-import-location": "error",
"discourse/i18n-t": "error",
"discourse/discourse-common-imports": "error",
"qunit/no-assert-equal-boolean": "error",
"qunit/no-assert-equal": "error",
"qunit/no-loose-assertions": "error",
"qunit/no-negated-ok": "error",
"qunit/no-ok-equality": "error",
},
},
{
ignores: [
"app/assets/javascripts/ember-addons/",
"lib/javascripts/locale/*",
"lib/javascripts/messageformat.js",
"lib/javascripts/messageformat-lookup.js",
"plugins/**/lib/javascripts/locale",
"public/",
"vendor/",
"app/assets/javascripts/discourse/tests/fixtures",
"**/node_modules/",
"spec/",
"app/assets/javascripts/discourse/dist/",
"tmp/",
],
},
];