@r2d2bzh/eslint-config 0.6.1 → 0.6.2

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 +4 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -21,6 +21,10 @@ module.exports = {
21
21
  rules:
22
22
  // tag::rules[]
23
23
  {
24
+ // eslint-plugin-unicorn will only produce warnings for now
25
+ ...Object.fromEntries(Object.entries(unicorn.configs.recommended.rules).map(
26
+ ([rule, setting]) => setting === 'error' ? [rule, 'warn'] : [rule, setting]
27
+ )),
24
28
  // https://prettier.io/docs/en/integrating-with-linters.html#use-eslint-to-run-prettier
25
29
  // https://github.com/prettier/eslint-plugin-prettier#options
26
30
  'prettier/prettier': [
@@ -61,18 +65,12 @@ module.exports = {
61
65
  'max-depth': ['error', { max: 2 }],
62
66
  // https://eslint.org/docs/rules/max-params
63
67
  'max-params': ['error', {max: 3}],
64
- // https://eslint.org/docs/rules/no-nested-ternary
65
- 'no-nested-ternary': 'error',
66
68
  // https://eslint.org/docs/rules/no-trailing-spaces
67
69
  'no-trailing-spaces': 'error',
68
70
  // https://eslint.org/docs/rules/one-var
69
71
  'one-var': ['error', 'never'],
70
72
  // https://github.com/avajs/eslint-plugin-ava/blob/main/docs/rules/prefer-power-assert.md
71
73
  'ava/prefer-power-assert': 'warn',
72
- // eslint-plugin-unicorn will only produce warnings for now
73
- ...Object.fromEntries(Object.entries(unicorn.configs.recommended.rules).map(
74
- ([rule, setting]) => setting === 'error' ? [rule, 'warn'] : [rule, setting]
75
- ))
76
74
  },
77
75
  // end::rules[]
78
76
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2d2bzh/eslint-config",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "r2d2bzh eslint configuration",
5
5
  "main": "index.js",
6
6
  "scripts": {