mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
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:
parent
26f3f3e2e2
commit
30b5b74f79
1 changed files with 11 additions and 1 deletions
|
@ -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',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue