-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
73 lines (73 loc) · 1.83 KB
/
Copy path.eslintrc
File metadata and controls
73 lines (73 loc) · 1.83 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
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"plugin:flowtype/recommended"
],
"parser": "babel-eslint",
"plugins": [
"react",
"jsx-a11y",
"import",
"prettier",
"flowtype"
],
"env": {
"browser": true,
"node": true,
"jest": true
},
"globals": {
"clipchamp": true
},
"rules": {
"flowtype/require-valid-file-annotation": [
2,
"always"
],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"indent": ["warn", 4, { "SwitchCase": 1}],
"import/first": 1,
"arrow-body-style": 1,
"no-plusplus": [1, { "allowForLoopAfterthoughts": true }],
"react/jsx-indent": [1,4],
"react/jsx-indent-props": [1,4],
"react/no-did-mount-set-state": 0,
"react/no-unused-state": 1,
"react/no-unused-prop-types": 0,
"react/jsx-curly-brace-presence": 1,
"react/jsx-boolean-value": 1,
"react/prefer-stateless-function": 1,
"react/jsx-closing-bracket-location": 1,
"no-unused-vars": 1,
"no-use-before-define": 1,
"no-unreachable": 1,
"spaced-comment": 1,
"flowtype/space-after-type-colon": [1],
"react/prop-types": 0,
"react/default-props-match-prop-types": 0,
"newline-after-var": ["warn", "always"],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": ["hrefLeft", "hrefRight", "to"],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
"import/prefer-default-export": 0,
"prettier/prettier": ["warn", {
"singleQuote": true,
"parser": "flow",
"tabWidth": 4,
"trailingComma": "all",
"printWidth": 120
}],
"jsx-a11y/media-has-caption": 0
},
"overrides": [
{
"files": ["*.test.js"],
"rules": {
"flowtype/require-valid-file-annotation": "off"
}
}
]
}