-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
56 lines (56 loc) · 1.38 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
49
50
51
52
53
54
55
56
{
"extends": ["plugin:@titian-design/recommended"],
"parserOptions": {
"project": "./tsconfig.json"
},
"globals": {
"App": true,
"Page": true,
"Component": true,
"Behavior": true,
"wx": true,
"getCurrentPages": true,
"__TITAN_CHANNEL__": true
},
"rules": {
// 关闭函数返回指定类型
"@typescript-eslint/explicit-module-boundary-types": "off",
// 关闭参数不可重新赋值
"no-param-reassign": "off"
},
"overrides": [
{
"files": [
"packages/compiler/**/*.js",
"packages/compiler/**/*.ts",
"packages/prettier-plugin-wxml/**/*.js",
"packages/prettier-plugin-wxml/**/*.ts",
"packages/titian-cli/**/*.js",
"packages/titian-cli/**/*.ts",
"packages/eslint-plugin/**/*.js",
"packages/eslint-plugin/**/*.ts",
"*.js"
],
"rules": {
"no-console":"off",
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": "off",
"global-require": "off",
"func-names": "off"
}
},
{
"files": ["examples/example-weapp/**/*.js", "examples/example-weapp/**/*.ts"],
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["examples/example-weapp/miniprogram_npm/"]
}
}
},
"rules": {
"no-console": "off"
}
}
]
}