-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
43 lines (43 loc) · 1.04 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
{
"rules": {
"eqeqeq": ["error", "smart"],
"no-console": "warn",
"no-empty": "warn",
"no-restricted-imports": ["error",{
"paths":[{
"name": "react-native-gesture-handler",
"message": "Unless you ACTUALLY need this, please use react-native instead."
}]
}],
"no-underscore-dangle": "warn",
"no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_" }],
"no-var": 2,
"object-shorthand": ["error", "always"],
"prettier/prettier": "error"
},
"ignorePatterns": ["dist/"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"requireConfigFile": false,
"babelOptions": {
"babelrc": false,
"configFile": false,
// your babel options
"presets": ["@babel/preset-env"],
},
},
"plugins": ["prettier"],
"extends": [
"prettier"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "off"
}
}
]
}