-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
41 lines (41 loc) · 1018 Bytes
/
.eslintrc.json
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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "react-native"],
"env": {
"browser": true,
"es6": true
},
"extends": ["eslint:recommended", "google"],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "error",
"react-native/no-inline-styles": "warn",
"indent": ["error", 2],
"linebreak-style": "off",
"require-jsdoc": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx"]
}
],
"react/forbid-prop-types": ["off"],
"react/require-default-props": ["off"],
"global-require": ["off"],
"object-curly-spacing": ["error", "always"],
"no-invalid-this": "warn",
"no-console": "warn",
"no-undef": "warn",
"quote-props": "off",
"new-cap": "warn",
"max-len": "warn"
}
}