@w5s/eslint-config 3.10.0 → 3.11.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "3.10.0",
3
+ "version": "3.11.0",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -45,15 +45,15 @@
45
45
  "@typescript-eslint/eslint-plugin": "^8.0.0",
46
46
  "@typescript-eslint/parser": "^8.0.0",
47
47
  "@vitest/eslint-plugin": "^1.0.0",
48
- "@w5s/dev": "^3.4.6",
49
- "@w5s/eslint-config-ignore": "^1.2.6",
50
- "@w5s/prettier-config": "^3.1.14",
48
+ "@w5s/dev": "^3.4.7",
49
+ "@w5s/eslint-config-ignore": "^1.2.7",
50
+ "@w5s/prettier-config": "^3.1.15",
51
51
  "eslint-merge-processors": "^2.0.0",
52
52
  "eslint-plugin-import": "~2.32.0",
53
53
  "eslint-plugin-jsdoc": "~63.0.0",
54
54
  "eslint-plugin-jsonc": "~3.2.0",
55
55
  "eslint-plugin-n": "~18.1.0",
56
- "eslint-plugin-unicorn": "~65.0.0",
56
+ "eslint-plugin-unicorn": "~68.0.0",
57
57
  "eslint-plugin-yml": "~3.5.0",
58
58
  "globals": "^17.0.0",
59
59
  "jsonc-eslint-parser": "^3.0.0",
@@ -79,5 +79,5 @@
79
79
  "access": "public"
80
80
  },
81
81
  "sideEffect": false,
82
- "gitHead": "4cca98f83977b854f9d1d6b2338658aa3104ad0b"
82
+ "gitHead": "fcde4af12d29afdb46ed396ef832c36a399ed057"
83
83
  }
@@ -21,21 +21,11 @@ export async function unicorn(options: unicorn.Options = {}) {
21
21
  name: 'w5s/unicorn/rules',
22
22
  files,
23
23
  rules: {
24
- ...(recommended ? unicornPlugin.configs.recommended?.rules : {}),
24
+ ...(recommended && unicornPlugin.configs['unopinionated'].rules),
25
25
  // Disabled for safety
26
- 'unicorn/consistent-destructuring': 'off',
27
- 'unicorn/consistent-function-scoping': 'off', // Too many false positive
28
- 'unicorn/filename-case': 'off',
29
- 'unicorn/import-index': 'off', // Not playing well with ES Module
30
26
  'unicorn/new-for-builtins': 'off', // error, @see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/122
31
- 'unicorn/no-array-callback-reference': 'off', // Many false positive reported
32
- 'unicorn/no-array-for-each': 'off', // This rule could change browser compatibility
33
27
  'unicorn/no-array-method-this-argument': 'off', // Many false positive reported
34
- 'unicorn/no-array-reduce': 'off', // Array#reduce can be used
35
28
  'unicorn/no-console-spaces': 'off',
36
- 'unicorn/no-fn-reference-in-iterator': 'off', // error ?
37
- 'unicorn/no-nested-ternary': 'off',
38
- 'unicorn/no-null': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/612
39
29
  'unicorn/no-object-as-default-parameter': 'off',
40
30
  'unicorn/no-process-exit': 'off',
41
31
  'unicorn/no-unreadable-array-destructuring': 'off',
@@ -43,7 +33,6 @@ export async function unicorn(options: unicorn.Options = {}) {
43
33
  'unicorn/prefer-add-event-listener': 'off',
44
34
  'unicorn/prefer-default-parameters': 'off',
45
35
  'unicorn/prefer-set-has': 'off',
46
- 'unicorn/prevent-abbreviations': 'off', // This rule is so dangerous : it potentially break code while fixing in many cases !!
47
36
  'unicorn/throw-new-error': 'off', // Creating errors with call signature is OK
48
37
  ...(stylisticEnabled ? {} : {}),
49
38
  ...rules,