-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.eslintrc
More file actions
94 lines (91 loc) · 3.45 KB
/
Copy path.eslintrc
File metadata and controls
94 lines (91 loc) · 3.45 KB
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
/**
* Copyright 2017 PhenixP2P Inc. Confidential and Proprietary. All Rights Reserved.
*/
{
"env": {
"browser": true,
"amd": true,
"mocha": true
},
"globals": {
"sinon": true,
"expect": true,
"Uint8Array": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": 3,
"sourceType": "module"
},
"plugins": [
"requirejs",
"mocha"
],
"rules" : {
// Possible Errors - http://eslint.org/docs/rules/#possible-errors
"no-console": 0,
// Best Practices - http://eslint.org/docs/rules/#best-practices
"curly": 2,
"default-case": 2,
"eqeqeq": 2,
"no-alert": 2,
"no-else-return": 2,
"no-multi-spaces": 2,
"yoda": 2,
// Stylistic Issues - http://eslint.org/docs/rules/#stylistic-issues
"array-bracket-newline": [0, { "": null }],
"array-bracket-spacing": 0,
"block-spacing": 2,
"brace-style": 2,
"camelcase": 2,
"capitalized-comments": [2, "always", { "ignoreConsecutiveComments": true, "ignoreInlineComments": true }],
"comma-dangle": [2, {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"eol-last": [2, "never"],
"func-call-spacing": [2, "never"],
"key-spacing": [2, {"beforeColon": false}],
"new-parens": 2,
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-trailing-spaces": 2,
"object-curly-newline": [2, { "multiline": true }],
"object-curly-spacing": [2, "never"],
"object-property-newline": 2,
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [2,
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "if" },
{ "blankLine": "always", "prev": "*", "next": "throw" },
{ "blankLine": "always", "prev": "function", "next": ["function", "block-like", "multiline-block-like"] },
{ "blankLine": "always", "prev": "class", "next": "*" },
{ "blankLine": "never", "prev": ["const", "let"], "next": ["const", "let"] },
{ "blankLine": "never", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "block", "next": "*" },
{ "blankLine": "always", "prev": "multiline-block-like", "next": "*" },
{ "blankLine": "always", "prev": "expression", "next": "*" },
{ "blankLine": "any", "prev": "expression", "next": "expression" }
],
"semi": [2, "always"],
"spaced-comment": [2, "always"],
// Rules specific to this module
"indent": [2, 4],
"mocha/no-exclusive-tests": 2,
"mocha/handle-done-callback": 2,
"mocha/no-global-tests": 2,
"mocha/no-identical-title": 2,
"mocha/no-nested-tests": 2,
"requirejs/no-invalid-define": 2,
"requirejs/no-multiple-define": 2,
"requirejs/no-named-define": 0,
"requirejs/no-commonjs-wrapper": 2,
"requirejs/no-object-define": 1,
"requirejs/one-dependency-per-line": [2, { "paths": "always", "names": "never" }]
}
}