From db8ca2818f24e0ded237f96573f861a63254c94e Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 13 Feb 2021 00:27:30 -0500 Subject: [PATCH] lint: Treat `helper.js` and friends as normal browser files This enables the prefer-arrow/prefer-arrow-functions rule. --- src/package.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/package.json b/src/package.json index 4fdee2909..fca557978 100644 --- a/src/package.json +++ b/src/package.json @@ -125,7 +125,9 @@ }, { "files": [ - "static/**/*" + "static/**/*", + "tests/frontend/helper.js", + "tests/frontend/helper/**/*" ], "excludedFiles": [ "**/.eslintrc.js" @@ -133,7 +135,17 @@ "extends": "etherpad/browser", "env": { "shared-node-browser": true - } + }, + "overrides": [ + { + "files": [ + "tests/frontend/helper/**/*" + ], + "globals": { + "helper": "readonly" + } + } + ] }, { "files": [ @@ -142,6 +154,8 @@ "excludedFiles": [ "**/.eslintrc.js", "tests/frontend/travis/**/*", + "tests/frontend/helper.js", + "tests/frontend/helper/**/*", "tests/ratelimit/**/*" ], "extends": "etherpad/tests", @@ -179,6 +193,8 @@ ], "excludedFiles": [ "**/.eslintrc.js", + "tests/frontend/helper.js", + "tests/frontend/helper/**/*", "tests/frontend/travis/**/*" ], "extends": "etherpad/tests/frontend",