-
Notifications
You must be signed in to change notification settings - Fork 49
/
.eslintrc
64 lines (61 loc) · 1.58 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
{
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"indent": "off", // prettier handles indentation
"max-len": "off", // just apply common-sense
"import/no-unresolved": ["error", { "ignore": ["bitsy"] }], // `bitsy` can't be resolved
"no-param-reassign": "off", // necessary for most hacks
// for dev accessibility
// e.g. helpers from body called in hackOptions,
// var declarations co-located with relevant functions,
// etc.
"no-console": "off",
"no-unused-vars": ["error", {
"vars": "all",
"args": "none"
}],
"vars-on-top": "off",
"no-use-before-define": "off",
// don't prefer fancy stuff to account for lack of babel
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"import/no-mutable-exports": "off",
"prefer-rest-params": "off",
"no-var": "off",
"prefer-arrow-callback": "off",
"func-names": "off",
"prefer-destructuring": "off",
"prefer-spread": "off",
"prefer-object-spread": "off",
"prefer-template": "off",
"object-shorthand": "off",
// i just like using these 🤷♀️
"no-multi-assign": "off",
"no-plusplus": "off",
"no-continue": "off",
},
"overrides": [{
"files": ["**/*.test.js", "**/*/test/**/*.js"],
"env": {
"jest": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}
}]
}