-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
87 lines (87 loc) · 2.35 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
{
"env": {
"jest": true
},
"extends": [
"@folio/eslint-config-stripes",
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"parser": "@babel/eslint-parser",
"plugins": ["canonical"],
"rules": {
"array-bracket-newline": ["error", { "multiline": true }],
"canonical/export-specifier-newline": "error",
"canonical/import-specifier-newline": "error",
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"import/order": [
"error",
{
"groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"]],
"newlines-between": "always",
"pathGroups": [
{
"pattern": "@folio/**",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true,
"mode": "strict"
}
],
"max-len": ["warn", { "code": 120 }],
"newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 2 }],
"no-multiple-empty-lines": "error",
"object-curly-newline": [
"error",
{
"ImportDeclaration": { "multiline": true, "minProperties": 2 },
"ExportDeclaration": { "multiline": true, "minProperties": 2 }
}
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "block-like" }
],
"quote-props": ["error", "as-needed"],
"react/jsx-sort-props": "error",
"react/sort-prop-types": "error",
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"testing-library/no-await-sync-events": [
"error",
{ "eventModules": ["fire-event"] }
],
"testing-library/no-node-access": "off",
"testing-library/no-render-in-lifecycle": [
"error",
{ "allowTestingFrameworkSetupHook": "beforeEach" }
]
},
"settings": {
"react": {
"version": "detect"
}
}
}