@nitra/eslint-config 2.2.2 → 2.3.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.
- package/index.js +8 -3
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import sdlPlugin from '@microsoft/eslint-plugin-sdl'
|
|
2
2
|
import js from '@eslint/js'
|
|
3
3
|
import configPrettier from 'eslint-config-prettier'
|
|
4
|
-
import importPlugin from 'eslint-plugin-import'
|
|
4
|
+
import { flatConfigs as importPlugin } from 'eslint-plugin-import'
|
|
5
5
|
import jsdocPlugin from 'eslint-plugin-jsdoc'
|
|
6
6
|
import markdownPlugin from 'eslint-plugin-markdown'
|
|
7
7
|
import nodePlugin from 'eslint-plugin-n'
|
|
@@ -12,6 +12,10 @@ import eslintYmlPlugin from 'eslint-plugin-yml'
|
|
|
12
12
|
import globals from 'globals'
|
|
13
13
|
// import configStandard from 'eslint-config-standard'
|
|
14
14
|
|
|
15
|
+
// Перевизначаємо версію EcmaScript на останню
|
|
16
|
+
const importPluginEcmaLatest = importPlugin.recommended
|
|
17
|
+
importPluginEcmaLatest.languageOptions.ecmaVersion = 'latest'
|
|
18
|
+
|
|
15
19
|
const all = [
|
|
16
20
|
{
|
|
17
21
|
// До дефолтних "**/node_modules/", ".git/" додаємо
|
|
@@ -22,8 +26,8 @@ const all = [
|
|
|
22
26
|
// Загальні правила для всіх MD файлів проекту
|
|
23
27
|
// @ts-ignore
|
|
24
28
|
...markdownPlugin.configs.recommended,
|
|
25
|
-
//
|
|
26
|
-
|
|
29
|
+
// Плагін eslint-plugin-import
|
|
30
|
+
importPluginEcmaLatest,
|
|
27
31
|
{
|
|
28
32
|
rules: {
|
|
29
33
|
'import/no-unresolved': 'off', // не працює з monorepo та #alias
|
|
@@ -62,6 +66,7 @@ const all = [
|
|
|
62
66
|
'unicorn/no-object-as-default-parameter': 'off',
|
|
63
67
|
'unicorn/prefer-top-level-await': 'off',
|
|
64
68
|
'unicorn/no-nested-ternary': 'off',
|
|
69
|
+
'unicorn/prefer-math-min-max': 'off',
|
|
65
70
|
'unicorn/numeric-separators-style': [
|
|
66
71
|
'error',
|
|
67
72
|
{ onlyIfContainsSeparator: true, binary: { onlyIfContainsSeparator: false } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "A Eslint shareable config for projects using 'Vue' and 'Node'",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"eslintconfig"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@eslint/js": "^9.
|
|
18
|
-
"eslint": "^9.
|
|
17
|
+
"@eslint/js": "^9.16.0",
|
|
18
|
+
"eslint": "^9.16.0",
|
|
19
19
|
"eslint-config-prettier": "^9.1.0",
|
|
20
20
|
"eslint-plugin-import": "^2.31.0",
|
|
21
|
-
"eslint-plugin-jsdoc": "^50.
|
|
21
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
22
22
|
"eslint-plugin-markdown": "^5.1.0",
|
|
23
|
-
"eslint-plugin-n": "^17.
|
|
23
|
+
"eslint-plugin-n": "^17.15.0",
|
|
24
24
|
"eslint-plugin-security": "^3.0.1",
|
|
25
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
26
|
-
"eslint-plugin-vue": "^9.
|
|
27
|
-
"eslint-plugin-yml": "^1.
|
|
28
|
-
"globals": "^15.
|
|
25
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
26
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
27
|
+
"eslint-plugin-yml": "^1.16.0",
|
|
28
|
+
"globals": "^15.13.0"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"index.js"
|