@r2d2bzh/eslint-config 0.6.0-alpha.5 → 0.6.1

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 +3 -0
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -12,6 +12,7 @@ module.exports = {
12
12
  'plugin:prettier/recommended',
13
13
  'plugin:promise/recommended',
14
14
  'plugin:security/recommended',
15
+ 'plugin:unicorn/recommended',
15
16
  ],
16
17
  parserOptions: {
17
18
  ecmaVersion: 12,
@@ -60,6 +61,8 @@ module.exports = {
60
61
  'max-depth': ['error', { max: 2 }],
61
62
  // https://eslint.org/docs/rules/max-params
62
63
  'max-params': ['error', {max: 3}],
64
+ // https://eslint.org/docs/rules/no-nested-ternary
65
+ 'no-nested-ternary': 'error',
63
66
  // https://eslint.org/docs/rules/no-trailing-spaces
64
67
  'no-trailing-spaces': 'error',
65
68
  // https://eslint.org/docs/rules/one-var
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2d2bzh/eslint-config",
3
- "version": "0.6.0-alpha.5",
3
+ "version": "0.6.1",
4
4
  "description": "r2d2bzh eslint configuration",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,8 +22,7 @@
22
22
  },
23
23
  "homepage": "https://github.com/r2d2bzh/eslint-config#readme",
24
24
  "publishConfig": {
25
- "access": "public",
26
- "tag": "alpha"
25
+ "access": "public"
27
26
  },
28
27
  "peerDependencies": {
29
28
  "eslint": ">=8.7.0",