-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (56 loc) · 1.56 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["@typescript-eslint", "import", "prettier", "eslint-comments"],
"rules": {
"import/prefer-default-export": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"global-require": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{"vars": "all", "args": "after-used", "ignoreRestSiblings": false}
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.test.{js,jsx,ts,tsx}", "**/*.spec.{js,jsx,ts,tsx}"]
}
],
"@typescript-eslint/explicit-member-accessibility": "off",
"lines-between-class-members": "off",
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-console": ["error", {"allow": ["info", "warn", "error"]}]
}
}