mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 01:21:00 +08:00
# Conflicts: # app/controllers/user_avatars_controller.rb # frontend/discourse/package.json # pnpm-lock.yaml
42 lines
834 B
JavaScript
Vendored
42 lines
834 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",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
babelOptions: {
|
|
configFile: false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
];
|