forked from XRPL-Labs/Xaman-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
149 lines (148 loc) · 5.66 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-native",
"prettier",
"jest",
"spellcheck"
],
"extends": [
"airbnb",
"plugin:import/typescript"
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"browser": true,
"mocha": true,
"node": true,
"jest": true
},
"globals": {
"__DEV__": false
},
"settings": {
"import/resolver": {
"typescript": {}
},
"import/ignore": [
"node_modules",
".(json)$"
]
},
"ignorePatterns": [
"__generate.js"
],
"rules": {
"prettier/prettier": [0, {
"printWidth": 120,
"tabWidth": 4,
"parser": "flow",
"singleQuote": true,
"trailingComma": "all"
}],
"no-useless-constructor": 0,
"arrow-body-style": 0,
"max-len": [2, {"code": 120, "tabWidth": 4, "ignoreUrls": true, "ignoreTemplateLiterals": true }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"curly": [2, "multi-line"],
"comma-dangle": [2, "always-multiline"],
"class-methods-use-this": ["error", { "exceptMethods": ["startApp", "componentDidMount", "componentWillUnmount", "render"] }],
"global-require": 0,
"quote-props": 0,
"lines-between-class-members": "off",
"indent": "off",
"react/jsx-indent": [2, 4],
"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-await-in-loop": 0,
"no-param-reassign": 0,
"no-nested-ternary": 0,
"no-restricted-syntax": 0,
"no-unused-vars": "off",
"no-unused-expressions": ["error" , {"allowShortCircuit": true} ],
"@typescript-eslint/no-unused-vars": "error",
"new-cap": [2, {
"capIsNew": false
}],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-undef": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"operator-linebreak": [
"error",
"after",
{
"overrides": {
":": "before",
"?": "before"
}
}
],
"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,
"react/jsx-one-expression-per-line": 0,
"react/static-property-placement": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": "error",
"import/extensions": ["error", "never", { "json": "always" }],
"import/no-extraneous-dependencies": 0,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 2,
"jest/no-identical-title": 2,
"spellcheck/spell-checker": [1, {
"comments": true,
"strings": true,
"identifiers": true,
"lang": "en_US",
"skipWords": [
"eslint", "redux", "middleware", "destructuring", "async", "lodash", "libs", "Backend", "istanbul", "rehydrate", "linebreak",
"decrypt", "Keychain", "passphrase", "nonexist", "js", "Crashlytics", "Analytics", "init", "Onboarding", "middlewares",
"firebase", "ios", "const", "renderer", "dev", "fallbacks", "Utils", "sha512", "sha256", "sha1", "fn", "ja", "cn", "auth",
"cb", "loggin", "api", "src", "biometric", "Biometry", "rtl", "grey", "Unmount", "passcode", "Selectable", "png", "xrpl", "accountlib",
"Prev", "orm", "reselect", "keypair", "readonly", "uuid", "uuidv4", "desc", "sml", "wss", "altnet", "rippletest", "ws", "args",
"tx", "namespace", "bignumber", "Xrp", "counterparty", "str", "params", "req", "eg", "param", "timestamp", "idempotency", "Num", "testnet",
"utf", "xumm", "netinfo", "uri", "Interactable", "bool", "schemas", "Ious", "upsert", "Trustline", "rpepoch", "unix", "iso8601", "ecrypt",
"privatekey", "multisign", "tes", "Reactotron", "resize", "Interitem", "multisigned", "txid", "rgba", "jsx", "uint8", "img", "btn", "pbold",
"Devnet", "Mainnet", "Swiper", "calc", "abcdefgh", "cancelable", "uniqBy", "memoize", "Memoized", "html", "len", "fg", "bg", "ctx", "checksum",
"ecc", "uniq", "Truthy", "Responder", "ter", "ko", "zh", "mailto", "tabbar", "https", "gcm", "tf", "xlight", "aps", "tec", "barcodes", "Barcode",
"txblob", "tos", "gif", "ic", "asf", "ok", "Sig", "haptic", "Signable", "Unauthorize", "Preauth", "payid", "Biometrics", "Towo", "tz", "xrpscan",
"xrplorer", "bithomp", "xpring", "xrplns", "Pincode", "Txn", "iap", "Realtime", "datastore", "decrypted", "Tangem", "Sdk", "Secp256k1", "blockchain",
"Escrowed", "xapp", "Veriff", "Codec", "xapps", "Pressable", "nft", "ott", "Luminance", "HexToRgbA"
],
"skipIfMatch": [
"http://[^s]*",
"^[-\\w]+\/[-\\w\\.]+$"
]
}]
}
}