-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.json
72 lines (72 loc) · 2.28 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"plugin:sonarjs/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier",
"sonarjs",
"@microsoft/power-apps"
],
"ignorePatterns": [
"**/generated/*.ts"
],
"rules": {
"eqeqeq": [
2,
"smart"
],
"prettier/prettier": "error",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"@microsoft/power-apps/avoid-2011-api": "error",
"@microsoft/power-apps/avoid-browser-specific-api": "error",
"@microsoft/power-apps/avoid-crm2011-service-odata": "warn",
"@microsoft/power-apps/avoid-crm2011-service-soap": "warn",
"@microsoft/power-apps/avoid-dom-form-event": "warn",
"@microsoft/power-apps/avoid-dom-form": "warn",
"@microsoft/power-apps/avoid-isactivitytype": "warn",
"@microsoft/power-apps/avoid-modals": "warn",
"@microsoft/power-apps/avoid-unpub-api": "warn",
"@microsoft/power-apps/avoid-window-top": "warn",
"@microsoft/power-apps/do-not-make-parent-assumption": "warn",
"@microsoft/power-apps/use-async": "error",
"@microsoft/power-apps/use-cached-webresource": "warn",
"@microsoft/power-apps/use-client-context": "warn",
"@microsoft/power-apps/use-global-context": "error",
"@microsoft/power-apps/use-grid-api": "warn",
"@microsoft/power-apps/use-navigation-api": "warn",
"@microsoft/power-apps/use-offline": "warn",
"@microsoft/power-apps/use-org-setting": "error",
"@microsoft/power-apps/use-relative-uri": "warn",
"@microsoft/power-apps/use-utility-dialogs": "warn"
}
}