@nitra/eslint-config 3.1.4 → 3.1.5

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 +6 -0
  2. package/index.js +2 -2
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -32,17 +32,23 @@ export default getConfig({
32
32
  - **Тільки Node.js** — передайте лише `node`:
33
33
 
34
34
  ```js
35
+ import { getConfig } from '@nitra/eslint-config'
36
+
35
37
  export default getConfig({ node: ['.'] })
36
38
  ```
37
39
 
38
40
  - **Тільки Vue** — передайте лише `vue` або `vue2`:
39
41
 
40
42
  ```js
43
+ import { getConfig } from '@nitra/eslint-config'
44
+
41
45
  export default getConfig({ vue: ['src'] })
42
46
  ```
43
47
 
44
48
  - **Monorepo** — укажіть відповідні директорії:
45
49
  ```js
50
+ import { getConfig } from '@nitra/eslint-config'
51
+
46
52
  export default getConfig({
47
53
  node: ['apps/api', 'packages/cli'],
48
54
  vue: ['apps/web'],
package/index.js CHANGED
@@ -9,7 +9,7 @@ import oxlint from 'eslint-plugin-oxlint'
9
9
  // import securityPlugin from 'eslint-plugin-security'
10
10
  import unicornPlugin from 'eslint-plugin-unicorn'
11
11
  import vuePlugin from 'eslint-plugin-vue'
12
- import eslintYmlPlugin from 'eslint-plugin-yml'
12
+ import { configs as ymlConfigs } from 'eslint-plugin-yml'
13
13
  import globals from 'globals'
14
14
  // import configStandard from 'eslint-config-standard'
15
15
 
@@ -28,7 +28,7 @@ const all = [
28
28
  ignores: ['.yarn/**', '**/dist/**']
29
29
  },
30
30
  // Загальні правила для всіх Yaml файлів проекту
31
- ...eslintYmlPlugin.configs['flat/prettier'],
31
+ ...ymlConfigs['flat/prettier'],
32
32
  // Загальні правила для всіх MD файлів проекту
33
33
  // @ts-ignore
34
34
  ...markdownPlugin.configs.recommended,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "A Eslint shareable config for projects using 'Vue' and 'Node'",
5
5
  "keywords": [
6
6
  "eslint",
@@ -22,6 +22,7 @@
22
22
  "@eslint/js": "^10.0.1",
23
23
  "eslint": "^10.0.0",
24
24
  "eslint-config-prettier": "^10.1.8",
25
+ "eslint-scope": "^9.1.0",
25
26
  "eslint-plugin-import": "^2.32.0",
26
27
  "eslint-plugin-jsdoc": "^62.5.3",
27
28
  "eslint-plugin-markdown": "^5.1.0",
@@ -30,8 +31,7 @@
30
31
  "eslint-plugin-unicorn": "^62.0.0",
31
32
  "eslint-plugin-vue": "^10.7.0",
32
33
  "eslint-plugin-yml": "^3.1.2",
33
- "globals": "^17.3.0",
34
- "vue-eslint-parser": "^10.2.0"
34
+ "globals": "^17.3.0"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=20.19.0"