-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
74 lines (74 loc) · 1.4 KB
/
.eslintrc.yaml
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
# Styleguide based on airbnb's guide: https://github.com/airbnb/javascript
---
extends: "airbnb"
root: true
ecmaFeatures:
jsx: true
templateStrings: true
classes: true
modules: true
parser: "babel-eslint"
globals:
process: false
appConfig: false
React: false
no-undef:
- error
env:
browser: true
plugins:
- react
- inflection
- getsentry
settings:
import/resolver:
babel-module:
webpack:
rules:
react/react-in-jsx-scope: # is exposed
- 0
getsentry/jsx-needs-i18n:
- 1
no-magic-numbers:
- error
-
ignoreArrayIndexes: true
ignore:
- 0
- 1
valid-jsdoc:
- error
no-alert:
- error
no-console:
- error
no-return-assign:
- 0
react/jsx-no-bind:
- error
-
ignoreRefs: true
no-debugger:
- error
no-underscore-dangle:
- error
- allow:
- __injectIntl
- __appName
import/no-extraneous-dependencies:
- error
- devDependencies:
- "**/*.config.js"
- "**/*.spec.{js,jsx}"
- "./scripts/**/*"
- "./config/**/*"
- "./jestsetup.js"
- "./webpack.config*"
inflection/no-plural-filenames:
- error
react/prefer-stateless-function:
- 1
arrow-parens:
- 2
- as-needed
- requireForBlockBody: true