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
This commit is contained in:
Liangjun Song 2024-10-18 20:34:21 +08:00 committed by Copybot
parent 26f3f3e2e2
commit 30b5b74f79

View file

@ -91,7 +91,17 @@ module.exports = {
}, },
{ {
// ES specific rules // 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: { parserOptions: {
sourceType: 'module', sourceType: 'module',
}, },