forked from AlexSapoznikov/react-instagram-zoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
99 lines (99 loc) · 2.56 KB
/
Copy path.eslintrc.json
File metadata and controls
99 lines (99 loc) · 2.56 KB
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
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb"
],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["./src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks"
],
"rules": {
"arrow-parens": "off",
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" }}],
"no-param-reassign": "off",
"object-curly-newline": "off",
"prefer-object-spread": "off",
"space-before-function-paren": ["error", "always"],
"function-paren-newline": "off",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"max-len": ["error", { "code": 140 }],
"implicit-arrow-linebreak": "off",
"comma-dangle": "off",
"prefer-template": "off",
"prefer-destructuring": "off",
"no-return-assign": "off",
"camelcase": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-unresolved": [
"error",
{
"ignore": [ ".svg" ]
}
],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-nested-ternary": "off",
"consistent-return": "off",
"class-methods-use-this": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [2, { "extensions": [".jsx", ".tsx"] }],
"react/destructuring-assignment": "off",
"react/jsx-one-expression-per-line": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off",
"react/jsx-first-prop-new-line": "off",
"react/jsx-indent-props": [2, "first"],
"react/jsx-boolean-value": "off",
"react/require-default-props": "off",
"react/no-danger": "off",
"jsx-a11y/no-noninteractive-tabindex": [
"error",
{
"tags": ["div"]
}
],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "hrefLeft", "hrefRight" ],
"aspects": [ "invalidHref", "preferButton" ]
}],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off"
},
"globals": {
"process": "readonly"
}
}