Merge pull request #174 from overleaf/jpa-explicit-dependencies

[misc] add linting for missing explicit dependencies and fix any errors
This commit is contained in:
Jakob Ackermann 2021-05-17 10:57:12 +02:00 committed by GitHub
commit e92b9fc754
2 changed files with 12 additions and 3 deletions

View file

@ -22,7 +22,10 @@
"rules": {
// Swap the no-unused-expressions rule with a more chai-friendly one
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": "error"
"chai-friendly/no-unused-expressions": "error",
// Do not allow importing of implicit dependencies.
"import/no-extraneous-dependencies": "error"
},
"overrides": [
{
@ -57,7 +60,13 @@
"files": ["app/**/*.js", "app.js", "index.js"],
"rules": {
// don't allow console.log in backend code
"no-console": "error"
"no-console": "error",
// Do not allow importing of implicit dependencies.
"import/no-extraneous-dependencies": ["error", {
// Do not allow importing of devDependencies.
"devDependencies": false
}]
}
}
]

View file

@ -5,4 +5,4 @@ document-updater
--env-pass-through=
--node-version=12.21.0
--public-repo=True
--script-version=3.7.0
--script-version=3.8.0