@tim-code/eslint-config 0.7.4 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -0
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -70,6 +70,7 @@ module.exports = {
|
|
|
70
70
|
|
|
71
71
|
// unsure
|
|
72
72
|
"no-labels": "off", // useful to be able to break/continue an outer loop; otherwise have to write more code
|
|
73
|
+
"no-nested-ternary": "off", // ideally would allow just two levels of nesting; saves quite a bit of code
|
|
73
74
|
|
|
74
75
|
// rule is too idealistic
|
|
75
76
|
camelcase: "off", // useful to allow non-camel case for compatibility like destructuring JSON
|
|
@@ -81,6 +82,7 @@ module.exports = {
|
|
|
81
82
|
"no-underscore-dangle": "off", // difficult to come up with other names for named default parameters
|
|
82
83
|
"max-statements": "off", // max 10 statements is way too low; unclear why number of statements is a good measurement
|
|
83
84
|
"class-methods-use-this": "off", // allow a static method to be called like an instance method
|
|
85
|
+
"arrow-body-style": "off", // does not allow braces to be used with a multi-line fat arrow expression
|
|
84
86
|
|
|
85
87
|
// rule conflicts with another tool
|
|
86
88
|
"one-var": "off", // with Prettier, comma appears on the same line as declaration, making code less readable
|