-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (38 loc) · 984 Bytes
/
.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
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
},
plugins: ["unused-imports"],
ignorePatterns: [
".eslintrc.js",
"/node_modules",
"/package-lock.json",
"/yarn.lock",
"/.gen",
"/.expo",
"/.idea",
"/assets",
"/build",
"/coverage",
"/dist",
],
rules: {
// allow async functions without await
"@typescript-eslint/require-await": "off",
// use plugin `unused-imports` instead of `no-unused-vars` rule to auto fix unused imports
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
},
};