forked from facebookarchive/react-360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (38 loc) · 871 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
extends: [
'fbjs',
'prettier'
],
plugins: [
"prettier",
],
rules: {
'accessor-pairs': 'off',
'consistent-return': 'off',
'eqeqeq': 'error',
'key-spacing': ['warn', {beforeColon: false, afterColon: true}],
'max-len': ['warn', {code: 120, ignoreComments: true}],
'no-bitwise': 'off',
'no-tabs': 'warn',
'no-var': 'warn',
'object-curly-spacing': ['warn', 'never'],
'prefer-const': ['warn', {destructuring: 'all'}],
'space-in-parens': 'warn',
// Prettier
"prettier/prettier": [
"error",
{
"bracketSpacing": false,
"jsxBracketSameLine": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
}
]
},
globals: {
'__DEV__': true,
'__dirname': false,
'__fbBatchedBridgeConfig': false,
}
}