forked from torusresearch/CustomAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
105 lines (105 loc) · 2.33 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
99
100
101
102
103
104
105
{
"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", "eslint-plugin-tsdoc"],
"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"]
}
],
"camelcase": 0,
"no-useless-constructor": 0,
"@typescript-eslint/no-useless-constructor": 2,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never"
}
],
"no-restricted-syntax": 0,
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "after-used", "argsIgnorePattern": "_" }],
"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-param-reassign": [
"error",
{
"props": false
}
],
"tsdoc/syntax": "warn",
"prettier/prettier": [
"error",
{
"singleQuote": false,
"printWidth": 150,
"semi": true
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".vue"]
}
}
},
"overrides": [
{
"files": ["examples"],
"parser": "vue-eslint-parser"
}
],
"env": {
"es6": true,
"browser": true,
"node": true,
"serviceworker": true
},
"globals": {
"document": true,
"fetch": true,
"jest": true,
"it": true,
"beforeEach": true,
"afterEach": true,
"describe": true,
"expect": true
}
}