-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
90 lines (90 loc) · 2.48 KB
/
.eslintrc.json
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
{
"extends": [
"airbnb",
"prettier",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true
},
"ignorePatterns": ["node_modules/", "storybook-static/"],
"plugins": ["@typescript-eslint", "react", "prettier", "jest"],
"parser": "@typescript-eslint/parser",
"rules": {
"camelcase": [
"error",
{ "ignoreDestructuring": true, "ignoreImports": true }
],
"consistent-return": "off",
"require-await": "error",
"no-bitwise": ["error", { "int32Hint": true }],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"no-param-reassign": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-confusing-arrow": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": ["error"],
"implicit-arrow-linebreak": "off",
"object-curly-newline": "off",
"arrow-parens": "off",
"operator-linebreak": "off",
"indent": "off",
"prettier/prettier": "error",
"import/no-dynamic-require": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import/prefer-default-export": 0,
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "always-and-inside-groups"
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"no-nested-ternary": "off",
"global-require": 0,
"react/prop-types": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [
0,
{
"extensions": [".tsx"]
}
],
"react/jsx-props-no-spreading": 0,
"react/jsx-one-expression-per-line": 0,
"jsx-a11y/interactive-supports-focus": 0,
"@typescript-eslint/member-delimiter-style": [
2,
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/type-annotation-spacing": 2,
"@typescript-eslint/triple-slash-reference": "off",
"jsx-a11y/click-events-have-key-events": 0
}
}