forked from BolajiOlajide/a_socials
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
52 lines (52 loc) · 1.34 KB
/
.eslintrc.json
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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier/react"
],
"plugins": [
"prettier",
"react"
],
"env": {
"node": true,
"es6": true,
"browser": true
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "minProperties": 2 },
"ObjectPattern": { "multiline": true, "minProperties": 2 },
"ExportDeclaration": { "multiline": true, "minProperties": 2 }
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}, {
"enforceForRenamedProperties": false
}],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-trailing-whitespace": false,
"consistent-return": 0,
"prefer-object-spread": true,
"import-spacing": true,
"no-irregular-whitespace": 2,
"no-implicit-dependencies": false,
"object-literal-sort-keys": true,
"ordered-imports": true
}
}