-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
58 lines (58 loc) · 1.23 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"extends": [
"airbnb",
"prettier",
"prettier/flowtype",
"prettier/react",
"plugin:react-native/all"
],
"parser": "babel-eslint",
"env": {
"react-native/react-native": true
},
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "react-native", "jsx-a11y", "import"],
"globals": {
"__DEV__": true
},
"rules": {
"global-require": "off",
"react/no-typos": "off", // until https://github.com/yannickcr/eslint-plugin-react/issues/1389 fixed
"react/jsx-filename-extension": "off",
"jsx-a11y/accessible-emoji": "off",
"comma-dangle": ["error", "always-multiline"]
},
"overrides": [
{
"files": ["**/__tests__/*.{js,jsx}", "*.test.js"],
"env": {
"jest": true
}
},
{
"files": ["**/*-stories.js"],
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false
}
]
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".android.js", ".ios.js"]
}
}
}
}