@cto.af/eslint-config 5.0.2 → 5.0.4

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 (4) hide show
  1. package/all.js +2 -0
  2. package/index.js +2 -0
  3. package/json.js +14 -1
  4. package/package.json +6 -6
package/all.js CHANGED
@@ -4,6 +4,7 @@ import ignores from './ignores.js';
4
4
  import js from './js.js';
5
5
  import jsdoc from './jsdoc.js';
6
6
  import jsdoc_ts from './jsdoc_ts.js';
7
+ import json from './json.js';
7
8
  import markdown from './markdown.js';
8
9
  import mjs from './mjs.js';
9
10
  import ts from './ts.js';
@@ -17,6 +18,7 @@ export default [
17
18
  ...ts,
18
19
  ...jsdoc,
19
20
  ...jsdoc_ts,
21
+ ...json,
20
22
  ...ava,
21
23
  ...markdown,
22
24
  ];
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import ignores from './ignores.js';
2
2
  import js from './js.js';
3
+ import json from './json.js';
3
4
  import mjs from './mjs.js';
4
5
 
5
6
  // Just the core rules, no optional dependencies needed.
@@ -7,4 +8,5 @@ export default [
7
8
  ...ignores,
8
9
  ...js,
9
10
  ...mjs,
11
+ ...json,
10
12
  ];
package/json.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import json from '@eslint/json';
2
- import rules from './rules/json.js';
2
+ import {rules} from './rules/json.js';
3
3
 
4
4
  export default [
5
5
  {
@@ -12,4 +12,17 @@ export default [
12
12
  language: 'json/json',
13
13
  rules,
14
14
  },
15
+ {
16
+ files: ['**/*.jsonc', '.vscode/*.json', 'tsconfig.json'],
17
+ language: 'json/jsonc',
18
+ languageOptions: {
19
+ allowTrailingCommas: true,
20
+ },
21
+ rules,
22
+ },
23
+ {
24
+ files: ['**/*.json5'],
25
+ language: 'json/json5',
26
+ rules,
27
+ },
15
28
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/eslint-config",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -14,12 +14,12 @@
14
14
  "url": "git+https://github.com/cto-af/eslint-config.git"
15
15
  },
16
16
  "dependencies": {
17
- "@eslint/json": "0.5.0",
18
- "@stylistic/eslint-plugin": "2.9.0",
19
- "eslint-plugin-n": "17.11.1",
20
- "globals": "15.11.0"
17
+ "@eslint/json": "0.6.0",
18
+ "@stylistic/eslint-plugin": "2.10.1",
19
+ "eslint-plugin-n": "17.12.0",
20
+ "globals": "15.12.0"
21
21
  },
22
- "packageManager": "pnpm@9.12.2",
22
+ "packageManager": "pnpm@9.12.3",
23
23
  "engines": {
24
24
  "node": ">=18"
25
25
  }