forked from keybase/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
70 lines (70 loc) · 2.31 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
{
"env": {
"es6": true
},
"parser": "babel-eslint",
"extends": ["standard", "standard-react"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__DEV__": false,
"__SCREENSHOT__": false
},
"plugins": [
"flow-vars", "mocha", "filenames", "babel", "import"
],
"settings": {
"import/core-modules": [ electron, react-native ],
"import/resolver": {
webpack: 'webpack.config.base.js'
},
},
"rules": {
"babel/flow-object-type": [1, "comma"],
"babel/func-params-comma-dangle": 0,
"comma-dangle": [2, "always-multiline"],
"filenames/match-regex": [2, "^[0-9a-z-.]+(\\.desktop|\\.native|\\.ios|\\.android)?$"],
"flow-vars/define-flow-type": 1,
"flow-vars/use-flow-type": 1,
"jsx-quotes": [2, "prefer-single"],
"import/named": 2,
"import/export": 2,
"import/no-named-as-default": 2,
"import/no-named-as-default-member": 2,
"import/no-extraneous-dependencies": 2,
"import/no-mutable-exports": 2,
"import/imports-first": 2,
"import/no-duplicates": 2,
"no-duplicate-imports": 0,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-curly-spacing": 2,
"react/jsx-equals-spacing": 2,
"react/jsx-indent": 2,
"react/jsx-key": 2,
"react/jsx-no-bind": [2, {"allowArrowFunctions": true}],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-space-before-closing": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-danger": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/no-is-mounted": 2,
"react/no-unknown-property": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/require-render-return": 2,
"standard/array-bracket-even-spacing": [2, "never"],
"standard/computed-property-even-spacing": [2, "never"],
"standard/object-curly-even-spacing": [2, "never"],
"strict": [2, "global"]
}
}