forked from nasa/cmr-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
87 lines (76 loc) · 1.55 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": {
"browser": false,
"node": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
// Setting a max line-length
"max-len": [1, 100, 2, {
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
// Disallow all semicolons on line endings
"semi": [
"error",
"never"
],
// Allow shadow declarations
"no-shadow": "off",
// Disallow dangling commas
"comma-dangle": [
"error",
"never"
],
// Require spacing in object literals
"object-curly-spacing": [
"error",
"always"
],
// Allow class methods that dont use 'this'
"class-methods-use-this": "off",
// Allow console log messages
"no-console": "off",
// Allow extranious dependencies
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
// Allow named default exports
"import/no-named-as-default": "off",
// Allow files with no default export
"import/prefer-default-export": "off",
// Allowing cyclic dependancies
"import/no-cycle": "off"
},
"overrides": [
{
"files": [
"*.test.js"
],
"rules": {
"import/first": 0
}
},
{
"files": [
"src/**/*"
],
"rules": {
"import/prefer-default-export": 0
}
}
],
// Use AirBnb settings as a base
"extends": [
"airbnb-base"
]
}