forked from Gimly-Blockchain/eosio-did-resolver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (46 loc) · 1.64 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
{
"root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended","prettier"],
"plugins": ["@typescript-eslint","prettier"],
"rules": {
"eqeqeq": "error",
"no-console": "warn",
"indent": ["error", 4, { "SwitchCase": 1 }],
"camelcase": "error",
"prettier/prettier": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "block", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": ["block","block-like"] },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
{ "blankLine": "always", "prev": ["export", "import"], "next": "*"},
{ "blankLine": "any", "prev": "import", "next": "import"},
{ "blankLine": "any", "prev": "export", "next": "export"}
]
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"ignorePatterns": [
"node_modules",
"build",
"dist",
"public"
]
}