@momsfriendlydevco/eslint-config 2.1.2 → 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.
Files changed (2) hide show
  1. package/index.js +16 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -46,32 +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
59
+ 'unicorn/no-magic-array-flat-depth': ['warn'],
60
+ 'unicorn/no-negated-condition': ['off'],
61
+ 'unicorn/no-nested-ternary': ['off'],
62
+ 'unicorn/no-null': ['off'],
64
63
  'unicorn/no-this-assignment': ['off'], // Not allowing escape hatches to `this` when nesting functions is just dumb
65
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
66
67
  'unicorn/prefer-logical-operator-over-ternary': ['off'],
67
- 'unicorn/prefer-string-raw': ['off'], // Just a downright weird rule
68
68
  'unicorn/prefer-spread': ['off'],
69
- 'unicorn/no-array-reduce': ['off'],
70
- 'unicorn/no-nested-ternary': ['off'],
71
- 'unicorn/no-negated-condition': ['off'],
72
- 'unicorn/no-array-for-each': ['off'],
73
- 'unicorn/no-null': ['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
74
74
  'unicorn/prevent-abbreviations': ['off'],
75
+ 'unicorn/switch-case-braces': ['warn', 'avoid'],
75
76
  },
76
77
  },
77
78
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momsfriendlydevco/eslint-config",
3
3
  "description": "ESLint plugin for @MomsFriendlyDevCo projects",
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "test": "eslint --config index.js test/data"