forked from ferjal0/zen-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 1.11 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
module.exports = {
env: {
node: true,
},
rules: {
/**
* JS
*/
// When single export, prefer using default over named export
'import/prefer-default-export': 0,
// If one param in arrow func, remove parentheses
'arrow-parens': ['error', 'as-needed'],
// x++ is allowed, but should be careful with whitespace
'no-plusplus': 0,
// Function input params can be reassigned
'no-param-reassign': 0,
// Allow continue in loops
'no-continue': 0,
// Allow console.logs
'no-console': 0,
// Allow calling prototype methods directly on instances
'no-prototype-builtins': 0,
// Allow complex ternaries
'no-nested-ternary': 0,
// Switch statement doesn't have to define default case
'default-case': 0,
// No space between function name and parens - function withoutSpace(x) {
'space-before-function-paren': 0,
// Guard hasOwnProperty in for-in should be there, but we prefer return:
// if (!x.hasOwnProperty(key)) return;
'guard-for-in': 0,
// Allow lexical declarations in case statement
'no-case-declarations': 0,
},
};