@alexlit/config-eslint 142.0.1 → 143.0.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/package.json +3 -3
  2. package/plugins/unicorn.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "142.0.1",
3
+ "version": "143.0.1",
4
4
  "private": false,
5
5
  "description": "Sharable ESLint configuration",
6
6
  "keywords": [
@@ -48,13 +48,13 @@
48
48
  "@vitest/eslint-plugin": "^1.6.20",
49
49
  "eslint": "^10.5.0",
50
50
  "eslint-config-prettier": "^10.1.8",
51
- "eslint-plugin-jsdoc": "^63.0.4",
51
+ "eslint-plugin-jsdoc": "^63.0.5",
52
52
  "eslint-plugin-perfectionist": "^5.9.1",
53
53
  "eslint-plugin-prettier": "^5.5.6",
54
54
  "eslint-plugin-regexp": "^3.1.0",
55
55
  "eslint-plugin-sonarjs": "^4.0.3",
56
56
  "eslint-plugin-tailwindcss": "^3.18.3",
57
- "eslint-plugin-unicorn": "^66.0.0",
57
+ "eslint-plugin-unicorn": "^67.0.0",
58
58
  "eslint-plugin-vue": "^10.9.2",
59
59
  "eslint-plugin-vuejs-accessibility": "^2.5.0",
60
60
  "globals": "^17.6.0",
@@ -5,10 +5,11 @@ import { FILES } from '../presets/base.js';
5
5
 
6
6
  /** @see [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) */
7
7
  export const unicorn = defineConfig([
8
- { files: FILES, ...plugin.configs.all },
8
+ { files: FILES, ...plugin.configs.recommended },
9
9
  {
10
10
  files: FILES,
11
11
  rules: {
12
+ 'unicorn/comment-content': 'off', // not stable
12
13
  'unicorn/consistent-function-scoping': [
13
14
  'error',
14
15
  { checkArrowFunctions: false },
@@ -17,10 +18,18 @@ export const unicorn = defineConfig([
17
18
  'unicorn/no-asterisk-prefix-in-documentation-comments': 'off',
18
19
  'unicorn/no-empty-file': 'off',
19
20
  'unicorn/no-for-each': 'off',
21
+ 'unicorn/no-this-outside-of-class': 'off', // used in setters/getters
22
+ 'unicorn/no-top-level-side-effects': 'off', // Vue.js specific
23
+ 'unicorn/no-unused-properties': 'off', // don't respect local keys
24
+ 'unicorn/prefer-dom-node-html-methods': 'off', // Safari not supports setHTML()
20
25
  'unicorn/prefer-export-from': ['error', { checkUsedVariables: true }],
26
+ 'unicorn/prefer-https': 'off', // SVG need HTTPS
21
27
  'unicorn/prefer-import-meta-properties': 'warn',
28
+ 'unicorn/prefer-iterator-concat': 'off', // ES2026 only
22
29
  'unicorn/prefer-module': 'warn',
23
30
  'unicorn/prefer-node-protocol': 'warn',
31
+ 'unicorn/prefer-temporal': 'off', // ES2026 only
32
+ 'unicorn/prefer-type-literal-last': 'off', // perfectionist/sort-intersection-types
24
33
  'unicorn/prevent-abbreviations': [
25
34
  'warn',
26
35
  {