forked from jagenjo/litegraph.js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.js
executable file
·100 lines (99 loc) · 3.17 KB
/
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
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
import stylistic from '@stylistic/eslint-plugin'
import js from "@eslint/js";
export default [
js.configs.recommended,
{
"name": "LiteGraph/standard",
"languageOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": {
"@stylistic":stylistic
},
"rules": {
"no-undef":0, /* had to disable because it doesn't recognize DOM objects */
"no-unused-vars":[1,
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@stylistic/arrow-parens": [1, "always"],
"@stylistic/arrow-spacing": [1, { "before": true, "after": true }],
"@stylistic/brace-style":[1,
"1tbs",
{"allowSingleLine":false}
],
"@stylistic/comma-dangle": [1, "always-multiline"],
"@stylistic/comma-spacing": [0, { "before": false, "after": true }],
"@stylistic/comma-style": [1, "last"],
"@stylistic/computed-property-spacing": [1, "never"],
"@stylistic/dot-location": [0, "object"],
"@stylistic/eol-last": [1, "always"],
"@stylistic/function-call-spacing": [1, "never"],
"@stylistic/function-paren-newline": [1, "multiline"],
"@stylistic/implicit-arrow-linebreak": [1, "beside"],
"@stylistic/indent": [1, 4],
"@stylistic/indent-binary-ops":[0, 4],
"@stylistic/key-spacing":[1, {
"beforeColon":false,
"afterColon":true,
"mode":"strict"
}],
"@stylistic/keyword-spacing":[0, {
"before": true,
"after": true,
"overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false },
"static": { "after": false },
"as": { "after": false }
}
}],
"@stylistic/lines-around-comment":[0,{
"beforeBlockComment": true
}],
"@stylistic/lines-between-class-members":[0,{
"enforce": "always",
"exceptAfterSingleLine": false,
}],
"@stylistic/max-len":[0,{
"code": 120,
"tabWidth": 4,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"@stylistic/max-statements-per-line":[0,{
"max":1,
}],
"@stylistic/new-parens":[0,
"always"
],
"@stylistic/no-extra-semi":[1],
"@stylistic/no-floating-decimal":[2],
"@stylistic/no-multi-spaces":[1],
"@stylistic/no-tabs":[0],
"@stylistic/no-trailing-spaces":[1],
"@stylistic/object-curly-newline":[1,
{"multiline":true}
],
"@stylistic/quotes":[0,
"double",
{"allowTemplateLiterals": true}
],
"@stylistic/semi-style":[1,
"last"
],
"@stylistic/space-before-blocks":[1,
"always"
],
"@stylistic/spaced-comment":[1,
"always"
],
}
}]