forked from superhero-com/superhero-avatars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (58 loc) · 1.08 KB
/
.eslintrc.js
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
module.exports = {
extends: ['eslint:recommended', 'prettier', "plugin:chai-expect/recommended"],
plugins: [
"import",
"jsx-a11y",
'prettier',
'prefer-arrow'
],
rules: {
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "should|expect"
}
],
'no-undef': 2,
'prettier/prettier': [
'error',
{
printWidth: 80,
singleQuote: true,
trailingComma: 'all',
semi: true,
},
],
'prefer-arrow/prefer-arrow-functions': [
'warn',
{
disallowPrototype: true,
singleReturnOnly: false,
classPropertiesAllowed: false
}
]
},
parserOptions: {
parser: 'babel-eslint',
ecmaFeatures: {
globalReturn: true,
generators: false,
objectLiteralDuplicateProperties: false,
experimentalObjectRestSpread: true,
jsx: true
},
ecmaVersion: 2017,
sourceType: "module"
},
env: {
mocha: true,
node: true,
es6: true
},
globals: {
$: true,
require: true,
process: true
},
root: true
};