Skip to content

Commit 0447389

Browse files
committed
chore(eslintrc): update file with modified version from mongoose
1 parent df2fd0b commit 0447389

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.eslintrc.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
"extends": [
33
"eslint:recommended"
44
],
5+
"ignorePatterns": [
6+
"docs",
7+
"tools",
8+
"dist",
9+
"website.js",
10+
"test/files/*",
11+
"benchmarks"
12+
],
13+
"overrides": [],
514
"plugins": [
615
"mocha-no-only"
716
],
817
"parserOptions": {
9-
"ecmaVersion": 2017
18+
"ecmaVersion": 2020
1019
},
1120
"env": {
1221
"node": true,
@@ -26,8 +35,8 @@
2635
"no-whitespace-before-property": "error",
2736
"no-buffer-constructor": "warn",
2837
"no-console": "off",
29-
"no-multi-spaces": "error",
3038
"no-constant-condition": "off",
39+
"no-multi-spaces": "error",
3140
"func-call-spacing": "error",
3241
"no-trailing-spaces": "error",
3342
"no-undef": "error",
@@ -118,6 +127,9 @@
118127
"no-prototype-builtins": "off",
119128
"mocha-no-only/mocha-no-only": [
120129
"error"
121-
]
130+
],
131+
"no-empty": "off",
132+
"eol-last": "warn",
133+
"no-multiple-empty-lines": ["warn", { "max": 2 }]
122134
}
123-
}
135+
}

0 commit comments

Comments
 (0)