@nitra/eslint-config 3.0.9 → 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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +9 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Installation
4
4
 
5
5
  ```sh
6
- yarn add @nitra/eslint-config -D
6
+ bun add @nitra/eslint-config -D
7
7
  ```
8
8
 
9
9
  _This is only a shareable configuration. It does not install Prettier, Standard,
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,6 +36,7 @@ const all = [
31
36
  importPluginEcmaLatest,
32
37
  {
33
38
  rules: {
39
+ 'eslint/no-continue': 'off',
34
40
  'import/no-unresolved': 'off', // не працює з monorepo та #alias
35
41
  'import/newline-after-import': ['error', { count: 1 }],
36
42
  // 'import/order': ['error', { warnOnUnassignedImports: true }],
@@ -52,7 +58,7 @@ const all = [
52
58
  }
53
59
  },
54
60
  // Unicorn правила
55
- unicornPlugin.configs['flat/recommended'],
61
+ unicornPlugin.configs.recommended,
56
62
  {
57
63
  rules: {
58
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.9",
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",