Skip to content

Commit

Permalink
Merge pull request #389 from JS-AK/fix/eslint/bump-ecma-version
Browse files Browse the repository at this point in the history
Fix/eslint/bump ecma version
  • Loading branch information
icebob authored Aug 25, 2024
2 parents ee39037 + 315ddf8 commit 7a84991
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions packages/moleculer-db-adapter-mongoose/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = {
root: true,
"env": {
"node": true,
"commonjs": true,
"es6": true,
"jquery": false,
"jest": true,
"jasmine": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "2022"
},
"rules": {
"indent": [
"warn",
"tab",
{ SwitchCase: 1 }
],
"quotes": [
"warn",
"double"
],
"semi": [
"error",
"always"
],
"no-var": [
"error"
],
"no-console": [
"off"
],
"no-unused-vars": [
"warn"
]
}
};
2 changes: 1 addition & 1 deletion packages/moleculer-db-adapter-mongoose/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class MongooseDbAdapter {
init(broker, service) {
this.broker = broker;
this.service = service;
this.useNativeMongooseVirtuals = !!service.settings?.useNativeMongooseVirtuals
this.useNativeMongooseVirtuals = !!service.settings?.useNativeMongooseVirtuals;

if (this.service.schema.model) {
this.model = this.service.schema.model;
Expand Down

0 comments on commit 7a84991

Please sign in to comment.