-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
41 lines (41 loc) · 1.25 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
{
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
}
},
"env": {
"browser": true,
"webextensions": true,
"jest": true
},
"rules": {
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [2, { "devDependencies": ["**/spec.tsx", "**/spec.ts"] }],
"import/extensions": 0,
"@typescript-eslint/indent": [2, 2],
"no-console": 0,
"no-debugger": "warn",
"eofline": 0,
"arrow-parens": 0,
"ordered-imports": 0,
"object-literal-sort-keys": 0,
"no-empty": 2,
"no-unused-expression": 0,
"linebreak-style": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"max-len": ["error", { "code": 140 }],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-empty-function": 0,
"no-unused-expressions": 0,
"react/jsx-props-no-spreading": 0,
"implicit-arrow-linebreak": 0
}
}