@nitra/eslint-config 3.0.4 → 3.0.6
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 -1
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -31,6 +31,7 @@ const all = [
|
|
|
31
31
|
importPluginEcmaLatest,
|
|
32
32
|
{
|
|
33
33
|
rules: {
|
|
34
|
+
'n/no-missing-import': 'off', // покривається oxlint https://github.com/oxc-project/oxc/issues/481#issuecomment-3135766557
|
|
34
35
|
'import/no-unresolved': 'off', // не працює з monorepo та #alias
|
|
35
36
|
'import/newline-after-import': ['error', { count: 1 }],
|
|
36
37
|
// 'import/order': ['error', { warnOnUnassignedImports: true }],
|
|
@@ -48,7 +49,6 @@ const all = [
|
|
|
48
49
|
},
|
|
49
50
|
rules: {
|
|
50
51
|
...js.configs.recommended.rules,
|
|
51
|
-
'n/no-missing-import': 'off', // покривається oxlint https://github.com/oxc-project/oxc/issues/481#issuecomment-3135766557
|
|
52
52
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -184,6 +184,7 @@ const vue2 = [
|
|
|
184
184
|
* @param {{node?: Array, vue?: Array, vue2?: Array}} params список директорій до яких примінити Eslint правили
|
|
185
185
|
* @returns {Array} конфігурації eslint
|
|
186
186
|
*/
|
|
187
|
+
// oxlint-disable-next-line unicorn/no-object-as-default-parameter
|
|
187
188
|
export function getConfig(params = { node: [], vue: [], vue2: [] }) {
|
|
188
189
|
const result = all
|
|
189
190
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "A Eslint shareable config for projects using 'Vue' and 'Node'",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
27
27
|
"eslint-plugin-vue": "^10.5.0",
|
|
28
28
|
"eslint-plugin-yml": "^1.18.0",
|
|
29
|
-
"globals": "^16.4.0"
|
|
29
|
+
"globals": "^16.4.0",
|
|
30
|
+
"vue-eslint-parser": "^10.2.0"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"index.js"
|