-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
91 lines (91 loc) · 2.13 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
{
"extends": [
"airbnb-typescript/base",
"problems",
"plugin:@typescript-eslint/recommended",
"standard",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:promise/recommended",
"plugin:mocha/recommended",
"prettier"
],
"plugins": ["prettier", "promise", "import", "simple-import-sort", "mocha", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 11,
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "typeLike",
"format": ["camelCase", "UPPER_CASE", "PascalCase"]
}
],
"no-console": 2,
"no-bitwise": [2, { "allow": ["~"] }],
"camelcase": 0,
"no-useless-constructor": 0,
"@typescript-eslint/no-useless-constructor": 2,
"no-dupe-class-members": 0,
"@typescript-eslint/no-dupe-class-members": 2,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never"
}
],
"no-restricted-syntax": 0,
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"operator-linebreak": 0,
"object-curly-newline": 0,
"no-underscore-dangle": 0,
"max-len": [
2,
{
"code": 150
}
],
"import/prefer-default-export": 0,
"no-nested-ternary": 0,
"no-confusing-arrow": 0,
"linebreak-style": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "after-used", "argsIgnorePattern": "_" }],
"no-param-reassign": [
"error",
{
"props": false
}
],
"prettier/prettier": [
"error",
{
"singleQuote": false,
"printWidth": 150,
"semi": true
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".vue"]
}
}
},
"env": {
"es2020": true,
"browser": true,
"node": true
}
}