forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
78 lines (78 loc) · 2.86 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"parser": "babel-eslint",
"plugins": [
"react-native",
"spellcheck"
],
"env": {
"browser": true,
"mocha": true,
"node": true,
"jest": true,
},
"globals": {
},
"extends": "airbnb",
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ios.js", ".android.js"]
}
}
},
"rules": {
"quote-props": 0,
"no-bitwise": 0,
"no-plusplus": 0,
"comma-dangle": 0,
"arrow-parens": 0,
"global-require": 0,
"no-else-return": 0,
"no-mixed-operators": 0,
"no-nested-ternary": 0,
"no-restricted-syntax": 0,
"class-methods-use-this": 0,
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
"new-cap": [2, {
"capIsNew": false
}],
"react/prop-types": 0,
"react/sort-comp": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"react/no-array-index-key": 0,
"react/no-unused-prop-types": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/__tests__/*.js"]}],
# incorrectly defects correct code "react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
# to enable after refactoring "react-native/no-color-literals": 2,
"spellcheck/spell-checker": [1, {
"comments": true,
"strings": true,
"identifiers": true,
"lang": "en_US",
"skipWords": [
"redux", "Zulip", "uri", "timestamp", "api", "nav", "init", "auth", "prev", "utils",
"http", "https", "msg", "msg1", "msg2", "gif", "img", "abc", "def", "jkl", "xyz", "fn",
"params", "backends", "dev", "www", "johndoe", "janedoe", "func", "num", "popup",
"autocomplete", "rgba", "rehydrate", "rehydrated", "async", "whitelist", "str", "del",
"subheader", "concat", "streamlist", "scrollable", "eslint", "lastword", "renderer",
"html", "dom", "tbody", "thead", "th", "td", "href", "pre", "blockquote", "li", "br",
"emojis", "chatboxes", "userlist", "middleware", "trunc", "pushable", "ios", "md",
"autocompleted", "substring", "png", "ds", "videocam", "unmount", "github", "facebook",
"idx", "aaa", "bbb", "ccc", "ddd", "eee", "fff", "abcd", "aaaaaa", "ffffff", "24cac2",
"src", "attribs", "charset", "utf", "urlencoded", "htmlparser", "htmlparser2", "ul", "ol",
"chatbubbles", "nonexisting", "primarytext", "autocomple", "stringify", "backend",
"Menlo", "ok", "py", "todo", "Mc", "lodash", "selectable", "isequal", "lightgray", "tc",
"zulipchat", "prepend", "pierre", "allen", "jan", "donald", "jane", "unicode", "joe",
"dan", "abramov", "lang", "Crashlytics", "bool", "ionicons", "truthy"
],
"skipIfMatch": [
"http://[^s]*",
"^[-\\w]+\/[-\\w\\.]+$" //For MIME Types
]
}]
}
}