mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 17:45:22 +08:00
32665cf9dd
Enables our new eslint rules which enforce consistent i18n imports. For more info, see 0d58b40cd7
29 lines
710 B
JavaScript
29 lines
710 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",
|
|
},
|
|
},
|
|
{
|
|
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/",
|
|
],
|
|
},
|
|
];
|