From 2fb4497c6c07514644c78f61a611fd6275bf1051 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 31 Mar 2019 19:06:59 +0100 Subject: [PATCH] Use erb-lint to prohibit inline scripting --- .erb-lint.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.erb-lint.yml b/.erb-lint.yml index c78bcd178..812a6f538 100644 --- a/.erb-lint.yml +++ b/.erb-lint.yml @@ -1,9 +1,8 @@ --- linters: - SelfClosingTag: - enabled: false - SpaceInHtmlTag: + AllowedScriptType: enabled: true + disallow_inline_scripts: true Rubocop: enabled: true rubocop_config: @@ -25,5 +24,9 @@ linters: Enabled: false Rails/OutputSafety: Enabled: false + SelfClosingTag: + enabled: false + SpaceInHtmlTag: + enabled: true exclude: - '**/vendor/**' -- 2.43.2