@will-stone/eslint-config 15.1.0 → 16.0.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/dist/index.js +9 -2
  2. package/package.json +3 -11
package/dist/index.js CHANGED
@@ -629,6 +629,12 @@ async function node() {
629
629
  ];
630
630
  }
631
631
 
632
+ // src/configs/package-json.ts
633
+ import pluginPackageJson from "eslint-plugin-package-json";
634
+ async function packageJson() {
635
+ return [pluginPackageJson.configs.recommended];
636
+ }
637
+
632
638
  // src/configs/react.ts
633
639
  import globals4 from "globals";
634
640
  async function react(_options) {
@@ -1403,7 +1409,7 @@ async function vitest(_options) {
1403
1409
  "vitest/no-conditional-tests": "warn",
1404
1410
  "vitest/no-disabled-tests": "warn",
1405
1411
  "vitest/no-duplicate-hooks": "warn",
1406
- "vitest/no-focused-tests": "warn",
1412
+ "vitest/no-focused-tests": ["warn", { fixable: false }],
1407
1413
  "vitest/no-interpolation-in-snapshots": "warn",
1408
1414
  "vitest/no-large-snapshots": "warn",
1409
1415
  "vitest/no-mocks-import": "warn",
@@ -1477,7 +1483,8 @@ var defaultConfigs = [
1477
1483
  { config: base, name: "Base" },
1478
1484
  { config: imports, name: "Imports" },
1479
1485
  { config: unicorn, name: "Unicorn" },
1480
- { config: node, name: "Node" }
1486
+ { config: node, name: "Node" },
1487
+ { config: packageJson, name: "package.json" }
1481
1488
  ];
1482
1489
  var autoConfigs = [
1483
1490
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/eslint-config",
3
- "version": "15.1.0",
3
+ "version": "16.0.0",
4
4
  "description": "Will Stone's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -29,15 +29,6 @@
29
29
  "test": "vitest",
30
30
  "typecheck": "tsc --noEmit"
31
31
  },
32
- "lint-staged": {
33
- "*.{js,ts}": [
34
- "eslint --fix"
35
- ],
36
- "*.{css,json,md,js,ts}": [
37
- "prettier --write"
38
- ]
39
- },
40
- "prettier": "@will-stone/prettier-config",
41
32
  "dependencies": {
42
33
  "@typescript-eslint/eslint-plugin": "^8.30.1",
43
34
  "@typescript-eslint/parser": "^8.30.1",
@@ -46,6 +37,7 @@
46
37
  "eslint-plugin-import-x": "^4.10.5",
47
38
  "eslint-plugin-jsx-a11y": "^6.10.2",
48
39
  "eslint-plugin-n": "^17.17.0",
40
+ "eslint-plugin-package-json": "^0.29.1",
49
41
  "eslint-plugin-unicorn": "^58.0.0",
50
42
  "globals": "^16.0.0",
51
43
  "globby": "^14.1.0",
@@ -60,7 +52,7 @@
60
52
  "@types/node": "^22.14.1",
61
53
  "@typescript-eslint/utils": "^8.30.1",
62
54
  "@vitest/eslint-plugin": "^1.1.43",
63
- "@will-stone/prettier-config": "^9.0.2",
55
+ "@will-stone/prettier-config": "^11.0.0",
64
56
  "astro-eslint-parser": "^1.2.2",
65
57
  "eslint-plugin-astro": "^1.3.1",
66
58
  "eslint-plugin-jest": "^28.11.0",