forked from coopcycle/coopcycle-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
26 lines (26 loc) · 856 Bytes
/
.eslintrc.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
module.exports = {
root: true,
extends: '@react-native-community',
rules: {
semi: 0,
'space-unary-ops': 0,
// Disable Prettier, because it conflicts with ESLint's "object-curly-spacing"
// https://github.com/prettier/prettier/issues/1871
// https://itnext.io/how-to-replace-prettier-by-eslint-rules-21574359e041
'prettier/prettier': 'off',
// Allow inline styles (should be removed at some point)
'react-native/no-inline-styles': 'off',
'sort-imports': [ 'warn', {
'ignoreCase': false,
'ignoreDeclarationSort': true,
'ignoreMemberSort': false,
'allowSeparatedGroups': true,
}],
'object-curly-spacing': [ 'warn', 'always' ],
'array-bracket-spacing': [ 'warn', 'always', {
'singleValue': false,
'objectsInArrays': false,
'arraysInArrays': false,
}],
},
};