-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
139 lines (139 loc) · 2.86 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
module.exports = {
env: {
browser: true,
es2022: true,
node: true,
},
extends: ["eslint:recommended", "@typhonjs-fvtt/eslint-config-foundry.js", "plugin:json/recommended", "prettier"],
globals: {
arguments: true,
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["jsdoc"],
rules: {
"array-bracket-spacing": "error",
"arrow-body-style": "off",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs",
{
allowSingleLine: true,
},
],
"comma-spacing": "error",
"comma-style": "error",
"constructor-super": "error",
curly: ["error", "multi-line", "consistent"],
eqeqeq: ["error", "smart"],
"generator-star-spacing": [
"error",
{
after: false,
before: true,
},
],
indent: "off",
"jsdoc/multiline-blocks": [
"warn",
{
noZeroLineText: false,
},
],
"jsdoc/newline-after-description": "off",
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param-description": "off",
"jsdoc/tag-lines": "off",
"key-spacing": "error",
"keyword-spacing": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-inner-declarations": "off",
"no-irregular-whitespace": "error",
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multiple-empty-lines": "error",
"no-new-object": "error",
"no-prototype-builtins": "off",
"no-regex-spaces": "error",
"no-spaced-func": "error",
"no-this-before-super": "error",
"no-trailing-spaces": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "properties"],
"operator-assignment": ["error", "always"],
"operator-linebreak": [
"error",
"after",
{
overrides: {
":": "before",
"?": "before",
},
},
],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-regex-literals": [
"error",
{
disallowRedundantWrapping: true,
},
],
"prefer-spread": "error",
"prefer-template": "error",
"quote-props": ["error", "as-needed"],
quotes: [
"error",
"double",
{
avoidEscape: true,
},
],
"require-yield": "error",
semi: ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
anonymous: "always",
asyncArrow: "always",
named: "never",
},
],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": [
"error",
{
nonwords: false,
words: true,
},
],
"spaced-comment": [
"error",
"always",
{
line: {
markers: ["/"],
exceptions: ["-", "+"],
},
block: {
markers: ["!"],
exceptions: ["*"],
balanced: true,
},
},
],
"wrap-regex": "off",
},
};