-
Notifications
You must be signed in to change notification settings - Fork 44
/
.eslintrc
43 lines (40 loc) · 1.23 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
{
"extends": "./node_modules/@yandex-int/lint/eslintrc.js",
"root": true,
"ignorePatterns": ["build", "**/vendor/**", "website/**"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"valid-jsdoc": 0,
// Codestyle
"arrow-parens": [2, "always"],
"operator-linebreak": [2, "after", {
"overrides": {
"?": "before",
":": "before"
}
}],
"space-before-function-paren": [2, {
"asyncArrow": "always",
"anonymous": "never",
"named": "never"
}],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [2],
// see: https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
"no-undef": 0,
// React
"react/jsx-no-bind": 0,
// TypeScript
"@typescript-eslint/no-explicit-any": 0,
// prettier conflicts
"indent": "off",
"@typescript-eslint/indent": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"camelcase": [1, { "properties": "never" }],
}
}