-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.js
46 lines (42 loc) · 1.4 KB
/
common.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
39
40
41
42
43
44
45
46
"use strict";
const js = require("@eslint/js");
const eslintConfigPrettier = require("eslint-config-prettier");
const recommended = js.configs.recommended;
module.exports = {
...recommended,
...eslintConfigPrettier,
name: "cesium/recommended-",
rules: {
...recommended.rules,
...eslintConfigPrettier.rules,
curly: "error",
"block-scoped-var": "error",
eqeqeq: "error",
"guard-for-in": "error",
"new-cap": ["error", { properties: false }],
"no-alert": "error",
"no-caller": "error",
"no-console": "off",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-extend-native": "error",
"no-extra-boolean-cast": "off",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-new": "error",
"no-var": "error",
"no-prototype-builtins": "off",
"no-sequences": "error",
"no-undef-init": "error",
"no-restricted-globals": ["error", "fdescribe", "fit"],
"no-unused-expressions": "error",
"no-unused-vars": ["error", { vars: "all", args: "all" }],
"no-useless-escape": "off",
"no-use-before-define": ["error", "nofunc"],
"prefer-const": "error",
"prefer-template": "error",
"require-atomic-updates": "off",
strict: "error",
"wrap-iife": ["error", "any"],
},
};