@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.
- package/README.md +1 -1
- package/index.js +9 -3
- package/package.json +1 -1
package/README.md
CHANGED
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 =
|
|
18
|
-
|
|
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
|
|
61
|
+
unicornPlugin.configs.recommended,
|
|
56
62
|
{
|
|
57
63
|
rules: {
|
|
58
64
|
'unicorn/filename-case': 'off',
|