forked from toolkit-for-ynab/toolkit-for-ynab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
62 lines (62 loc) · 1.48 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
57
58
59
60
61
62
{
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["import", "jest", "react", "prettier"],
"settings": {
"import/resolver": "webpack",
"react": {
"version": "detect"
}
},
"extends": ["airbnb-base/legacy", "plugin:react/recommended", "plugin:prettier/recommended"],
"globals": {
"$": true,
"Chart": true,
"Ember": true,
"Intercom": true,
"chrome": true,
"ensureDefaultsAreSet": true,
"jQuery": true,
"moment": true,
"safari": true,
"windowReload": true,
"ynab": true,
"ynabToolKit": true,
"browser": true,
"Components": true,
"__ynabapp__": true
},
"rules": {
"prettier/prettier": "error",
"class-methods-use-this": "off",
"consistent-return": "off",
"default-case": "off",
"func-names": "off",
"global-require": "off",
"guard-for-in": "off",
"no-alert": "off",
"no-console": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"no-restricted-syntax": "off",
"no-shadow": ["error", { "allow": ["resolve", "reject", "error"] }],
"radix": "off",
"vars-on-top": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "off",
"react/display-name": "off"
}
}