@momsfriendlydevco/eslint-config 2.1.1 → 2.1.3
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/index.js +18 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -46,30 +46,33 @@ export default [
|
|
|
46
46
|
...pluginUnicorn.configs['flat/recommended'],
|
|
47
47
|
rules: {
|
|
48
48
|
...pluginUnicorn.configs['flat/recommended'].rules,
|
|
49
|
-
'unicorn/no-anonymous-default-export': ['off'],
|
|
50
|
-
'unicorn/prefer-string-replace-all': ['off'], // Gets annoying pretty fast and its rarely correct
|
|
51
|
-
'unicorn/prefer-dom-node-append': ['warn'],
|
|
52
|
-
'unicorn/prefer-global-this': ['warn'], // Disabled in .vue files to allow 'window' directly
|
|
53
|
-
'unicorn/prefer-ternary': ['warn'],
|
|
54
|
-
'unicorn/no-magic-array-flat-depth': ['warn'],
|
|
55
|
-
'unicorn/switch-case-braces': ['warn', 'avoid'],
|
|
56
|
-
'unicorn/consistent-function-scoping': ['off'], // This rule means well and its more optimal but makes functions with constants harder to read
|
|
57
|
-
'unicorn/prefer-ternary': ['off'], // This rule means well but it can screw up perfectly readable code
|
|
58
49
|
'unicorn/catch-error-name': ['off'],
|
|
50
|
+
'unicorn/consistent-function-scoping': ['off'], // This rule means well and its more optimal but makes functions with constants harder to read
|
|
59
51
|
'unicorn/explicit-length-check': ['off'],
|
|
60
52
|
'unicorn/filename-case': ['off'], // Disabled globally (gets re-enabled for .vue files)
|
|
53
|
+
'unicorn/no-anonymous-default-export': ['off'],
|
|
61
54
|
'unicorn/no-array-callback-reference': ['off'], // Overly aggressively attaches itself to all .find() operations
|
|
55
|
+
'unicorn/no-array-for-each': ['off'],
|
|
56
|
+
'unicorn/no-array-reduce': ['off'],
|
|
62
57
|
'unicorn/no-await-expression-member': ['off'], // There is nothing wrong with `(await thing).prop`
|
|
63
58
|
'unicorn/no-empty-file': ['off'], // Breaks interface files + schema files with just JSDoc
|
|
64
|
-
'unicorn/
|
|
65
|
-
'unicorn/prefer-string-raw': ['off'], // Just a downright weird rule
|
|
66
|
-
'unicorn/prefer-spread': ['off'],
|
|
67
|
-
'unicorn/no-array-reduce': ['off'],
|
|
68
|
-
'unicorn/no-nested-ternary': ['off'],
|
|
59
|
+
'unicorn/no-magic-array-flat-depth': ['warn'],
|
|
69
60
|
'unicorn/no-negated-condition': ['off'],
|
|
70
|
-
'unicorn/no-
|
|
61
|
+
'unicorn/no-nested-ternary': ['off'],
|
|
71
62
|
'unicorn/no-null': ['off'],
|
|
63
|
+
'unicorn/no-this-assignment': ['off'], // Not allowing escape hatches to `this` when nesting functions is just dumb
|
|
64
|
+
'unicorn/no-useless-promise-resolve-reject': ['off'], // Constant complaints about using `throw` within simple promise chains
|
|
65
|
+
'unicorn/prefer-dom-node-append': ['warn'],
|
|
66
|
+
'unicorn/prefer-global-this': ['warn'], // Disabled in .vue files to allow 'window' directly
|
|
67
|
+
'unicorn/prefer-logical-operator-over-ternary': ['off'],
|
|
68
|
+
'unicorn/prefer-spread': ['off'],
|
|
69
|
+
'unicorn/prefer-string-raw': ['off'], // Just a downright weird rule
|
|
70
|
+
'unicorn/prefer-string-replace-all': ['off'], // Gets annoying pretty fast and its rarely correct
|
|
71
|
+
'unicorn/prefer-ternary': ['off'], // This rule means well but it can screw up perfectly readable code
|
|
72
|
+
'unicorn/prefer-ternary': ['warn'],
|
|
73
|
+
'unicorn/prefer-type-error': ['off'], // Too TS specific
|
|
72
74
|
'unicorn/prevent-abbreviations': ['off'],
|
|
75
|
+
'unicorn/switch-case-braces': ['warn', 'avoid'],
|
|
73
76
|
},
|
|
74
77
|
},
|
|
75
78
|
|
package/package.json
CHANGED