forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
130 lines (130 loc) · 5.41 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"parser": "babel-eslint",
"plugins": [
"react-native",
"prettier",
"jest",
"flowtype",
"spellcheck"
],
"env": {
"browser": true,
"mocha": true,
"node": true,
"jest": true,
},
"globals": {
},
"extends": "airbnb",
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ios.js", ".android.js"]
}
}
},
"rules": {
"prettier/prettier": [0, {
"printWidth": 100,
"parser": "flow",
"singleQuote": true,
"trailingComma": "all",
}],
"curly": [2, "multi-line"],
"comma-dangle": [2, "always-multiline"],
"quote-props": 0,
"indent": 0,
"camelcase": 0,
"arrow-parens": 0,
"no-confusing-arrow": 0,
"no-mixed-operators": 0,
"function-paren-newline": 0,
"object-curly-newline": 0,
"no-bitwise": 0,
"no-continue": 0,
"no-plusplus": 0,
"no-alert": 0,
"no-param-reassign": 0,
"no-nested-ternary": 0,
"no-restricted-syntax": 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/no-unused-prop-types": 0,
"react/no-array-index-key": 0,
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/jsx-wrap-multilines": 0,
"react/jsx-closing-bracket-location": 0,
"react/default-props-match-prop-types": 0,
"react/jsx-indent-props": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": [2, { caseSensitive: false }],
"import/no-extraneous-dependencies": [2, {"devDependencies": ["**/__tests__/*.js"]}],
"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,
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 2,
"jest/no-identical-title": 2,
"flowtype/boolean-style": [2, "boolean"],
"flowtype/define-flow-type": 1,
"flowtype/delimiter-dangle": 0,
"flowtype/generic-spacing": [2, "never"],
"flowtype/no-primitive-constructor-types": 2,
"flowtype/no-types-missing-file-annotation": 2,
################# "flowtype/no-weak-types": 2,
"flowtype/object-type-delimiter": [2, "comma"],
# "flowtype/require-parameter-type": 2,
# "flowtype/require-return-type": [2, "always", { "annotateUndefined": "never" }],
"flowtype/require-valid-file-annotation": 2,
"flowtype/semi": [2, "always"],
"flowtype/space-after-type-colon": [2, "always"],
"flowtype/space-before-generic-bracket": [2,"never"],
"flowtype/space-before-type-colon": [2, "never"],
# "flowtype/type-id-match": [2, "^([A-Z][a-z0-9]+)+Type$" ],
"flowtype/union-intersection-spacing": [2, "always"],
"flowtype/use-flow-type": 1,
"flowtype/valid-syntax": 1,
"spellcheck/spell-checker": [1, {
"comments": true,
"strings": true,
"identifiers": true,
"lang": "en_US",
"skipWords": [
"redux", "Zulip", "uri", "timestamp", "api", "nav", "init", "auth", "prev", "utils", "io",
"http", "https", "msg", "msg1", "msg2", "gif", "img", "abc", "def", "jkl", "xyz", "fn",
"params", "backends", "dev", "www", "johndoe", "janedoe", "func", "num", "popup", "codehilite",
"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", "caughtup",
"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", "Zoe",
"Menlo", "ok", "py", "todo", "Mc", "lodash", "selectable", "isequal", "lightgray", "tc",
"zulipchat", "prepend", "pierre", "allen", "jan", "donald", "jane", "unicode", "joe", "unescape",
"dan", "abramov", "lang", "bool", "ionicons", "truthy", "bezier", "decrement", "js", "oauth",
"jsonp", "otp", "Otp", "ascii", "Ascii", "substr", "Util", "actionsheet", "unmute", "mfrac",
"otp", "Otp", "ascii", "Ascii", "substr", "Util", "actionsheet", "jsonp", "actionsheet", "ionicons",
"denmark", "copenhagen", "unregister", "gcm", "unstarMessage", "Unstar", "wildcard_mentioned",
"lightbox", "resize", "remobile", "multiline", "uniqby", "zoe", "localizable", "appid", "apns",
"Entypo", "msup", "mrow", "webview", "js", "timerow", "reselect", "addons", "cancelable",
"gravatar_hash", "pms", "msgs", "collapsable", "const", "wildcard", "reactotron", "camelcase",
"hydrator", "perf", "stacktrace", "Dir", "fs", "avoider", "octicons", "centerer", "ldap",
"gravatar", "identicon", "blueimp", "filename", "wildcards", "jpeg", "jpg", "tif", "mov",
"notif", "diag", "bmp", "viewport", "scalable", "polyfill", "rect", "touchstart", "touchend", "touchmove"
],
"skipIfMatch": [
"http://[^s]*",
"^[-\\w]+\/[-\\w\\.]+$" //For MIME Types
]
}]
}
}