mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use @discourse/lint-configs (#24038)
This commit is contained in:
@@ -1,34 +1,10 @@
|
||||
module.exports = {
|
||||
plugins: ["ember-template-lint-plugin-discourse"],
|
||||
extends: "discourse:recommended",
|
||||
const templateLint = require("@discourse/lint-configs/template-lint");
|
||||
|
||||
module.exports = {
|
||||
...templateLint,
|
||||
rules: {
|
||||
"no-action-modifiers": true,
|
||||
"no-args-paths": true,
|
||||
"no-attrs-in-components": true,
|
||||
...templateLint.rules,
|
||||
"no-capital-arguments": false, // TODO: we extensively use `args` argument name
|
||||
"no-curly-component-invocation": {
|
||||
allow: [
|
||||
// These are helpers, not components
|
||||
"directory-item-header-title",
|
||||
"directory-item-user-field-value",
|
||||
"directory-item-value",
|
||||
"directory-table-header-title",
|
||||
"loading-spinner",
|
||||
"directory-item-label",
|
||||
"hide-application-footer",
|
||||
],
|
||||
},
|
||||
"no-implicit-this": {
|
||||
allow: ["loading-spinner", "hide-application-footer"],
|
||||
},
|
||||
"require-mandatory-role-attributes": false,
|
||||
"require-media-caption": false,
|
||||
// Begin prettier compatibility
|
||||
"eol-last": false,
|
||||
"self-closing-void-elements": false,
|
||||
"block-indentation": false,
|
||||
quotes: false,
|
||||
// End prettier compatibility
|
||||
"require-button-type": false,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user