-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.59 KB
/
.eslintrc.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
49
50
51
52
53
54
55
56
57
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"@react-native-community",
"airbnb-typescript",
"prettier"
],
plugins: [
"@typescript-eslint",
"react",
"react-native",
"react-hooks",
"import"
],
parserOptions: {
project: "./tsconfig.json",
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true
}
},
env: {
jest: true,
"react-native/react-native": true
},
rules: {
"import/extensions": "warn",
"import/no-extraneous-dependencies": ["warn", { "devDependencies": false, "optionalDependencies": false, "peerDependencies": false }],
"import/prefer-default-export": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "warn",
"react/prop-types": "off",
"react/destructuring-assignment": "warn",
"react-hooks/exhaustive-deps": "warn",
"react-native/no-unused-styles": "warn",
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": "off",
"react-native/no-color-literals": "off",
"react-native/no-raw-text": 2,
"react-native/no-single-element-style-arrays": 2,
"@typescript-eslint/no-use-before-define": ["warn", { "functions": false, "classes": false, "variables": false }],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/naming-convention": ["warn", { selector: 'typeLike', format: ['PascalCase'] }],
"arrow-body-style": "off",
"consistent-return": "warn",
"comma-dangle": "off",
"object-shorthand": "off",
"padded-blocks": "off",
"no-bitwise": "off",
"no-console": "off",
"no-use-before-define": "off"
},
globals: {
fetch: false
}
}