1 | {
|
2 | "parserOptions": {
|
3 | "ecmaVersion": 6
|
4 | },
|
5 | "env": {
|
6 | "node": true,
|
7 | "es6": true,
|
8 | "mocha": true
|
9 | },
|
10 | "extends": [
|
11 | "standard"
|
12 | ],
|
13 | "plugins": [
|
14 | "chai-friendly"
|
15 | ],
|
16 | "rules": {
|
17 | "indent": ["error", "tab"],
|
18 | "no-tabs": 0,
|
19 | "brace-style": ["error", "stroustrup"],
|
20 | "arrow-parens": ["error", "always"],
|
21 | "no-control-regex": 0,
|
22 | "no-useless-escape": 0,
|
23 | "array-bracket-spacing": ["error", "never"],
|
24 | "object-curly-spacing": ["error", "always"],
|
25 | "lines-between-class-members": ["error", "always"],
|
26 | "padding-line-between-statements": [
|
27 | "error",
|
28 | { "blankLine": "always", "prev": "*", "next": "multiline-block-like" },
|
29 | { "blankLine": "always", "prev": "multiline-block-like", "next": "*" },
|
30 | { "blankLine": "always", "prev": "multiline-expression", "next": "*" },
|
31 | { "blankLine": "always", "prev": "*", "next": "multiline-expression" },
|
32 | { "blankLine": "always", "prev": "*", "next": "return" }
|
33 | ],
|
34 | "space-before-function-paren": ["error", {
|
35 | "anonymous": "always",
|
36 | "named": "always",
|
37 | "asyncArrow": "always"
|
38 | }],
|
39 | "standard/no-callback-literal": 1,
|
40 | "no-unused-expressions": 0,
|
41 | "chai-friendly/no-unused-expressions": 2
|
42 | }
|
43 | } |
\ | No newline at end of file |