forked from City-of-Helsinki/varaamo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
127 lines (127 loc) · 3.14 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
119
120
121
122
123
124
125
126
127
{
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jest": true,
"cypress/globals": true
},
"globals": {
"SETTINGS": true
},
"parser": "babel-eslint",
"plugins": [
"import",
"react",
"cypress"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "./config/webpack.common.js"
}
}
},
"rules": {
"class-methods-use-this": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
[
"internal",
"parent",
"sibling",
"index"
]
],
"newlines-between": "always"
}
],
"no-debugger": "warn",
"no-unused-vars": "warn",
"import/prefer-default-export": "off",
"new-cap": [
"error",
{
"capIsNew": false,
"newIsCap": true
}
],
"no-underscore-dangle": [
"error",
{
"allow": [
"_paq"
]
}
],
"no-unused-expressions": "off",
"no-use-before-define": [
"error",
"nofunc"
],
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-sort-props": [
"error",
{
"ignoreCase": true
}
],
"react/no-string-refs": "off",
"react/no-unused-prop-types": [
"error",
{
"skipShapeProps": true
}
],
"react/prefer-stateless-function": "off",
"linebreak-style": 0,
"no-restricted-globals": [
"error",
"history"
],
"prefer-destructuring": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"react/no-array-index-key": "off",
"comma-dangle": "off",
"arrow-parens": "off",
"function-paren-newline": "off",
"prefer-object-spread": "off",
"default-param-last": "off",
"function-call-argument-newline": "off",
"no-restricted-exports": "off",
"no-multiple-empty-lines": "off",
"react/function-component-definition": "off",
"react/jsx-curly-newline": "off",
"react/jsx-no-constructed-context-values": "off",
"react/jsx-no-script-url": "off",
"react/jsx-no-useless-fragment": "off",
"react/jsx-no-props-spreading": "off",
"react/no-arrow-function-lifecycle": "off",
"react/no-invalid-html-attribute": "off",
"react/no-namespace": "off",
"react/no-unstable-nested-components": "off",
"react/jsx-props-no-spreading": "off",
"react/no-unused-class-component-methods": "off",
"react/prefer-exact-props": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"react/jsx-fragments": "off",
"react/sort-comp": "off",
"react/prop-types": "off",
"react/jsx-indent": "warn",
"import/no-import-module-exports": "off",
"jsx-a11y/control-has-associated-label": "off"
}
}