@zetavg/eslint-config 0.0.8-pre.4 → 0.0.8-pre.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.
Files changed (2) hide show
  1. package/configs/json.js +3 -4
  2. package/package.json +4 -3
package/configs/json.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import json from '@eslint/json';
2
2
  import { defineConfig } from 'eslint/config';
3
+ import * as jsoncParser from 'jsonc-eslint-parser';
3
4
 
4
5
  export default defineConfig([
5
6
  {
@@ -8,11 +9,9 @@ export default defineConfig([
8
9
  },
9
10
  },
10
11
  {
11
- files: ['**/*.json'],
12
- ignores: [
13
- '**/tsconfig.json', // tsconfig files may contain comments, which ESLint can't parse
14
- ],
12
+ files: ['**/*.json', '**/*.jsonc', '**/*.json5'],
15
13
  language: 'json/json',
14
+ languageOptions: { parser: jsoncParser },
16
15
  rules: {
17
16
  'json/no-duplicate-keys': 'error',
18
17
  },
package/package.json CHANGED
@@ -61,14 +61,15 @@
61
61
  "eslint-plugin-simple-import-sort": "^12",
62
62
  "eslint-plugin-unicorn": "^59 || ^63",
63
63
  "globals": "^16 || ^17",
64
+ "jsonc-eslint-parser": "^3.1.0",
64
65
  "typescript-eslint": "^8"
65
66
  },
66
67
  "devDependencies": {
67
- "@zetavg/prettier-config": "^0.0.8-pre.4",
68
- "@zetavg/tsconfig": "^0.0.8-pre.4",
68
+ "@zetavg/prettier-config": "^0.0.8-pre.6",
69
+ "@zetavg/tsconfig": "^0.0.8-pre.6",
69
70
  "eslint": "^9",
70
71
  "prettier": "^3",
71
72
  "typescript": "~5.8"
72
73
  },
73
- "version": "0.0.8-pre.4"
74
+ "version": "0.0.8-pre.6"
74
75
  }