-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.eslintrc.json
98 lines (96 loc) · 3.14 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
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
95
96
97
98
{
"extends": [
"airbnb-base",
"airbnb-typescript/base"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "tsconfig.eslint.json"
},
"settings": {
"import/resolver": {
"typescript": { "alwaysTryTypes": true }
}
},
"globals": {
"window": "readonly",
"btoa": "readonly",
"atob": "readonly",
"globalThis": "readonly"
},
"env": {
"es6": true,
"mocha": true,
"browser": true
},
"plugins": [
"@typescript-eslint",
"import",
"chai-friendly"
],
"rules": {
"prefer-spread": "off",
"no-restricted-syntax": "off",
"arrow-parens": ["error", "always"],
"indent": "off",
"comma-dangle": ["error", "never"],
"consistent-return": "off",
"object-curly-newline": "off",
"prefer-template": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-bitwise": "off",
"no-await-in-loop": "off",
"no-sequences": "warn",
"no-param-reassign": "warn",
"no-return-assign": "warn",
"no-else-return": ["error", { "allowElseIf": true }],
"no-shadow": "off",
"no-unused-expressions": "off",
"no-undef": "error",
"@typescript-eslint/no-unused-expressions": "off",
"chai-friendly/no-unused-expressions": [ "error", { "allowShortCircuit": true } ],
"arrow-body-style": "off",
"space-before-function-paren": "off",
"operator-linebreak": "off",
"implicit-arrow-linebreak": "off",
"no-underscore-dangle": "off",
"import/no-unresolved": ["error", {
"ignore": ["^react$", "ttag", ".data"]
}],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unassigned-import": "error",
"import/named": "error",
"import/extensions": "error",
"max-len": ["error", {
"ignoreComments": true,
"code": 120,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-restricted-imports": ["error", {
"name": "openpgp",
"message": "Please import from 'lib/openpgp' instead."
}],
"no-multiple-empty-lines": ["error"],
"no-trailing-spaces": ["error"],
"eol-last": ["error"],
"camelcase": ["error", {"allow": ["openpgp_*"]}],
"padded-blocks": "off",
"@typescript-eslint/naming-convention": ["error", {
"selector": "typeLike",
"format": ["PascalCase", "UPPER_CASE"]
}],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/comma-dangle": "off"
}
}