From b24e05ffcb0804c2fc203c2746abb1ca843eceaa Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 16 May 2021 11:32:30 +0200 Subject: [PATCH] [ticket/16775] Add gulpfile to xo linting Disabled unicorn/prefer-module because it complained about default gulpfile syntax. PHPBB3-16775 --- .github/check-js.sh | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/check-js.sh b/.github/check-js.sh index 891c5182ac..ef968375fd 100755 --- a/.github/check-js.sh +++ b/.github/check-js.sh @@ -18,3 +18,4 @@ node_modules/xo/cli.js "phpBB/adm/style/*.js" node_modules/xo/cli.js "phpBB/assets/javascript/*.js" node_modules/xo/cli.js "phpBB/style/all/js/*.js" node_modules/xo/cli.js "phpBB/style/prosilver/template/*.js" +node_modules/xo/cli.js "gulpfile.js" diff --git a/package.json b/package.json index 5240c99e42..393a0cb72e 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "computed-property-spacing": "off", "space-in-parens": "off", "capitalized-comments": "off", - "no-lonely-if": "off" + "no-lonely-if": "off", + "unicorn/prefer-module": "off" }, "env": [ "es6",