1 | {
|
2 | "parser": "babel-eslint",
|
3 | "extends": [
|
4 | "airbnb",
|
5 | "plugin:jest/recommended"
|
6 | ],
|
7 | "parserOptions": {
|
8 | "ecmaVersion": 6,
|
9 | "sourceType": "module",
|
10 | "ecmaFeatures": {
|
11 | "arrowFunctions": true,
|
12 | "blockBindings": true,
|
13 | "classes": true,
|
14 | "defaultParams": true,
|
15 | "destructuring": true,
|
16 | "forOf": true,
|
17 | "generators": true,
|
18 | "restParams": true,
|
19 | "spread": true,
|
20 | "jsx": false
|
21 | }
|
22 | },
|
23 | "env": {
|
24 | "es6": true,
|
25 | "node": true,
|
26 | "jest/globals": true
|
27 | },
|
28 | "plugins": [
|
29 | "async",
|
30 | "jest",
|
31 | "jest-async"
|
32 | ],
|
33 | "rules": {
|
34 | "consistent-return":"off",
|
35 | "async/missing-await-in-async-fn": 1,
|
36 | "comma-dangle": ["error", {
|
37 | "arrays": "always-multiline",
|
38 | "exports": "always-multiline",
|
39 | "functions": "never",
|
40 | "imports": "always-multiline",
|
41 | "objects": "always-multiline"
|
42 | }],
|
43 | "linebreak-style": [
|
44 | "error",
|
45 | "unix"
|
46 | ],
|
47 | "no-unused-vars": "warn",
|
48 | "indent": [
|
49 | "error",
|
50 | 2,
|
51 | {
|
52 | "SwitchCase": 1
|
53 | }
|
54 | ],
|
55 | "no-underscore-dangle": [
|
56 | 0
|
57 | ],
|
58 | "max-len": [
|
59 | "error",
|
60 | 110
|
61 | ],
|
62 | "jest/no-disabled-tests": "warn",
|
63 | "jest/no-focused-tests": "error",
|
64 | "jest/no-identical-title": "error",
|
65 | "jest/valid-expect": "error",
|
66 | "no-use-before-define":"warn",
|
67 | "no-prototype-builtins":"warn",
|
68 | "no-new":"off"
|
69 | }
|
70 | } |
\ | No newline at end of file |