2024-11-12 06:33:17 -06:00
|
|
|
import DiscourseRecommended from "@discourse/lint-configs/eslint";
|
|
|
|
|
|
|
|
export default [
|
|
|
|
...DiscourseRecommended,
|
|
|
|
{
|
|
|
|
rules: {
|
|
|
|
"ember/no-classic-classes": "error",
|
2024-11-19 14:45:18 -06:00
|
|
|
"discourse/i18n-import-location": "error",
|
|
|
|
"discourse/i18n-t": "error",
|
2024-11-12 06:33:17 -06:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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/",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|