-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.json
142 lines (142 loc) · 4.5 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"extends": ["prettier", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["eslint-plugin-import", "simple-import-sort", "sort-class-members"],
"rules": {
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": true,
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": false,
"minimumDescriptionLength": 5
}
],
"@typescript-eslint/no-unnecessary-condition": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
},
{
"blankLine": "always",
"prev": "multiline-expression",
"next": "*"
},
{
"blankLine": "always",
"prev": "multiline-const",
"next": "*"
},
{
"blankLine": "always",
"prev": "multiline-let",
"next": "*"
}
],
"spaced-comment": "error",
"no-buffer-constructor": "error",
"no-eval": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"eqeqeq": "error",
"no-unsafe-finally": "error",
"guard-for-in": "error",
"curly": ["warn", "multi-or-nest", "consistent"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": true
}
],
"one-var-declaration-per-line": "error",
"import/order": "off",
"sort-imports": "off",
"simple-import-sort/sort": "error",
"quote-props": "off",
"no-redeclare": "error",
"no-underscore-dangle": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"jsdoc/require-param-type": 0,
"jsdoc/require-returns-type": 0,
"jsdoc/check-values": 0,
"sort-class-members/sort-class-members": [
2,
{
"order": [
"[static-properties]",
"[static-methods]",
"[properties]",
"[getters]",
"[setters]",
"[conventional-private-properties]",
"constructor",
"[vue-lifecycle-hooks]",
"[methods]",
"[conventional-private-methods]"
],
"groups": {
"vue-lifecycle-hooks": [
{
"name": "/created|beforeCreate|mounted|beforeMount|destroyed|beforeDestroy|beforeUpdate|updated/",
"type": "method"
}
]
}
}
],
"import/no-internal-modules": [
"error",
{
"allow": [
"lodash/*",
"nativescript-ui-dataform/*",
"nativescript-ui-listview/*",
"nativescript-plugin-firebase/*",
"pdfmake/**/*",
"nativescript-ui-autocomplete/*",
"core-js/*",
"@amcharts/amcharts4/*",
"@amcharts/amcharts4/**/*",
"@nativescript/core/*",
"@nativescript/core/**/*",
"nativescript-webview-interface/**/*",
"nativescript-material-*/*"
]
}
]
}
}