diff --git a/Makefile b/Makefile index 2843588b93..f9fabf4bce 100644 --- a/Makefile +++ b/Makefile @@ -153,7 +153,7 @@ TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE) $(FOMAN GO_DIRS := build cmd models modules routers services tests WEB_DIRS := web_src/js web_src/css -STYLELINT_FILES := web_src/css web_src/js/components/*.vue +STYLELINT_FILES := web_src/css web_src/js/components/*.vue templates/**/*.tmpl SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) docs/content templates options/locale/locale_en-US.ini .github $(wildcard *.go *.js *.ts *.vue *.md *.yml *.yaml) GO_SOURCES := $(wildcard *.go) diff --git a/stylelint.config.js b/stylelint.config.js index b7cc162669..0235ba658e 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -36,6 +36,17 @@ export default { files: ['**/*.vue'], customSyntax: 'postcss-html', }, + { + files: '**/*.tmpl', + ignoreFiles: [ + 'templates/shared/quota_overview.tmpl', // // the mix of go in the style attribute confuses the css parser + ], + customSyntax: 'postcss-html', + rules: { + '@stylistic/indentation': null, + 'scale-unlimited/declaration-strict-value': null, + }, + }, ], rules: { '@stylistic/at-rule-name-case': null, diff --git a/templates/demo/fetch-action.tmpl b/templates/demo/fetch-action.tmpl index d31044320a..955ffbbde4 100644 --- a/templates/demo/fetch-action.tmpl +++ b/templates/demo/fetch-action.tmpl @@ -34,7 +34,7 @@ diff --git a/templates/mail/release.tmpl b/templates/mail/release.tmpl index ef74485410..4bde6ce192 100644 --- a/templates/mail/release.tmpl +++ b/templates/mail/release.tmpl @@ -4,7 +4,7 @@ diff --git a/templates/repo/admin_flags.tmpl b/templates/repo/admin_flags.tmpl index 2a65c9c687..ea7f02e0e9 100644 --- a/templates/repo/admin_flags.tmpl +++ b/templates/repo/admin_flags.tmpl @@ -1,5 +1,5 @@ {{if .Repository.IsFlagged $.Context}} -