@advdominion/eslint-config 1.1.3 → 2.1.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.
Files changed (2) hide show
  1. package/index.js +7 -4
  2. package/package.json +8 -9
package/index.js CHANGED
@@ -22,19 +22,19 @@ const config = [
22
22
  {
23
23
  rules: {
24
24
  ...{
25
+ // Включаем правила из категории Possible Problems, которые не включенны в recommended
25
26
  'array-callback-return': 'error',
26
27
  'no-await-in-loop': 'warn',
27
28
  'no-duplicate-imports': 'warn',
28
29
  'no-promise-executor-return': 'error',
29
30
  'no-self-compare': 'error',
30
31
  'no-template-curly-in-string': 'warn',
31
- 'no-unassigned-vars': 'warn',
32
32
  'no-unmodified-loop-condition': 'error',
33
33
  'no-unreachable-loop': 'error',
34
34
  'no-use-before-define': 'error',
35
- 'no-useless-assignment': 'warn',
36
35
  },
37
36
  ...{
37
+ // Включаем правила из категории Suggestions, которые не включенны в recommended
38
38
  'dot-notation': 'warn',
39
39
  'eqeqeq': 'error',
40
40
  'no-implicit-coercion': 'warn',
@@ -49,6 +49,10 @@ const config = [
49
49
  'prefer-const': 'warn',
50
50
  'prefer-template': 'warn',
51
51
  },
52
+ ...{
53
+ // Переопределяем правила, которые включены в recommended
54
+ 'no-irregular-whitespace': ['error', { skipTemplates: true }],
55
+ },
52
56
  },
53
57
  },
54
58
  {
@@ -74,7 +78,6 @@ const config = [
74
78
  'unicorn/filename-case': ['warn', { cases: { kebabCase: true, pascalCase: true } }],
75
79
  'unicorn/prefer-global-this': 'off',
76
80
  'unicorn/prefer-import-meta-properties': 'warn',
77
- 'unicorn/prefer-top-level-await': 'off',
78
81
  'unicorn/prevent-abbreviations': 'off',
79
82
  },
80
83
  },
@@ -107,7 +110,7 @@ const config = [
107
110
  'vue/no-constant-condition': 'error',
108
111
  'vue/no-empty-pattern': 'error',
109
112
  'vue/no-implicit-coercion': 'warn',
110
- 'vue/no-irregular-whitespace': 'error',
113
+ 'vue/no-irregular-whitespace': ['error', { skipTemplates: true }],
111
114
  'vue/no-loss-of-precision': 'error',
112
115
  'vue/no-negated-condition': 'warn',
113
116
  'vue/no-sparse-arrays': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@advdominion/eslint-config",
3
- "version": "1.1.3",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -12,16 +12,15 @@
12
12
  "access": "public"
13
13
  },
14
14
  "dependencies": {
15
- "@eslint/js": "^9.39.2",
15
+ "@eslint/js": "^10.0.1",
16
16
  "eslint-config-prettier": "^10.1.8",
17
17
  "eslint-plugin-simple-import-sort": "^12.1.1",
18
- "eslint-plugin-unicorn": "^62.0.0",
19
- "eslint-plugin-vue": "^10.7.0",
20
- "globals": "^17.0.0",
21
- "vue-eslint-parser": "^10.2.0"
18
+ "eslint-plugin-unicorn": "^64.0.0",
19
+ "eslint-plugin-vue": "^10.8.0",
20
+ "globals": "^17.4.0",
21
+ "vue-eslint-parser": "^10.4.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "eslint": "^9.39.0"
25
- },
26
- "gitHead": "fc11cdfa4831ae82f258c5cf5484ae39921cbaa8"
24
+ "eslint": "^10.0.0"
25
+ }
27
26
  }