@@ -42,7 +42,9 @@ module.exports = {
42
42
} ] , // Whitespace - Preference
43
43
"lines-between-class-members" : [ "error" , "never" ] ,
44
44
"no-else-return" : "off" , // Allows more functional styles
45
+ "no-lonely-if" : "off" , // Allows more readable conditions
45
46
"no-multiple-empty-lines" : [ "error" , { max : 1 , maxBOF : 0 , maxEOF : 0 } ] , // Little stricter
47
+ "no-promise-executor-return" : "off" , // Makes it hard to return early for conditions
46
48
"no-underscore-dangle" : "off" , // Doesn't allow `const key = _key.toLowerCase()`
47
49
"no-unused-expressions" : [ "error" , { allowShortCircuit : true , allowTernary : true } ] ,
48
50
"object-curly-newline" : [ "error" , { multiline : true , consistent : true } ] ,
@@ -62,6 +64,10 @@ module.exports = {
62
64
"quote-props" : [ "error" , "consistent-as-needed" , { keywords : false } ] ,
63
65
"quotes" : [ "error" , "double" , { allowTemplateLiterals : true } ] ,
64
66
"react/destructuring-assignment" : "off" , // Overactive and solved by prefer-destructuring
67
+ "react/function-component-definition" : [ "error" , {
68
+ namedComponents : [ "function-declaration" , "function-expression" ] ,
69
+ unnamedComponents : "arrow-function"
70
+ } ] , // Allows simple arrow components
65
71
"react/jsx-boolean-value" : [ "error" , "always" ] , // Prefer explicit
66
72
"react/jsx-filename-extension" : "off" , // Unnecessary
67
73
"react/jsx-one-expression-per-line" : "off" , // Creates unnecessary white space issues
0 commit comments