@martinrun/frontend-config 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -15,8 +15,8 @@ One repo, three distribution channels:
15
15
  Start here: [SETUP.md](./SETUP.md). The rules themselves: [docs/DESIGN.md](./docs/DESIGN.md).
16
16
 
17
17
  Bringing an existing repo onto this: [docs/MIGRATION.md](./docs/MIGRATION.md)
18
- (includes a ready-to-paste agent prompt). Ongoing upkeep once a project is on
19
- it: [docs/MAINTENANCE.md](./docs/MAINTENANCE.md).
18
+ (includes ready-to-paste agent prompts for incremental adoption and full UI migration).
19
+ Ongoing upkeep once a project is on it: [docs/MAINTENANCE.md](./docs/MAINTENANCE.md).
20
20
 
21
21
  ## Preset
22
22
 
package/eslint.config.js CHANGED
@@ -17,6 +17,7 @@ import globals from "globals";
17
17
  import tseslint from "typescript-eslint";
18
18
  import reactHooks from "eslint-plugin-react-hooks";
19
19
  import reactRefresh from "eslint-plugin-react-refresh";
20
+ import pluginQuery from "@tanstack/eslint-plugin-query";
20
21
  import prettier from "eslint-config-prettier";
21
22
 
22
23
  /**
@@ -30,6 +31,7 @@ export default function config({ ignores = [] } = {}) {
30
31
 
31
32
  js.configs.recommended,
32
33
  ...tseslint.configs.recommendedTypeChecked,
34
+ ...pluginQuery.configs["flat/recommended"],
33
35
 
34
36
  {
35
37
  files: ["**/*.{ts,tsx}"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@martinrun/frontend-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.4",
4
4
  "description": "Shared frontend conventions: ESLint, TypeScript and Prettier config for React + shadcn/ui projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,8 +13,20 @@
13
13
  },
14
14
  "scripts": {
15
15
  "test": "node --test \"test/**/*.test.mjs\"",
16
+ "lint": "eslint . --max-warnings 0",
16
17
  "format": "prettier --write .",
17
- "format:check": "prettier --check ."
18
+ "format:check": "prettier --check .",
19
+ "format-check": "prettier --check .",
20
+ "prepare": "husky"
21
+ },
22
+ "lint-staged": {
23
+ "*.{ts,tsx}": [
24
+ "eslint --fix",
25
+ "prettier --write"
26
+ ],
27
+ "*.{json,css,md,js,mjs,html}": [
28
+ "prettier --write"
29
+ ]
18
30
  },
19
31
  "exports": {
20
32
  "./eslint": "./eslint.config.js",
@@ -31,10 +43,11 @@
31
43
  "eslint": ">=9",
32
44
  "prettier": ">=3",
33
45
  "prettier-plugin-tailwindcss": ">=0.6",
34
- "typescript": ">=5.5"
46
+ "typescript": ">=5.5 <7"
35
47
  },
36
48
  "dependencies": {
37
49
  "@eslint/js": "^10.0.0",
50
+ "@tanstack/eslint-plugin-query": "^5.102.8",
38
51
  "eslint-config-prettier": "^10.0.0",
39
52
  "eslint-plugin-react-hooks": "^7.0.0",
40
53
  "eslint-plugin-react-refresh": "^0.5.0",
@@ -42,9 +55,11 @@
42
55
  "typescript-eslint": "^8.0.0"
43
56
  },
44
57
  "devDependencies": {
45
- "eslint": "^10.9.1",
46
- "prettier": "^3.9.6",
47
- "prettier-plugin-tailwindcss": "^0.8.1",
48
- "typescript": "^6.0.3"
58
+ "eslint": "10.9.1",
59
+ "husky": "9.1.7",
60
+ "lint-staged": "17.4.1",
61
+ "prettier": "3.9.6",
62
+ "prettier-plugin-tailwindcss": "0.8.1",
63
+ "typescript": "6.0.3"
49
64
  }
50
65
  }