forked from aruzikulov/platform-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native.js
48 lines (48 loc) · 1 KB
/
react-native.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
42
43
44
45
46
47
48
module.exports = {
extends: [
"./react.js",
"plugin:import/react-native",
"plugin:react-native-a11y/all",
],
plugins: ["react-native"],
settings: {
"import/resolver": {
node: {
extensions: [
".js",
".jsx",
".ts",
".tsx",
".d.ts",
".android.js",
".android.jsx",
".android.ts",
".android.tsx",
".ios.js",
".ios.jsx",
".ios.ts",
".ios.tsx",
".web.js",
".web.jsx",
".web.ts",
".web.tsx",
],
},
},
},
rules: {
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "error",
"react-native/no-inline-styles": "error",
"react-native/no-color-literals": "error",
},
overrides: [
{
files: ["**/*.stories.*"],
rules: {
"react-native/no-inline-styles": "off",
"react-native/no-color-literals": "off",
},
},
],
};