-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc
48 lines (45 loc) · 1.81 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"browser": false,
"node": true,
"es6": true
},
"extends": ["eslint:recommended"],
"globals": {
"_": true
},
"rules": {
"semi": ["error", "always"],
"comma-dangle": ["error", "never"],
"no-unused-vars": "off",
"no-console": 0 ,
"no-useless-escape": "off",
"no-useless-catch": "off",
"no-async-promise-executor": "off",
/* from https://github.com/typescript-eslint/typescript-eslint/pull/1318 */
"@typescript-eslint/naming-convention": ["error",
{ "selector": "variableLike", "format": ["camelCase"], "filter": {
"regex": "(_id|_offset|_count|_include)$",
"match": false
} },
{ "selector": "variable", "format": ["camelCase", "UPPER_CASE"], "filter": {
"regex": "(_id|_offset|_count|_include)$",
"match": false
} },
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow" },
{ "selector": "memberLike", "format": ["camelCase"] },
{ "selector": "memberLike", "modifiers": ["private"], "format": ["camelCase"], "leadingUnderscore": "require" },
{ "selector": "typeLike", "format": ["PascalCase"] },
{ "selector": "typeParameter", "format": ["PascalCase"], "prefix": ["T"] },
{ "selector": "interface", "format": ["PascalCase"], "custom": { "regex": "^I[A-Z]", "match": false } },
{ "selector": "objectLiteralProperty", "format": null },
{ "selector": "objectLiteralMethod", "format": null }
]
},
"ignorePatterns": ["public/**", "temp/**", "docs/**", "models/formidable/**"]
}