forked from pass-culture/pass-culture-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
118 lines (118 loc) · 3.07 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/all",
"plugin:jsx-a11y/strict",
"plugin:import/errors",
"plugin:jest/all",
"plugin:pass-culture/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"globals": {
"fixture": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"only-warn"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"indent": "off",
"import/order": ["warn", {
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": true }
}],
"jest/no-hooks": "off",
"jest/prefer-expect-assertions": "off",
"jest/prefer-inline-snapshots": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-onchange": "off",
"no-var": "warn",
"react/forbid-component-props": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-curly-brace-presence": [2, { "props": "never", "children": "ignore" }],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }],
"react/jsx-fragments": "off",
"react/jsx-indent": [2, 2, {"indentLogicalExpressions": true}],
"react/jsx-indent-props": [2, 2],
"react/jsx-handler-names": "off",
"react/jsx-max-depth": "off",
"react/jsx-newline": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": [
"warn",
{
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}
],
"react/jsx-no-bind": "off",
"react/no-set-state": "off",
"react/destructuring-assignment": "off",
"react/require-optimization": "off",
"react/static-property-placement": "off",
"react/jsx-no-literals": "off",
"react/require-default-props": "off",
"semi": [
"warn",
"never"
]
},
"overrides": [
{
"files": [
"testcafe/*.js",
"quality_assurance/*.js"
],
"rules": {
"jest/expect-expect": "off",
"jest/lowercase-name": "off",
"jest/no-test-callback": "off",
"jest/prefer-expect-assertions": "off",
"jest/require-top-level-describe": "off",
"jest/no-done-callback": "off"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
],
"paths": ["."],
"moduleDirectory": ["node_modules", "src"]
}
},
"react": {
"version": "detect"
}
}
}