-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathexpensify.js
32 lines (32 loc) · 1.4 KB
/
expensify.js
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
module.exports = {
rules: {
'rulesdir/no-negated-variables': 'error',
'rulesdir/no-api-in-views': 'error',
'rulesdir/prefer-actions-set-data': 'error',
'rulesdir/prefer-onyx-connect-in-libs': 'error',
'rulesdir/no-thenable-actions-in-views': 'error',
'rulesdir/prefer-early-return': 'error',
'rulesdir/no-inline-named-export': 'error',
'rulesdir/prefer-underscore-method': 'error',
'rulesdir/no-useless-compose': 'error',
'rulesdir/prefer-import-module-contents': 'error',
'rulesdir/no-multiple-api-calls': 'error',
'rulesdir/no-multiple-onyx-in-file': 'error',
'rulesdir/no-call-actions-from-actions': 'error',
'rulesdir/no-api-side-effects-method': 'error',
'rulesdir/display-name-property': 'error',
'rulesdir/prefer-localization': 'error',
'rulesdir/onyx-props-must-have-default': 'error',
'no-restricted-imports': ['error', {
paths: [{
name: 'react-native',
importNames: ['Button', 'Text', 'TextInput', 'Picker'],
message: 'Please use an Expensify component from src/components/ instead.',
}, {
name: 'react-native',
importNames: ['SafeAreaView'],
message: 'Please use SafeAreaView from react-native-safe-area-context',
}],
}],
},
};