@singlepixellab/eslint-config 2.2.5 → 2.2.6
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/package.json +1 -1
- package/rules/core.js +2 -10
- package/rules/typescript.js +3 -0
package/package.json
CHANGED
package/rules/core.js
CHANGED
|
@@ -533,16 +533,8 @@ export default [
|
|
|
533
533
|
// prevent undefined from being shadowed or assigned a different value
|
|
534
534
|
"no-undefined": "off",
|
|
535
535
|
|
|
536
|
-
//
|
|
537
|
-
"no-underscore-dangle":
|
|
538
|
-
"error",
|
|
539
|
-
{
|
|
540
|
-
allow: [],
|
|
541
|
-
allowAfterThis: false,
|
|
542
|
-
allowAfterSuper: false,
|
|
543
|
-
enforceInMethodNames: true,
|
|
544
|
-
},
|
|
545
|
-
],
|
|
536
|
+
// Allow underscores in identifiers for flexibility
|
|
537
|
+
"no-underscore-dangle": "off",
|
|
546
538
|
|
|
547
539
|
// Disallow the use of Boolean literals in conditional expressions
|
|
548
540
|
// also, prefer `a || b` over `a ? a : b`
|
package/rules/typescript.js
CHANGED
|
@@ -19,6 +19,9 @@ export default [
|
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
rules: {
|
|
22
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
23
|
+
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
24
|
+
|
|
22
25
|
// Ensure that all explicitly declared properties are actually used
|
|
23
26
|
"no-unused-vars": "off",
|
|
24
27
|
"@typescript-eslint/no-unused-vars": [
|