@nitra/eslint-config 3.3.0 → 3.4.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.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -8,6 +8,7 @@ import oxlint from 'eslint-plugin-oxlint'
8
8
  import securityPlugin from 'eslint-plugin-security'
9
9
  import unicornPlugin from 'eslint-plugin-unicorn'
10
10
  import vuePlugin from 'eslint-plugin-vue'
11
+ import { configs as jsoncConfigs } from 'eslint-plugin-jsonc'
11
12
  import { configs as ymlConfigs } from 'eslint-plugin-yml'
12
13
  import globals from 'globals'
13
14
 
@@ -40,6 +41,8 @@ const all = [
40
41
  },
41
42
  // Загальні правила для всіх Yaml файлів проекту
42
43
  ...ymlConfigs['flat/recommended'],
44
+ // JSON / JSONC / JSON5 (рекомендований пресет як у документації плагіна)
45
+ ...jsoncConfigs['flat/recommended-with-jsonc'],
43
46
  // Загальні правила для всіх MD файлів проекту
44
47
  ...markdownPlugin.configs.recommended,
45
48
  // Плагін eslint-plugin-import
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "An ESLint shareable config for projects using Vue and Node",
5
5
  "keywords": [
6
6
  "eslint",
@@ -26,6 +26,7 @@
26
26
  "eslint": "^10.2.0",
27
27
  "eslint-plugin-import": "^2.32.0",
28
28
  "eslint-plugin-jsdoc": "^62.9.0",
29
+ "eslint-plugin-jsonc": "^3.1.2",
29
30
  "eslint-plugin-markdown": "^5.1.0",
30
31
  "eslint-plugin-n": "^17.24.0",
31
32
  "eslint-plugin-oxlint": "^1.58.0",