0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 21:16:17 +08:00
discourse/eslint.config.mjs
David Taylor e3ca66135c
DEV: Remove ember-template-lint (#40077)
The latest version of `@discourse/lint-configs` (and in turn `eslint-plugin-ember`) ships with eslint rules & configuration which replicate all the functionality which was previously provided by ember-template-lint.
2026-05-15 20:54:13 +01:00

33 lines
699 B
JavaScript
Vendored

import DiscourseRecommended from "@discourse/lint-configs/eslint";
export default [
...DiscourseRecommended,
{
rules: {
"ember/template-no-capital-arguments": "off",
"ember/template-require-button-type": "off",
},
},
{
ignores: [
"plugins/**/lib/javascripts/locale",
"plugins/discourse-math/public",
"public/",
"vendor/",
"**/node_modules/",
"spec/",
"frontend/discourse/dist/",
"frontend/discourse-types/dts-generator.js",
"tmp/",
],
},
{
files: ["themes/**/*.{js,gjs}"],
languageOptions: {
globals: {
settings: "readonly",
themePrefix: "readonly",
},
},
},
];