-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc
48 lines (48 loc) · 1.21 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
{
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"babel-module": {}
}
},
"extends": ["plugin:react/recommended", "airbnb-base", "prettier", "plugin:testcafe/recommended"],
"env": {
"mocha": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "prettier", "chai-friendly", "chai-expect", "mocha", "testcafe"],
"globals": {
"artifacts": false,
"contract": false,
"assert": false,
"expect": true,
"window": true,
"document": true
},
"rules": {
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"func-names": ["error", "as-needed"],
"react/react-in-jsx-scope": "off",
"prettier/prettier": "error",
"no-unused-expressions": "off",
"mocha/no-exclusive-tests": "error",
"chai-friendly/no-unused-expressions": [ "error", {"allowTaggedTemplates": true } ],
"chai-expect/no-inner-compare": "error",
"chai-expect/missing-assertion": "error",
"chai-expect/terminating-properties": "error",
"prefer-destructuring": "off",
"import/prefer-default-export": "off"
}
}