forked from pubpub/pubpub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
56 lines (56 loc) · 1.81 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
{
"extends": ["airbnb", "prettier"],
"plugins": ["react", "import", "prettier", "react-hooks"],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["client"]
},
"alias": {
"map": [
["shared", "./shared"],
["data", "./stories/data"]
],
"extensions": [".js"]
}
}
},
"rules": {
"arrow-parens": [2, "always"],
"arrow-body-style": 0,
"camelcase": 0,
"class-methods-use-this": 0,
"comma-dangle": 0,
"func-names": 0,
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"import/prefer-default-export": 0,
"jsx-a11y/click-events-have-key-events": 0,
"no-console": [1, { "allow": ["warn", "error", "info"] }],
"no-nested-ternary": 0,
"object-shorthand": [2, "never"],
"object-curly-newline": 0,
"prefer-destructuring": [2, { "object": false, "array": false }],
"prettier/prettier": "error",
"no-tabs": 0,
"operator-linebreak": 0,
"prefer-template": 0,
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0,
"react-hooks/exhaustive-deps": 1,
"react-hooks/rules-of-hooks": 2,
"react/jsx-boolean-value": 0,
"react/jsx-filename-extension": [2, { "extensions": [".js"] }],
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-one-expression-per-line": 0,
"react/jsx-wrap-multilines": 0,
"react/no-danger": 0,
"react/no-unescaped-entities": ["error", {"forbid": [">", "}"]}],
"space-before-function-paren": 0
}
}