forked from PolymeshAssociation/polymesh-rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (52 loc) · 1.56 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": "off",
"quotes": ["error", "single", { "avoidEscape": true }],
"simple-import-sort/imports": "error",
"sort-imports": "off",
"import/order": "off",
"no-dupe-class-members": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"arrow-parens": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [".*"],
"message": "Please use absolute imports instead"
}
],
"paths": [
{
"name": "@polymeshassociation/polymesh-sdk/internal",
"message": "polymesh-sdk/internal should not be used"
},
{
"name": "@polymeshassociation/polymesh-sdk/polkadot",
"message": "polymesh-sdk/polkadot should not be used"
}
]
}
]
},
"plugins": ["@typescript-eslint", "simple-import-sort", "node", "import", "prettier", "promise"],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": ["standard", "semistandard", "plugin:@typescript-eslint/recommended", "prettier"],
"ignorePatterns": ["src/polkadot/", "docs/*"]
}