2024-11-12 12:33:17 +00:00
|
|
|
import DiscourseRecommended from "@discourse/lint-configs/eslint";
|
|
|
|
|
|
|
|
export default [
|
|
|
|
...DiscourseRecommended,
|
|
|
|
{
|
|
|
|
rules: {
|
2024-11-28 11:22:27 +01:00
|
|
|
"qunit/no-assert-equal": "error",
|
|
|
|
"qunit/no-loose-assertions": "error",
|
2025-07-30 14:54:24 +02:00
|
|
|
"ember/no-classic-components": "error",
|
2024-11-12 12:33:17 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ignores: [
|
|
|
|
"app/assets/javascripts/ember-addons/",
|
|
|
|
"lib/javascripts/locale/*",
|
|
|
|
"lib/javascripts/messageformat.js",
|
|
|
|
"lib/javascripts/messageformat-lookup.js",
|
|
|
|
"plugins/**/lib/javascripts/locale",
|
2025-07-11 17:55:09 +02:00
|
|
|
"plugins/discourse-math/public",
|
2024-11-12 12:33:17 +00:00
|
|
|
"public/",
|
|
|
|
"vendor/",
|
|
|
|
"app/assets/javascripts/discourse/tests/fixtures",
|
|
|
|
"**/node_modules/",
|
|
|
|
"spec/",
|
|
|
|
"app/assets/javascripts/discourse/dist/",
|
|
|
|
"tmp/",
|
|
|
|
],
|
|
|
|
},
|
2025-07-18 00:53:41 +02:00
|
|
|
{
|
|
|
|
files: ["themes/**/*.{js,gjs}"],
|
|
|
|
languageOptions: {
|
|
|
|
globals: {
|
|
|
|
settings: "readonly",
|
|
|
|
themePrefix: "readonly",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-11-12 12:33:17 +00:00
|
|
|
];
|