@nitra/eslint-config 3.0.10 → 3.0.11

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 +9 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -14,8 +14,13 @@ import globals from 'globals'
14
14
  // import configStandard from 'eslint-config-standard'
15
15
 
16
16
  // Перевизначаємо версію EcmaScript на останню
17
- const importPluginEcmaLatest = importPlugin.recommended
18
- importPluginEcmaLatest.languageOptions.ecmaVersion = 'latest'
17
+ const importPluginEcmaLatest = {
18
+ ...importPlugin.recommended,
19
+ languageOptions: {
20
+ ...(importPlugin.recommended?.languageOptions ?? {}),
21
+ ecmaVersion: 'latest'
22
+ }
23
+ }
19
24
 
20
25
  const all = [
21
26
  {
@@ -31,7 +36,7 @@ const all = [
31
36
  importPluginEcmaLatest,
32
37
  {
33
38
  rules: {
34
- 'no-continue': 'off',
39
+ 'eslint/no-continue': 'off',
35
40
  'import/no-unresolved': 'off', // не працює з monorepo та #alias
36
41
  'import/newline-after-import': ['error', { count: 1 }],
37
42
  // 'import/order': ['error', { warnOnUnassignedImports: true }],
@@ -53,7 +58,7 @@ const all = [
53
58
  }
54
59
  },
55
60
  // Unicorn правила
56
- unicornPlugin.configs['flat/recommended'],
61
+ unicornPlugin.configs.recommended,
57
62
  {
58
63
  rules: {
59
64
  'unicorn/filename-case': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "A Eslint shareable config for projects using 'Vue' and 'Node'",
5
5
  "type": "module",
6
6
  "exports": "./index.js",