-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
105 lines (104 loc) · 2.6 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
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__BROWSER__": true,
"__MOBILE__": true,
"ga": true,
"webengage": true,
"sails": true,
"Android": true,
"__DEV__": true,
"Moengage": true,
"workbox": true,
"importScripts": true,
"__non_webpack_require__": true,
"google": true,
"PhonePe": true,
"FKExtension": true,
"MyAirtelAppReact": true
},
"rules": {
"prefer-promise-reject-errors": "warn",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off",
"curly": ["error", "all"],
"one-var": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/anchor-has-content": "off",
"import/no-extraneous-dependencies": "off",
"import/first": "off",
"no-return-assign": "warn",
"camelcase": "warn",
"no-use-before-define": [
"warn",
{
"functions": true,
"classes": true
}
],
"react/prefer-stateless-function": "warn",
"import/extensions": [
"error",
"never",
{
"packages": "always",
"svg": "always"
}
],
"import/no-unresolved": "off",
"react/no-did-mount-set-state": "warn",
"eqeqeq": "warn",
"jsx-a11y/label-has-for": "warn",
"no-script-url": "warn",
"jsx-a11y/alt-text": "warn",
"no-nested-ternary": "warn",
"no-prototype-builtins": "warn",
"no-plusplus": "warn",
"react/destructuring-assignment": "warn",
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"react/style-prop-object": "warn",
"no-useless-escape": "warn",
"array-callback-return": "warn",
"consistent-return": "warn",
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/prefer-default-export": "warn",
"default-case": "off",
"react/sort-comp": "off",
"no-underscore-dangle": "warn",
"jsx-a11y/no-static-element-interactions": "off",
"react/no-unescaped-entities": "warn",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/prop-types": [0],
"react/no-string-refs": "warn",
"quotes" : ["error","single"]
},
"env": {
"es6": true,
"browser": true,
"node": true
}
}