forked from Rantanen/eslint-plugin-xss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
91 lines (85 loc) · 3.02 KB
/
.eslintrc.json
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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": { }
},
"env": {
"node": true,
"browser": true,
"es6": true
},
"rules": {
"no-console": 0,
"callback-return": [ "error", [ "done", "cb", "next" ] ],
"no-unused-vars": [ "error", { "vars": "all", "args": "none" } ],
"comma-dangle": 0,
"strict": [ "error", "global" ],
"eqeqeq": 2,
"array-bracket-spacing": [ "error", "always" ],
"block-spacing": [ "error", "always" ],
"brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
"camelcase": 2,
"comma-spacing": [ "error", { "before": false, "after": true } ],
"comma-style": 2,
"computed-property-spacing": [ "error", "always" ],
"consistent-this": [ "error", "self" ],
"func-style": [ "error", "expression" ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
"keyword-spacing": [ "error", {
"after": false,
"overrides": {
"from": { "after": true },
"return": { "after": true },
"import": { "after": true },
"else": { "after": true },
"try": { "after": true },
"do": { "after": true }
}
} ],
"lines-around-comment": [ "error", {
"beforeLineComment": true,
"beforeBlockComment": true,
"allowArrayStart": true,
"allowObjectStart": true
} ],
"new-cap": 2,
"no-lonely-if": 1,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [ "error", { "max": 2 }],
"no-trailing-spaces": 2,
"no-unneeded-ternary": 1,
"no-whitespace-before-property": 2,
"object-curly-spacing": [ "error", "always" ],
"semi": 2,
"semi-spacing": [ "error", { "before": false, "after": true } ],
"space-before-blocks": [ "error", "always" ],
"space-before-function-paren": [ "error", "never" ],
"space-in-parens": [ "error", "always" ],
"space-infix-ops": [ "error", { "int32Hint": false } ],
"spaced-comment": [ "error", "always" ],
"valid-jsdoc": [ "error", {
"prefer": {
"return": "returns"
},
"requireReturn": false,
"matchDescription": "^[A-Z](\n|.)*[.](\n|$)",
"preferType": {
"String": "string",
"Number": "number",
"object": "Object"
}
} ],
"space-unary-ops": [ "error", {
"words": true,
"nonwords": false
// Company style requires "!" to be followed by space.
// "overrides": { "!": true }
} ],
// Options incompatible with company style.
"indent": [ "error", 4 ],
"max-len": [ "error", 90 ],
"quotes": [ "error", "single" ]
}
}