-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
55 lines (55 loc) · 1.34 KB
/
.eslintrc.cjs
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
47
48
49
50
51
52
53
54
55
module.exports = {
// extends: "standard",
extends: ["eslint-recommended", "prettier"],
env: {
es2021: true,
node: true,
},
globals: {
$: "readonly",
$$: "readonly",
cfg: "readonly",
argv: "readonly",
log: "readonly",
fs: "readonly",
os: "readonly",
cd: "readonly",
info: "readonly",
head: "readonly",
icons: "readonly",
C: "readonly",
L: "readonly",
logYaml: "readonly",
chalk: "readonly",
sleep: "readonly",
spinner: "readonly",
fillFrom: "readonly",
fillTo: "readonly",
getModuleName: "readonly",
CWD: "readonly",
YAML: "readonly",
PKG_PATH: "readonly",
PKG_NAME: "readonly",
runCommands: "readonly",
PKG_VERSION: "readonly",
CONFIG_DIR: "readonly",
CONFIG_PATH: "readonly",
LOCAL_CONFIG_PATH: "readonly",
REL_CONFIG_PATH: "readonly",
},
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
indent: ["error", 2],
quotes: ["error", "double"],
semi: ["error", "always"],
"comma-dangle": ["error", "only-multiline"],
"max-len": ["error", { code: 80, ignoreTemplateLiterals: true }],
"max-lines": ["error", 300],
"space-before-function-paren": ["error", "never"],
camelcase: ["error", { properties: "never", ignoreDestructuring: true }],
},
};