@nitra/eslint-config 2.3.1 → 3.0.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 +2 -10
- package/package.json +8 -7
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ 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'
|
|
8
|
+
import oxlint from 'eslint-plugin-oxlint'
|
|
8
9
|
import securityPlugin from 'eslint-plugin-security'
|
|
9
10
|
import unicornPlugin from 'eslint-plugin-unicorn'
|
|
10
11
|
import vuePlugin from 'eslint-plugin-vue'
|
|
@@ -72,16 +73,6 @@ const all = [
|
|
|
72
73
|
{ onlyIfContainsSeparator: true, binary: { onlyIfContainsSeparator: false } }
|
|
73
74
|
]
|
|
74
75
|
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
rules: {
|
|
78
|
-
'padding-line-between-statements': [
|
|
79
|
-
'error',
|
|
80
|
-
{ blankLine: 'always', prev: '*', next: ['block', 'block-like'] },
|
|
81
|
-
{ blankLine: 'always', prev: ['block', 'block-like'], next: '*' },
|
|
82
|
-
{ blankLine: 'always', prev: ['expression'], next: '*' }
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
76
|
}
|
|
86
77
|
]
|
|
87
78
|
// Тільки для node js проектів
|
|
@@ -257,5 +248,6 @@ export function getConfig(params = { node: [], vue: [], vue2: [] }) {
|
|
|
257
248
|
result.push(...vueJSConfig)
|
|
258
249
|
}
|
|
259
250
|
|
|
251
|
+
result.push(oxlint.configs['flat/recommended'])
|
|
260
252
|
return result
|
|
261
253
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.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,19 @@
|
|
|
14
14
|
"eslintconfig"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@eslint/js": "^9.
|
|
18
|
-
"eslint": "^9.
|
|
19
|
-
"eslint-config-prettier": "^
|
|
17
|
+
"@eslint/js": "^9.19.0",
|
|
18
|
+
"eslint": "^9.19.0",
|
|
19
|
+
"eslint-config-prettier": "^10.0.1",
|
|
20
20
|
"eslint-plugin-import": "^2.31.0",
|
|
21
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
21
|
+
"eslint-plugin-jsdoc": "^50.6.3",
|
|
22
22
|
"eslint-plugin-markdown": "^5.1.0",
|
|
23
|
-
"eslint-plugin-n": "^17.15.
|
|
23
|
+
"eslint-plugin-n": "^17.15.1",
|
|
24
|
+
"eslint-plugin-oxlint": "^0.15.9",
|
|
24
25
|
"eslint-plugin-security": "^3.0.1",
|
|
25
26
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
26
27
|
"eslint-plugin-vue": "^9.32.0",
|
|
27
28
|
"eslint-plugin-yml": "^1.16.0",
|
|
28
|
-
"globals": "^15.
|
|
29
|
+
"globals": "^15.14.0"
|
|
29
30
|
},
|
|
30
31
|
"files": [
|
|
31
32
|
"index.js"
|