-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
68 lines (68 loc) · 2.17 KB
/
.eslintrc
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
{
// "$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"browser": true,
"jquery": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"jquery",
"@typhonjs-fvtt/eslint-config-foundry.js/0.8.0",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
// "prettier/prettier": ["error"],
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line"],
"dot-location": ["error", "property"],
"eqeqeq": 0, // ["warn", "always", { "null": "ignore" }],
"handle-callback-err": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 120, "ignoreUrls": true }],
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"no-console": "off",
"no-empty-function": "warn",
"no-floating-decimal": "error",
"no-inline-comments": "off",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-prototype-builtins": "off",
"no-shadow": ["error", { "builtinGlobals": true, "hoist": "all", "allow": ["event"] }],
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"no-unreachable": "warn",
"no-unused-labels": 0,
"no-unused-vars": "warn",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "warn",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
}
}