From 30b5b74f799e246ed4a55cbd4f1265ddf9ed344c Mon Sep 17 00:00:00 2001 From: Liangjun Song <146005915+adai26@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:34:21 +0800 Subject: [PATCH] Merge pull request #21229 from overleaf/ls-apply-es-specific-rule-to-migrations-and-scripts apply es specific lint rule to migrations and scripts folder GitOrigin-RevId: cd307b30a93028273988b9d0ee5727c73f8103b7 --- services/web/.eslintrc.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/services/web/.eslintrc.js b/services/web/.eslintrc.js index 1c8e6c4a3b..fa53bbd91e 100644 --- a/services/web/.eslintrc.js +++ b/services/web/.eslintrc.js @@ -91,7 +91,17 @@ module.exports = { }, { // ES specific rules - files: ['**/app/src/**/*.mjs', 'modules/*/index.mjs', 'app.mjs'], + files: [ + '**/app/src/**/*.mjs', + 'modules/*/index.mjs', + 'app.mjs', + 'scripts/**/*.mjs', + 'migrations/**/*.mjs', + ], + excludedFiles: [ + // migration template file + 'migrations/lib/template.mjs', + ], parserOptions: { sourceType: 'module', },