forked from training-program/netflixroulette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
70 lines (70 loc) · 1.73 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
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"root": true,
"env": {
"es6": true,
"browser": true
},
"extends": ["airbnb", "airbnb/hooks", "airbnb-typescript", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"settings": {
"import/resolver": ["webpack", "node"]
},
"rules": {
"prettier/prettier": "error",
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"camelcase": [2, { "allow": ["release_date", "poster_path", "vote_average", "vote_count"] }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }],
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"react/require-default-props": "off",
"no-warning-comments": "warn",
"curly": [2, "all"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": null,
"filter": {
"regex": "^(release_date|poster_path|vote_average|vote_count)$",
"match": false
}
}
]
},
"overrides": [
{
"files": ["with*.js"],
"rules": {
"react/jsx-props-no-spreading": "off"
}
},
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
},
{
"files": ["*.reducer.ts"],
"rules": {
"@typescript-eslint/default-param-last": "off"
}
},
{
"files": ["*.stories.tsx"],
"rules": {
"import/no-extraneous-dependencies": ["off"],
"react/jsx-props-no-spreading": ["off"]
}
}
],
"ignorePatterns": ["*.config.[tj]s"]
}