Просмотр исходного кода

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
Liangjun Song 1 год назад
Родитель
Сommit
30b5b74f79
1 измененных файлов с 11 добавлено и 1 удалено
  1. 11 1
      services/web/.eslintrc.js

+ 11 - 1
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',
       },