This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
forked from meteor-factory/react-native-tinder-swipe-cards
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
79 lines (79 loc) · 2.09 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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["plugin:flowtype/recommended"],
"plugins": ["react", "flowtype"],
"env": {
"browser": true
},
"rules": {
"arrow-parens": ["error", "always"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"eqeqeq": "warn",
"jsx-quotes": ["error", "prefer-single"],
"quotes": [1, "single"],
"no-console": 2,
"no-debugger": "error",
"no-implicit-globals": "error",
"no-labels": "error",
"no-magic-numbers": "warn",
"no-template-curly-in-string": 1,
"no-undef-init": "error",
"no-undefined": "warn",
"no-unused-expressions": "error",
"no-unreachable": "error",
"no-useless-escape": "error",
"no-useless-constructor": "error",
"no-use-before-define": "warn",
"no-useless-return": "error",
"prefer-arrow-callback": "warn",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-template": "error",
"sort-keys": "warn",
"eol-last": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"array-callback-return": 1,
"no-unused-vars": [
2,
{
"argsIgnorePattern": "_"
}
],
"react/jsx-closing-bracket-location": 2,
"react/display-name": 1,
"react/forbid-prop-types": 1,
"react/jsx-boolean-value": 2,
"react/jsx-curly-spacing": 1,
"react/jsx-indent-props": [2, 2],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/jsx-key": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1
}
}