@ethang/eslint-config 18.4.8 → 18.4.10

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/build.mjs CHANGED
@@ -3,8 +3,7 @@ import { projectBuilder } from '@ethang/project-builder/project-builder.js'
3
3
 
4
4
  await projectBuilder('eslint-config-ethang', 'master', {
5
5
  isLibrary: true,
6
- postVersionBumpScripts: ['DEDUPE', 'LINT'],
7
- preVersionBumpScripts: ['UPDATE'],
6
+ scripts: ['UPDATE', 'DEDUPE', 'LINT'],
8
7
  tsupOptions: {
9
8
  bundle: true,
10
9
  },
package/eslint.config.js CHANGED
@@ -13,6 +13,7 @@ import compat from "eslint-plugin-compat";
13
13
  import lodashConfig from "eslint-plugin-lodash";
14
14
  import tailwind from "eslint-plugin-tailwindcss";
15
15
  import stylistic from "@stylistic/eslint-plugin";
16
+ import json from '@eslint/json';
16
17
 
17
18
  export const languageOptions = {
18
19
  parser,
@@ -25,6 +26,13 @@ export const languageOptions = {
25
26
  export const ignores = ["eslint.config.js", "node_modules", "dist"];
26
27
 
27
28
  export default tseslint.config({
29
+ files: ["**/*.json5", "**/*.jsonc", "**/*.json"],
30
+ ignores,
31
+ plugins: {
32
+ "json/no-duplicate-keys": "error",
33
+ "json/no-empty-keys": "error",
34
+ },
35
+ }, {
28
36
  files: ["**/*.{js,ts,jsx,tsx,cjs,mjs}"],
29
37
  ignores,
30
38
  languageOptions,
@@ -35,6 +43,7 @@ export default tseslint.config({
35
43
  barrel,
36
44
  compat,
37
45
  depend,
46
+ json,
38
47
  lodash: lodashConfig,
39
48
  n,
40
49
  perfectionist,
@@ -160,7 +169,9 @@ export default tseslint.config({
160
169
  "no-unreachable-loop": "error",
161
170
  "no-unsafe-finally": "error",
162
171
  "no-unsafe-negation": "error",
163
- "no-unsafe-optional-chaining": "error",
172
+ "no-unsafe-optional-chaining": ["error", {
173
+ disallowArithmeticOperators: true
174
+ }],
164
175
  "no-unused-labels": "error",
165
176
  "no-unused-private-class-members": "error",
166
177
  "no-useless-backreference": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "18.4.8",
3
+ "version": "18.4.10",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -17,11 +17,12 @@
17
17
  "license": "ISC",
18
18
  "peerDependencies": {
19
19
  "@eslint-react/eslint-plugin": "^1.9.1",
20
- "@eslint/js": "^9.8.0",
21
- "@stylistic/eslint-plugin": "^2.6.1",
20
+ "@eslint/js": "^9.9.0",
21
+ "@eslint/json": "^0.3.0",
22
+ "@stylistic/eslint-plugin": "^2.6.2",
22
23
  "@tanstack/eslint-plugin-query": "^5.51.15",
23
24
  "@typescript-eslint/parser": "^8.0.1",
24
- "eslint": "^9.8.0",
25
+ "eslint": "^9.9.0",
25
26
  "eslint-plugin-astro": "^1.2.3",
26
27
  "eslint-plugin-barrel-files": "^2.1.0",
27
28
  "eslint-plugin-compat": "^6.0.0",
@@ -40,11 +41,12 @@
40
41
  },
41
42
  "dependencies": {
42
43
  "@eslint-react/eslint-plugin": "^1.9.1",
43
- "@eslint/js": "^9.8.0",
44
- "@stylistic/eslint-plugin": "^2.6.1",
44
+ "@eslint/js": "^9.9.0",
45
+ "@eslint/json": "^0.3.0",
46
+ "@stylistic/eslint-plugin": "^2.6.2",
45
47
  "@tanstack/eslint-plugin-query": "^5.51.15",
46
48
  "@typescript-eslint/parser": "^8.0.1",
47
- "eslint": "^9.8.0",
49
+ "eslint": "^9.9.0",
48
50
  "eslint-plugin-astro": "^1.2.3",
49
51
  "eslint-plugin-barrel-files": "^2.1.0",
50
52
  "eslint-plugin-compat": "^6.0.0",
@@ -62,7 +64,7 @@
62
64
  "typescript-eslint": "^8.0.1"
63
65
  },
64
66
  "devDependencies": {
65
- "@ethang/project-builder": "^1.2.2",
67
+ "@ethang/project-builder": "^2.3.5",
66
68
  "@tsconfig/node-lts": "^20.1.3",
67
69
  "@tsconfig/strictest": "^2.0.5"
68
70
  }