forked from plone/volto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
55 lines (55 loc) · 1.2 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
{
"extends": ["airbnb", "prettier"],
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true,
"jasmine": true,
"protractor": true
},
"parser": "babel-eslint",
"rules": {
"valid-jsdoc": 2,
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
],
"prettier/prettier": [
"error",
{ "trailingComma": "all", "singleQuote": true }
],
"jsx-a11y/anchor-is-valid": [ "error", { "components": [ "Link" ], "specialLink": [ "to" ] } ],
"import/prefer-default-export": "off",
"react/prefer-stateless-function": 0,
"import/no-unresolved": 0,
"import/extensions": 0
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": {
"rootPathSuffix": "src"
}
}
},
"globals": {
"root": true,
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"__DEBUG__": true,
"__SSR__": true,
"jest": true,
"socket": true,
"webpackIsomorphicTools": true
},
"plugins": ["prettier"]
}