mirror of
https://github.com/discourse/discourse.git
synced 2026-05-22 13:03:29 +00:00
e3ca66135c
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.
34 lines
699 B
JavaScript
34 lines
699 B
JavaScript
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",
|
|
},
|
|
},
|
|
},
|
|
];
|