forked from parse-community/parse-server-push-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
38 lines (37 loc) · 855 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
__dirname: true,
beforeEach: true,
Buffer: true,
console: true,
describe: true,
fail: true,
expect: true,
global: true,
it: true,
jasmine: true,
process: true,
spyOn: true,
},
},
rules: {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": 2,
"eol-last": 2,
"space-in-parens": ["error", "never"],
"no-multiple-empty-lines": 1,
"prefer-const": "error",
"space-infix-ops": "error",
"no-useless-escape": "off",
"no-var": "error",
"no-unused-vars": "warn",
"no-undef": "warn",
"no-prototype-builtins": "off",
}
}
];