forked from NWACus/avy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 1.11 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-absolute-imports", "react", "react-hooks", "eslint-plugin-typescript-sort-keys"],
"root": true,
"ignorePatterns": ["babel.config.js", "metro.config.js", "dist", ".expo", "types/generated", "android"],
"reportUnusedDisableDirectives": true,
"parserOptions": {
"project": true,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/jsx-no-bind": "error",
"absolute-imports/only-absolute-imports": "error",
"no-console": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{
// Don't produce unused arg errors if identifier starts with an underscore:
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
}