-
Notifications
You must be signed in to change notification settings - Fork 67
/
.eslintrc
113 lines (113 loc) · 2.97 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"extends": ["plugin:instawork/recommended"],
"plugins": ["instawork"],
"rules": {
"import/no-extraneous-dependencies": [
"warn",
{
"devDependencies": [
"**/*.stories.js",
"**/stories/*.js",
"**/*.test.js",
"**/stories.js",
"**/scripts/*",
"**/scripts/*/*",
"**/scripts/*/*/*",
"**/storybook/*",
"**/test",
"**/test/*",
"**/test/**/*"
]
}
],
"import/no-internal-modules": [
"warn",
{
"allow": [
"hyperview/**",
"react-native/Libraries/StyleSheet/StyleSheet",
"react-native/Libraries/StyleSheet/StyleSheetTypes",
"react-native/Libraries/StyleSheet/normalizeColor"
]
}
],
"instawork/deprecate-components": "error",
"instawork/deprecate-stateless": "error",
"instawork/error-object": "off",
"instawork/import-modules": "error",
"instawork/import-services": "error",
"instawork/pure-components": "error",
"instawork/stories-components": "error",
"instawork/stories-navbars": "error",
"instawork/stories-screens": "error",
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"error",
{
"blankLine": "never",
"prev": "import",
"next": "import"
}
],
"react/destructuring-assignment": "error",
"react/jsx-sort-props": "error",
"sort-keys": "error"
},
"overrides": [
{
"files": ["**/types.js"],
"rules": {
"no-use-before-define": "off",
"max-len": "off"
}
},
{
"files": ["**/*.ts", "**/*.tsx"],
"extends": ["plugin:instawork/recommended-typescript"],
"rules": {
"arrow-body-style": "off",
"arrow-parens": "off",
"flowtype/no-types-missing-file-annotation": "off",
"func-call-spacing": "off",
"function-paren-newline": "off",
"implicit-arrow-linebreak": "off",
"import/no-extraneous-dependencies": [
"warn",
{
"devDependencies": [
"**/scripts/*",
"**/scripts/*/*",
"**/scripts/*/*/*",
"**/storybook/*",
"**/test",
"**/test/*",
"**/test/**/*"
]
}
],
"indent": "off",
"instawork/error-object": "off",
"instawork/flow-annotate": "off",
"no-spaced-func": "off",
"no-undef": "off",
"no-use-before-define": "off",
"object-curly-newline": "off",
"operator-linebreak": "off",
"react/jsx-curly-newline": "off",
"react/jsx-wrap-multilines": "off"
}
},
{
"files": ["src/core/components/**/*"],
"rules": {
"instawork/stories-components": "warn"
}
},
{
"files": ["demo/**/*"],
"rules": {
"instawork/stories-components": "off"
}
}
]
}