mirror of
https://github.com/discourse/discourse.git
synced 2025-01-15 01:19:03 +08:00
acde5c4337
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
35 lines
972 B
JavaScript
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/",
|
|
],
|
|
},
|
|
];
|