-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
53 lines (53 loc) · 1.14 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
{
"plugins": [
"eslint-plugin-prettier",
"@typescript-eslint/eslint-plugin",
"simple-import-sort",
"no-type-assertion"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"eslint-config-airbnb-typescript",
"eslint-config-airbnb/base",
"eslint-config-prettier",
"eslint:recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"jest": true
},
"rules": {
"react/jsx-filename-extension": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never"
}
],
"no-else-return": "error",
"curly": ["error", "all"],
"prettier/prettier": [
"warn",
{
"parser": "typescript"
}
],
"no-type-assertion/no-type-assertion": "warn",
"import/no-unused-modules": ["error", { "unusedExports": true }],
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"enforceForJSX": true
}
],
"no-restricted-syntax": "off"
}
}