-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 loc) · 1.94 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
{
"extends": ["@ackee/eslint-config", "prettier"],
"parser": "@typescript-eslint/parser",
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
/**
* Rules we don't want to apply
*/
"import/no-anonymous-default-export": "off",
/**
* Rules override needed until we include them into ackee-eslint-config
*/
"react/react-in-jsx-scope": "off",
/**
* Override core rules with their typesript version
* https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-am-using-a-rule-from-eslint-core-and-it-doesnt-work-correctly-with-typescript-code
*/
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"padding-line-between-statements": [
"warn",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] },
{ "blankLine": "always", "prev": ["function", "class", "multiline-const"], "next": "*" },
{ "blankLine": "always", "prev": ["import", "export"], "next": "*" },
{ "blankLine": "any", "prev": "import", "next": "import" },
{ "blankLine": "any", "prev": "export", "next": "export" }
]
},
"overrides": [
{
"files": ["src/serviceWorker.ts"],
"rules": {
"no-console": "off"
}
}
]
}